|
|
|
@@ -73,7 +73,11 @@ public class WxOrderGroupController extends BaseController { |
|
|
|
@ApiImplicitParam(name = "couponId", value = "couponId", dataType = "Long", paramType = "query", required = true), |
|
|
|
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true), |
|
|
|
}) |
|
|
|
public ResultData toOrderGroup(@ModelAttribute WxOrderGroup wxOrderGroup) { |
|
|
|
public ResultData toOrderGroup(Long orderId, Long couponId, Long id) { |
|
|
|
WxOrderGroup wxOrderGroup = new WxOrderGroup(); |
|
|
|
wxOrderGroup.setOrderId(orderId); |
|
|
|
wxOrderGroup.setCouponId(couponId); |
|
|
|
wxOrderGroup.setId(id); |
|
|
|
if (wxOrderGroup.getId() == null) { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "id不能为空"); |
|
|
|
} |
|
|
|
|