|
|
@ -348,7 +348,7 @@ public class WorkActUserServiceImpl implements WorkActUserService { |
|
|
|
) |
|
|
|
*/ |
|
|
|
resultDTO.setStatus(actUserRelationDTO.getStatus()); |
|
|
|
HistoricalActInfo historicalActInfo=this.getHistoricalActInfo(actUserRelationDTO.getUserId()); |
|
|
|
HistoricalActInfo historicalActInfo=this.getHistoricalActInfo(actUserRelationDTO.getUserId(),formDTO.getCurrentActId()); |
|
|
|
resultDTO.setHistoricalActInfo(historicalActInfo); |
|
|
|
if(ActConstant.ACT_USER_STATUS_AUDITING.equals(resultDTO.getStatus())){ |
|
|
|
//被拒绝过,才赋值
|
|
|
@ -399,7 +399,7 @@ public class WorkActUserServiceImpl implements WorkActUserService { |
|
|
|
resultDTO.setRealName(userBaseInfoResultDTO.getRealName()); |
|
|
|
} |
|
|
|
//参与活动统计值
|
|
|
|
HistoricalActInfo historicalActInfo=getHistoricalActInfo(formDTO.getUserId()); |
|
|
|
HistoricalActInfo historicalActInfo=getHistoricalActInfo(formDTO.getUserId(),formDTO.getCurrentActId()); |
|
|
|
resultDTO.setSignInActNum(historicalActInfo.getSignInActNum()); |
|
|
|
//减去当前的
|
|
|
|
resultDTO.setSignUpActNum(historicalActInfo.getSignUpActNum()); |
|
|
@ -639,11 +639,12 @@ public class WorkActUserServiceImpl implements WorkActUserService { |
|
|
|
/** |
|
|
|
* @return com.epmet.dto.result.work.HistoricalActInfo |
|
|
|
* @param userId |
|
|
|
* @param currentActId |
|
|
|
* @author yinzuomei |
|
|
|
* @description 用户历史活动情况 |
|
|
|
* @Date 2020/7/23 15:56 |
|
|
|
**/ |
|
|
|
private HistoricalActInfo getHistoricalActInfo(String userId) { |
|
|
|
private HistoricalActInfo getHistoricalActInfo(String userId,String currentActId) { |
|
|
|
HistoricalActInfo historicalActInfo=new HistoricalActInfo(); |
|
|
|
/** |
|
|
|
* 实际参加活动个数(已经签到的) |
|
|
@ -653,7 +654,7 @@ public class WorkActUserServiceImpl implements WorkActUserService { |
|
|
|
/** |
|
|
|
* 报名活动个数(act_user_realation) |
|
|
|
*/ |
|
|
|
Integer signUpActNum=actUserRelationDao.countSignUpActNum(userId); |
|
|
|
Integer signUpActNum=actUserRelationDao.countSignUpActNum(userId,currentActId); |
|
|
|
historicalActInfo.setSignUpActNum(signUpActNum); |
|
|
|
/** |
|
|
|
* 获得积分活动个数 |
|
|
|