|
|
@@ -90,6 +90,9 @@ public class WxActivityServiceImpl implements WxActivityService { |
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
} |
|
|
} |
|
|
wxActivity.setStatus(EnumActivityStatus.STATUS_THROW_IN.getCode()); |
|
|
wxActivity.setStatus(EnumActivityStatus.STATUS_THROW_IN.getCode()); |
|
|
|
|
|
if (wxActivity.getEndTime().before(new Date())) { |
|
|
|
|
|
return new ResultData(ErrorCode.ACTIVITY_JOIN_NOT_FOUND); |
|
|
|
|
|
} |
|
|
Date date = new Date(); |
|
|
Date date = new Date(); |
|
|
wxActivity.setCreateTime(date); |
|
|
wxActivity.setCreateTime(date); |
|
|
wxActivity.setUpdateTime(date); |
|
|
wxActivity.setUpdateTime(date); |
|
|
@@ -147,6 +150,9 @@ public class WxActivityServiceImpl implements WxActivityService { |
|
|
public ResultData sendToCampaign(Long id) { |
|
|
public ResultData sendToCampaign(Long id) { |
|
|
//修改投放状态 |
|
|
//修改投放状态 |
|
|
WxActivity wxActivity = wxActivityMapper.selectByPrimaryKey(id); |
|
|
WxActivity wxActivity = wxActivityMapper.selectByPrimaryKey(id); |
|
|
|
|
|
if (wxActivity.getEndTime().before(new Date())) { |
|
|
|
|
|
return new ResultData(ErrorCode.ACTIVITY_JOIN_TIME_END); |
|
|
|
|
|
} |
|
|
wxActivity.setStatus(EnumActivityStatus.INJECT_CAMPAIGN.getCode()); |
|
|
wxActivity.setStatus(EnumActivityStatus.INJECT_CAMPAIGN.getCode()); |
|
|
wxActivity.setUpdateTime(new Date()); |
|
|
wxActivity.setUpdateTime(new Date()); |
|
|
wxActivityMapper.updateByPrimaryKeySelective(wxActivity); |
|
|
wxActivityMapper.updateByPrimaryKeySelective(wxActivity); |
|
|
|