|
@ -166,17 +166,12 @@ public class ActInfoServiceImpl extends BaseServiceImpl<ActInfoDao, ActInfoEntit |
|
|
return new Result().error(CheckDataUtils.violations_message); |
|
|
return new Result().error(CheckDataUtils.violations_message); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ActInfoEntity entity = ConvertUtils.sourceToTarget(dto, ActInfoEntity.class); |
|
|
ActInfoEntity entity = ConvertUtils.sourceToTarget(dto, ActInfoEntity.class); |
|
|
if (insert(entity)) { |
|
|
if (insert(entity)) { |
|
|
if (NumConstant.ONE_STR.equals(dto.getIsBanner())) { |
|
|
if (NumConstant.ONE_STR.equals(dto.getIsBanner())) { |
|
|
// 保存到banner
|
|
|
// 保存到banner
|
|
|
this.saveActInfoToBanner(entity.getId(), dto); |
|
|
this.saveActInfoToBanner(entity.getId(), dto); |
|
|
} |
|
|
} |
|
|
// 创建定时任务(活动开始后将未审核的报名人员自动置为审核通过或不通过)
|
|
|
|
|
|
return this.saveActToScheduleJob(entity.getId(), dto.getActStartTime()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//接口异常,保存至待审核信息
|
|
|
//接口异常,保存至待审核信息
|
|
|
if(contentResult == null || imgResult == null) { |
|
|
if(contentResult == null || imgResult == null) { |
|
|
SaveCheckRecordsDTO record = CheckDataUtils.getPackageRecords(userId, |
|
|
SaveCheckRecordsDTO record = CheckDataUtils.getPackageRecords(userId, |
|
@ -196,6 +191,9 @@ public class ActInfoServiceImpl extends BaseServiceImpl<ActInfoDao, ActInfoEntit |
|
|
contentSecurityFeign.insertRecords(record); |
|
|
contentSecurityFeign.insertRecords(record); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
// 创建定时任务(活动开始后将未审核的报名人员自动置为审核通过或不通过)
|
|
|
|
|
|
return this.saveActToScheduleJob(entity.getId(), dto.getActStartTime()); |
|
|
|
|
|
} |
|
|
return new Result().error(); |
|
|
return new Result().error(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|