|
@@ -18,6 +18,7 @@ import com.ruoyi.system.domain.assessment.ZxAssessment;
|
|
|
import com.ruoyi.system.domain.bonus.ZxBonus;
|
|
|
import com.ruoyi.system.domain.conference.ZxConference;
|
|
|
import com.ruoyi.system.domain.conference.ZxConferenceUser;
|
|
|
+import com.ruoyi.system.domain.investment.ZxInvestment;
|
|
|
import com.ruoyi.system.domain.member.MemberAssessmentInfo;
|
|
|
import com.ruoyi.system.domain.member.MemberInfo;
|
|
|
import com.ruoyi.system.domain.member.MemberInfoTree;
|
|
@@ -84,6 +85,8 @@ public class MemberInfoServiceImpl implements IMemberInfoService {
|
|
|
protected Validator validator;
|
|
|
@Autowired
|
|
|
private SysUserRoleMapper userRoleMapper;
|
|
|
+ @Autowired
|
|
|
+ private ZxInvestmentMapper zxInvestmentMapper;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -121,24 +124,34 @@ public class MemberInfoServiceImpl implements IMemberInfoService {
|
|
|
List<SqmyInfo> sqmyInfos = sqmyInfoMapper.selectSqmyInfoList(sqmyInfo);
|
|
|
memberInfoVo.setSqmyInfoList(sqmyInfos);
|
|
|
|
|
|
+ //会议
|
|
|
ZxConference zxConference = new ZxConference();
|
|
|
zxConference.setUserId(userId);
|
|
|
List<ZxConference> zxConferences = zxConferenceMapper.selectZxConferenceList(zxConference);
|
|
|
if (zxConferences != null) {
|
|
|
memberInfoVo.setZxConferenceList(zxConferences);
|
|
|
}
|
|
|
+ //活动
|
|
|
ZxActivity zxActivity = new ZxActivity();
|
|
|
zxActivity.setUserId(userId);
|
|
|
List<ZxActivity> zxActivities = zxActivityMapper.selectZxActivityList(zxActivity);
|
|
|
if (zxActivities != null) {
|
|
|
memberInfoVo.setZxActivityList(zxActivities);
|
|
|
}
|
|
|
+ //发言
|
|
|
ZxSpeak zxSpeak = new ZxSpeak();
|
|
|
zxSpeak.setUserId(userId);
|
|
|
List<ZxSpeak> zxSpeaks = zxSpeakMapper.selectZxSpeakList(zxSpeak);
|
|
|
if (zxSpeaks != null) {
|
|
|
memberInfoVo.setZxSpeakList(zxSpeaks);
|
|
|
}
|
|
|
+ //招商
|
|
|
+ ZxInvestment zxInvestment = new ZxInvestment();
|
|
|
+ zxInvestment.setUserId(userId);
|
|
|
+ List<ZxInvestment> zxInvestments = zxInvestmentMapper.selectZxInvestmentList(zxInvestment);
|
|
|
+ if (zxInvestments != null){
|
|
|
+ memberInfoVo.setZxInvestmentList(zxInvestments);
|
|
|
+ }
|
|
|
return memberInfoVo;
|
|
|
}
|
|
|
|
|
@@ -164,8 +177,16 @@ public class MemberInfoServiceImpl implements IMemberInfoService {
|
|
|
map.put("conferenceNum", 0);
|
|
|
//全会
|
|
|
map.put("plenarySessionNum", 0);
|
|
|
- //活动
|
|
|
- map.put("activityNum", 0);
|
|
|
+ //活动视察调研
|
|
|
+ map.put("activityScdyNum", 0);
|
|
|
+ //活动联络组
|
|
|
+ map.put("activityLlzNum", 0);
|
|
|
+ //活动界别
|
|
|
+ map.put("activityJbNum", 0);
|
|
|
+ //活动为群众办实事
|
|
|
+ map.put("activityBssNum", 0);
|
|
|
+ //招商数量
|
|
|
+ map.put("investmentNum", 0);
|
|
|
//发言数量
|
|
|
map.put("speakNum", 0);
|
|
|
//查询提案情况
|
|
@@ -196,6 +217,7 @@ public class MemberInfoServiceImpl implements IMemberInfoService {
|
|
|
if (zxConferences != null && zxConferences.size() > 0) {
|
|
|
long count = zxConferences.stream().filter(e -> e.getConferenceType().equals(ONE)).count();
|
|
|
map.put("plenarySessionNum", count);
|
|
|
+ map.put("conferenceNum", zxConferences.size());
|
|
|
}
|
|
|
//查询活动
|
|
|
ZxActivity zxActivity = new ZxActivity();
|
|
@@ -205,6 +227,27 @@ public class MemberInfoServiceImpl implements IMemberInfoService {
|
|
|
memberInfoVo.setZxActivityList(zxActivities);
|
|
|
if (zxActivities != null && zxActivities.size() > 0) {
|
|
|
map.put("activityNum", zxActivities.size());
|
|
|
+ Map<String, List<ZxActivity>> collectType = zxActivities.stream().collect(Collectors.groupingBy(ZxActivity::getActivityType));
|
|
|
+ List<ZxActivity> activityScdyList = collectType.get(TWO);
|
|
|
+ if (activityScdyList != null){
|
|
|
+ //活动视察调研
|
|
|
+ map.put("activityScdyNum", activityScdyList.size());
|
|
|
+ }
|
|
|
+ List<ZxActivity> activityLlzList = collectType.get(THR);
|
|
|
+ if (activityLlzList != null){
|
|
|
+ //活动联络组
|
|
|
+ map.put("activityLlzNum", activityLlzList.size());
|
|
|
+ }
|
|
|
+ List<ZxActivity> activityJbList = collectType.get(THR);
|
|
|
+ if (activityJbList != null){
|
|
|
+ //活动界别
|
|
|
+ map.put("activityJbNum", activityJbList.size());
|
|
|
+ }
|
|
|
+ List<ZxActivity> activityBssList = collectType.get(THR);
|
|
|
+ if (activityBssList != null){
|
|
|
+ //活动为群众办实事
|
|
|
+ map.put("activityBssNum", activityBssList.size());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//查询发言不计算分
|
|
@@ -216,6 +259,13 @@ public class MemberInfoServiceImpl implements IMemberInfoService {
|
|
|
if (zxSpeaks != null && zxSpeaks.size() > 0) {
|
|
|
map.put("speakNum", zxSpeaks.size());
|
|
|
}
|
|
|
+ //招商
|
|
|
+ ZxInvestment zxInvestment = new ZxInvestment();
|
|
|
+ zxInvestment.setUserId(userId);
|
|
|
+ List<ZxInvestment> zxInvestments = zxInvestmentMapper.selectZxInvestmentList(zxInvestment);
|
|
|
+ if (zxInvestments != null){
|
|
|
+ memberInfoVo.setZxInvestmentList(zxInvestments);
|
|
|
+ }
|
|
|
//查询委员得分和排名
|
|
|
MemberAssessmentInfo memberAssessmentInfo = new MemberAssessmentInfo();
|
|
|
memberAssessmentInfo.setUserId(userId);
|