|
|
@ -128,10 +128,6 @@ public class ActInfoServiceImpl extends BaseServiceImpl<ActInfoDao, ActInfoEntit |
|
|
|
public Result save(ActInfoDTO dto) { |
|
|
|
ActInfoEntity entity = ConvertUtils.sourceToTarget(dto, ActInfoEntity.class); |
|
|
|
if (insert(entity)) { |
|
|
|
if (NumConstant.ONE_STR.equals(dto.getIsBanner())) { |
|
|
|
// 保存到banner
|
|
|
|
this.saveActInfoToBanner(entity.getId(), dto); |
|
|
|
} |
|
|
|
// 创建定时任务(活动开始后将未审核的报名人员自动置为审核通过或不通过)
|
|
|
|
return this.saveActToScheduleJob(entity.getId(), dto.getActStartTime()); |
|
|
|
} |
|
|
|