|
|
|
@@ -96,6 +96,9 @@ public class WxCampaignController extends BaseController { |
|
|
|
@PostMapping("updateStatus") |
|
|
|
public ResultData updateStatus(@RequestBody WxCampaign wxCampaign) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxCampaignController::updateStatus"); |
|
|
|
if(wxCampaign.getType() == null) { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL, "type不能为空"); |
|
|
|
} |
|
|
|
// check coupon 状态 |
|
|
|
if (wxCampaign.getType().equals(EnumCampaignType.STABLE.getCode())) { |
|
|
|
if (wxCampaign.getStatus().equals(EnumCampaignStatus.STATUS_THROW_IN.getCode())) { |
|
|
|
|