Browse Source

zancun

dev_shibei_match
yinzuomei 4 years ago
parent
commit
bb2b3eede9
  1. 26
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/dataToIndex/impl/CalGridIndexServiceImpl.java

26
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/dataToIndex/impl/CalGridIndexServiceImpl.java

@ -130,6 +130,11 @@ public class CalGridIndexServiceImpl implements CalGridIndexService {
}); });
} }
// 组织“三会一课”次数 前网格下 满足【未取消的活动 and 签到记录>1 and 活动开始时间在当前时间维度内】 +1
// 党员参加“三会一课”人次 :本网格内注册的党员,在本月内活动签到次数
Map<String,Integer> createThreeMeetsCountMap=getCreateThreeMeetsCountMap(customerId,monthId);
Map<String,Integer> joinThreeMeetsCountMap=getJoinThreeMeetsCountMap(customerId,monthId);
String quarterId = DateUtils.getQuarterId(monthId); String quarterId = DateUtils.getQuarterId(monthId);
String yearId = DateUtils.getYearId(monthId); String yearId = DateUtils.getYearId(monthId);
result.forEach(r -> { result.forEach(r -> {
@ -217,6 +222,14 @@ public class CalGridIndexServiceImpl implements CalGridIndexService {
} }
}); });
} }
// 组织“三会一课”次数 前网格下 满足【未取消的活动 and 签到记录>1 and 活动开始时间在当前时间维度内】 +1
if (createThreeMeetsCountMap.containsKey(r.getGridId())) {
r.setCreateThreeMeetsCount(createThreeMeetsCountMap.get(r.getGridId()));
}
// 党员参加“三会一课”人次 :本网格内注册的党员,在本月内活动签到次数
if (joinThreeMeetsCountMap.containsKey(r.getGridId())) {
r.setJoinThreeMeetsCount(joinThreeMeetsCountMap.get(r.getGridId()));
}
}); });
delPartyAbility(customerId, monthId); delPartyAbility(customerId, monthId);
List<List<PartyAbilityGridMonthlyFormDTO>> partition = ListUtils.partition(result, NumConstant.ONE_HUNDRED); List<List<PartyAbilityGridMonthlyFormDTO>> partition = ListUtils.partition(result, NumConstant.ONE_HUNDRED);
@ -226,6 +239,19 @@ public class CalGridIndexServiceImpl implements CalGridIndexService {
return true; return true;
} }
private Map<String, Integer> getJoinThreeMeetsCountMap(String customerId, String monthId) {
// 组织“三会一课”次数 前网格下 满足【未取消的活动 and 签到记录>1 and 活动开始时间在当前时间维度内】 +1
// todo
return null;
}
private Map<String, Integer> getCreateThreeMeetsCountMap(String customerId, String monthId) {
// 党员参加“三会一课”人次 :本网格内注册的党员,在本月内活动签到次数
// todo
return null;
}
/** /**
* @Description 计算网格指标治理能力 * @Description 计算网格指标治理能力
* @param customerId * @param customerId

Loading…
Cancel
Save