|
|
@ -8,6 +8,7 @@ import com.epmet.dto.extract.form.GovernAbilityGridMonthlyFormDTO; |
|
|
|
import com.epmet.dto.extract.form.GridIssueCountResultDTO; |
|
|
|
import com.epmet.dto.extract.form.PartyAbilityGridMonthlyFormDTO; |
|
|
|
import com.epmet.dto.extract.result.*; |
|
|
|
import com.epmet.dto.indexcollect.result.GridIndexCommonDTO; |
|
|
|
import com.epmet.entity.evaluationindex.indexcoll.FactIndexServiceAblityGridMonthlyEntity; |
|
|
|
import com.epmet.service.evaluationindex.extract.dataToIndex.CalGridIndexService; |
|
|
|
import com.epmet.service.evaluationindex.extract.todata.*; |
|
|
@ -15,6 +16,7 @@ import com.epmet.service.evaluationindex.indexcoll.FactIndexGovrnAblityOrgMonthl |
|
|
|
import com.epmet.service.evaluationindex.indexcoll.FactIndexPartyAblityOrgMonthlyService; |
|
|
|
import com.epmet.service.evaluationindex.indexcoll.FactIndexServiceAblityGridMonthlyService; |
|
|
|
import com.epmet.service.evaluationindex.screen.ScreenCustomerGridService; |
|
|
|
import com.epmet.service.group.GroupDataService; |
|
|
|
import com.epmet.service.heart.ActInfoService; |
|
|
|
import com.epmet.service.partymember.PartyMemberService; |
|
|
|
import com.epmet.service.stats.FactArticlePublishedGridDailyService; |
|
|
@ -29,7 +31,10 @@ import org.springframework.util.CollectionUtils; |
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.text.NumberFormat; |
|
|
|
import java.util.*; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.concurrent.atomic.AtomicReference; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
@ -71,6 +76,8 @@ public class CalGridIndexServiceImpl implements CalGridIndexService { |
|
|
|
private PartyMemberService partyMemberService; |
|
|
|
@Autowired |
|
|
|
private ScreenCustomerGridService gridService; |
|
|
|
@Autowired |
|
|
|
private GroupDataService groupDataService; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 计算网格指标党建能力 |
|
|
@ -131,8 +138,8 @@ 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); |
|
|
@ -239,19 +246,24 @@ public class CalGridIndexServiceImpl implements CalGridIndexService { |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private Map<String, Integer> getJoinThreeMeetsCountMap(String customerId, String monthId) { |
|
|
|
private Map<String, Integer> getCreateThreeMeetsCountMap(String customerId, String monthId) { |
|
|
|
// 组织“三会一课”次数 前网格下 满足【未取消的活动 and 签到记录>1 and 活动开始时间在当前时间维度内】 +1
|
|
|
|
// todo
|
|
|
|
return null; |
|
|
|
//查询小组活动签到表,计算用户在本月内签到的活动次数
|
|
|
|
List<GridIndexCommonDTO> list=groupDataService.selectCountGridCreateThreeMeets(customerId,monthId); |
|
|
|
Map<String, Integer> resultMap = new HashMap<>(); |
|
|
|
for (GridIndexCommonDTO gridIndexCommonDTO : list) { |
|
|
|
resultMap.put(gridIndexCommonDTO.getGridId(), gridIndexCommonDTO.getIndexValue()); |
|
|
|
} |
|
|
|
return resultMap; |
|
|
|
} |
|
|
|
|
|
|
|
private Map<String, Integer> getCreateThreeMeetsCountMap(String customerId, String monthId) { |
|
|
|
private Map<String, Integer> getJoinThreeMeetsCountMap(String customerId, String monthId) { |
|
|
|
// 党员参加“三会一课”人次 :本网格内注册的党员,在本月内活动签到次数
|
|
|
|
// todo
|
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 计算网格指标治理能力 |
|
|
|
* @param customerId |
|
|
|