|
|
@ -349,7 +349,7 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl<ActUserRelationD |
|
|
|
//6、插入points记录
|
|
|
|
//通过动作编码获取动作信息
|
|
|
|
Result<BehaviorResultDto> behaviorCodeInfo = pointsFeignClient.getBehaviorCodeInfo(BehaviorEnum.BREAK_PROMISE.getValue()); |
|
|
|
if (!behaviorCodeInfo.success() || behaviorCodeInfo.getData()==null){ |
|
|
|
if (!behaviorCodeInfo.success() || behaviorCodeInfo.getData() == null) { |
|
|
|
throw new RenException("获取动作编码信息异常或无此动作编码"); |
|
|
|
} |
|
|
|
PointsLogsDTO pointsLogsDTO = new PointsLogsDTO(); |
|
|
@ -480,6 +480,8 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl<ActUserRelationD |
|
|
|
actUserLog.setOperationType(actUserDefaultState);// 默认状态
|
|
|
|
actUserLog.setOperationTime(new Date()); |
|
|
|
actUserLogDao.insert(actUserLog); |
|
|
|
//给用户发送消息通知
|
|
|
|
this.sendNotice(actUserRelationDTO, actUserDefaultState, actInfoDTO); |
|
|
|
} |
|
|
|
// 审核不通过,活动的报名人数减少
|
|
|
|
if (!NumConstant.ONE_STR.equals(actUserDefaultState)) { |
|
|
@ -495,4 +497,23 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl<ActUserRelationD |
|
|
|
return new Result().ok("该活动对已报名的志愿者自动审核成功"); |
|
|
|
} |
|
|
|
|
|
|
|
//自动审核 定时任务 消息通知
|
|
|
|
private void sendNotice(ActUserRelationDTO actUserRelationDTO, String actUserDefaultState, ActInfoDTO actInfoDTO) { |
|
|
|
EpdcInformationFormDTO informationFormDTO = new EpdcInformationFormDTO(); |
|
|
|
informationFormDTO.setUserId(actUserRelationDTO.getUserId()); |
|
|
|
informationFormDTO.setType(HeartNoticeConstant.NOTICE_TYPE_AUDIT_NOTICE); |
|
|
|
informationFormDTO.setBusinessType(HeartNoticeConstant.NOTICE__BUSINESS_TYPE_ACT_FAILURE); |
|
|
|
informationFormDTO.setBusinessId(actUserRelationDTO.getActId()); |
|
|
|
informationFormDTO.setRelBusinessContent(actInfoDTO.getTitle()); |
|
|
|
//审核不通过
|
|
|
|
if (!NumConstant.ONE_STR.equals(actUserDefaultState)) { |
|
|
|
informationFormDTO.setTitle(HeartNoticeConstant.NOTICE_SIGN_UP_NOT_PASSED); |
|
|
|
informationFormDTO.setContent(HeartNoticeConstant.AUTH_NOTICE_SIGN_UP); |
|
|
|
} else { |
|
|
|
informationFormDTO.setTitle(HeartNoticeConstant.NOTICE_SIGN_UP_PASSED); |
|
|
|
informationFormDTO.setContent(HeartNoticeConstant.AUTH_NOTICE_SIGN_UP); |
|
|
|
} |
|
|
|
newsTask.insertUserInformation(informationFormDTO); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|