|
|
@ -221,12 +221,18 @@ public class ActInfoServiceImpl extends BaseServiceImpl<ActInfoDao, ActInfoEntit |
|
|
|
|
|
|
|
// 查询用户是否已报名活动
|
|
|
|
String status = actUserRelationDao.selectUserStatusByActIdAndUserId(formDto.getActId(), formDto.getUserId()); |
|
|
|
detailResultDTO.setIsRegistration(false); |
|
|
|
// 默认用户 未报名活动
|
|
|
|
detailResultDTO.setIsRegistration(ActConstant.ACT_USER_LOG_OPER_CANCELD); |
|
|
|
if (null != status){ |
|
|
|
if (ActConstant.ACT_USER_STATUS_PASSED.equals(status) || ActConstant.ACT_USER_STATUS_AUDITING.equals(status)){ |
|
|
|
detailResultDTO.setIsRegistration(true); |
|
|
|
if (ActConstant.ACT_USER_STATUS_PASSED.equals(status)){ |
|
|
|
// 用户报名活动审核通过,赋值 审核通过
|
|
|
|
detailResultDTO.setIsRegistration(status); |
|
|
|
} else if ( ActConstant.ACT_USER_STATUS_AUDITING.equals(status)){ |
|
|
|
// 用户报名活动未审核,赋值 已报名/待审核
|
|
|
|
detailResultDTO.setIsRegistration(status); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 获取用户报名状态
|
|
|
|
String currentUserStatus = getCurrentUserStatus(formDto.getActId(), formDto.getUserId()); |
|
|
|
detailResultDTO.setCurrentUserStatus(currentUserStatus); |
|
|
|