|
|
|
@@ -110,6 +110,10 @@ public class WxActivityServiceImpl implements WxActivityService { |
|
|
|
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = {Exception.class}) |
|
|
|
@Override |
|
|
|
public ResultData updateStatus(WxActivity wxActivity) { |
|
|
|
WxActivity activity = wxActivityMapper.selectByPrimaryKey(wxActivity.getId()); |
|
|
|
if (activity == null) { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
|
} |
|
|
|
wxActivity.setUpdateTime(new Date()); |
|
|
|
wxActivityMapper.updateByPrimaryKeySelective(wxActivity); |
|
|
|
if (wxActivity.getStatus().equals(EnumActivityStatus.STATUS_TAKE_OFFF.getCode())) { |
|
|
|
|