|
@ -264,8 +264,12 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl<ActUserRelationD |
|
|
this.insertHeartUserInfo(formDTO, volunteerFlag); |
|
|
this.insertHeartUserInfo(formDTO, volunteerFlag); |
|
|
} |
|
|
} |
|
|
if (signUp){ |
|
|
if (signUp){ |
|
|
// 4.插入活动日志表
|
|
|
// 4.插入用户参加活动-待审核的活动日志表
|
|
|
this.insertActUserLog(formDTO); |
|
|
this.insertActUserLog(formDTO, ActConstant.ACT_USER_LOG_OPER_AUDITING); |
|
|
|
|
|
if (!actInfoDTO.getAuditSwitch()){ |
|
|
|
|
|
// 自动审核通过,插入用户参加活动-审核通过的日志信息
|
|
|
|
|
|
this.insertActUserLog(formDTO, ActConstant.ACT_USER_LOG_OPER_PASSED); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
// 5.插入 用户活动关系表
|
|
|
// 5.插入 用户活动关系表
|
|
|
this.insertActUserRelation(formDTO, actInfoDTO); |
|
|
this.insertActUserRelation(formDTO, actInfoDTO); |
|
@ -334,15 +338,16 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl<ActUserRelationD |
|
|
/** |
|
|
/** |
|
|
* 每次成功报名活动,都需要插入【用户活动关系日志表】 |
|
|
* 每次成功报名活动,都需要插入【用户活动关系日志表】 |
|
|
* @param formDTO |
|
|
* @param formDTO |
|
|
|
|
|
* @param userOperationType 用户审核类型:待审核、通过、不通过、取消 |
|
|
* @return void |
|
|
* @return void |
|
|
* @Author zhangyong |
|
|
* @Author zhangyong |
|
|
* @Date 09:37 2020-07-28 |
|
|
* @Date 09:37 2020-07-28 |
|
|
**/ |
|
|
**/ |
|
|
private void insertActUserLog(ResiActRegistrationFormDTO formDTO){ |
|
|
private void insertActUserLog(ResiActRegistrationFormDTO formDTO, String userOperationType){ |
|
|
ActUserLogEntity userLogEntity = new ActUserLogEntity(); |
|
|
ActUserLogEntity userLogEntity = new ActUserLogEntity(); |
|
|
userLogEntity.setActId(formDTO.getActId()); |
|
|
userLogEntity.setActId(formDTO.getActId()); |
|
|
userLogEntity.setUserId(formDTO.getUserId()); |
|
|
userLogEntity.setUserId(formDTO.getUserId()); |
|
|
userLogEntity.setOperationType(ActConstant.ACT_USER_LOG_OPER_AUDITING); |
|
|
userLogEntity.setOperationType(userOperationType); |
|
|
actUserLogService.insert(userLogEntity); |
|
|
actUserLogService.insert(userLogEntity); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -359,12 +364,14 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl<ActUserRelationD |
|
|
ActUserRelationEntity entity = new ActUserRelationEntity(); |
|
|
ActUserRelationEntity entity = new ActUserRelationEntity(); |
|
|
entity.setActId(formDTO.getActId()); |
|
|
entity.setActId(formDTO.getActId()); |
|
|
entity.setUserId(formDTO.getUserId()); |
|
|
entity.setUserId(formDTO.getUserId()); |
|
|
entity.setStatus(ActConstant.ACT_USER_STATUS_AUDITING); |
|
|
|
|
|
// 审核开关:1报名人员需要人工审核(true) 0不需要(false)
|
|
|
// 审核开关:1报名人员需要人工审核(true) 0不需要(false)
|
|
|
if (actInfoDTO.getAuditSwitch()){ |
|
|
if (actInfoDTO.getAuditSwitch()){ |
|
|
|
|
|
entity.setStatus(ActConstant.ACT_USER_STATUS_AUDITING); |
|
|
entity.setPassedType(ActConstant.PASSEDTYPE_MANUAL); |
|
|
entity.setPassedType(ActConstant.PASSEDTYPE_MANUAL); |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
entity.setStatus(ActConstant.ACT_USER_STATUS_PASSED); |
|
|
entity.setPassedType(ActConstant.PASSEDTYPE_AUTO); |
|
|
entity.setPassedType(ActConstant.PASSEDTYPE_AUTO); |
|
|
|
|
|
entity.setProcessFlag(ActConstant.HANDLED); |
|
|
entity.setAuditTime(new Date()); |
|
|
entity.setAuditTime(new Date()); |
|
|
} |
|
|
} |
|
|
Integer operationCount = baseDao.selectCountByActIdAndUserId(formDTO.getActId(), formDTO.getUserId()); |
|
|
Integer operationCount = baseDao.selectCountByActIdAndUserId(formDTO.getActId(), formDTO.getUserId()); |
|
|