|
|
|
@@ -24,10 +24,10 @@ public class WxCouponSendConfigController extends BaseController { |
|
|
|
private WxCouponSendConfigService wxCouponSendConfigService; |
|
|
|
|
|
|
|
@ApiOperation("获取开关") |
|
|
|
@GetMapping("getCouponSendConfig") |
|
|
|
public ResultData getCouponSendConfig(@RequestAttribute WxCouponSendConfig wxCouponSendConfig) { |
|
|
|
@GetMapping("get") |
|
|
|
public ResultData getCouponSendConfig(@ModelAttribute WxCouponSendConfig wxCouponSendConfig) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxMallConfigController::getCouponSendConfig"); |
|
|
|
if (wxCouponSendConfig == null || wxCouponSendConfig.getSendType() != null) |
|
|
|
if (wxCouponSendConfig == null || wxCouponSendConfig.getSendType() == null) |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
|
|
|
|
|
wxCouponSendConfig.setTenantId(getTenantId()); |
|
|
|
@@ -39,12 +39,14 @@ public class WxCouponSendConfigController extends BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("updateCouponSendConfig") |
|
|
|
@PostMapping("update") |
|
|
|
@ApiOperation("修改开关") |
|
|
|
public ResultData updateCouponSendConfig(@RequestBody WxCouponSendConfig wxCouponSendConfig) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxMallConfigController::updateStopCarConpon"); |
|
|
|
if (wxCouponSendConfig == null) |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
|
if (wxCouponSendConfig.getId() == null) |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
|
if (wxCouponSendConfig.getSendType() == null) |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
|
if (wxCouponSendConfig.getValue() == null) |
|
|
|
|