|
|
@ -92,14 +92,17 @@ public class FactGridGovernDailyServiceImpl extends BaseServiceImpl<FactGridGove |
|
|
|
NumberFormat numberFormat = NumberFormat.getInstance(); |
|
|
|
numberFormat.setMaximumFractionDigits(NumConstant.SIX); |
|
|
|
|
|
|
|
Map<String, Integer> topicResolvedMap=getTopicMap(customerId, null,ProjectConstant.CLOSED, DimObjectStatusConstant.RESOLVED,NumConstant.ZERO_STR); |
|
|
|
Map<String, Integer> topicUnResolvedMap=getTopicMap(customerId, null,ProjectConstant.CLOSED, DimObjectStatusConstant.UNRESOLVED,NumConstant.ZERO_STR); |
|
|
|
Map<String, Integer> topicResolvedMap=getTopicMap(customerId, null,ProjectConstant.CLOSED, DimObjectStatusConstant.RESOLVED,null); |
|
|
|
Map<String, Integer> topicUnResolvedMap=getTopicMap(customerId, null,ProjectConstant.CLOSED, DimObjectStatusConstant.UNRESOLVED,null); |
|
|
|
Map<String, Integer> issueResolvedMap=getIssueMap(customerId, null,ProjectConstant.CLOSED, DimObjectStatusConstant.RESOLVED); |
|
|
|
Map<String, Integer> issueUnResolvedMap=getIssueMap(customerId, null,ProjectConstant.CLOSED, DimObjectStatusConstant.UNRESOLVED); |
|
|
|
Map<String,Integer> issueProjectResolvedMap=getGridProjectMap(customerId,null,ProjectConstant.CLOSED,ProjectConstant.PROJECT_ORIGIN_ISSUE,DimObjectStatusConstant.RESOLVED); |
|
|
|
Map<String,Integer> issueProjectUnResolvedMap=getGridProjectMap(customerId,null,ProjectConstant.CLOSED,ProjectConstant.PROJECT_ORIGIN_ISSUE,DimObjectStatusConstant.UNRESOLVED); |
|
|
|
Map<String,Integer> approvalProjectResolvedMap=getGridProjectMap(customerId,null,ProjectConstant.CLOSED,ProjectConstant.PROJECT_ORIGIN_AGENCY,DimObjectStatusConstant.RESOLVED); |
|
|
|
Map<String,Integer> approvalProjectUnResolvedMap=getGridProjectMap(customerId,null,ProjectConstant.CLOSED,ProjectConstant.PROJECT_ORIGIN_AGENCY,DimObjectStatusConstant.UNRESOLVED); |
|
|
|
Map<String, Integer> inGroupTopicResolvedMap=getTopicMap(customerId, null,ProjectConstant.CLOSED, DimObjectStatusConstant.RESOLVED,NumConstant.ONE_STR); |
|
|
|
Map<String, Integer> inGroupTopicUnResolvedMap=getTopicMap(customerId, null,ProjectConstant.CLOSED, DimObjectStatusConstant.UNRESOLVED,NumConstant.ONE_STR); |
|
|
|
|
|
|
|
|
|
|
|
for(FactGridGovernDailyEntity insertEntity:insertEntityList){ |
|
|
|
//1、当前网格内,话题关闭已解决数
|
|
|
@ -110,6 +113,8 @@ public class FactGridGovernDailyServiceImpl extends BaseServiceImpl<FactGridGove |
|
|
|
if(topicUnResolvedMap.containsKey(insertEntity.getGridId())){ |
|
|
|
insertEntity.setTopicUnResolvedCount(topicUnResolvedMap.get(insertEntity.getGridId())); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//3、当前网格内,议题关闭已解决数
|
|
|
|
if(issueResolvedMap.containsKey(insertEntity.getGridId())){ |
|
|
|
insertEntity.setIssueResolvedCount(issueResolvedMap.get(insertEntity.getGridId())); |
|
|
@ -118,6 +123,8 @@ public class FactGridGovernDailyServiceImpl extends BaseServiceImpl<FactGridGove |
|
|
|
if(issueUnResolvedMap.containsKey(insertEntity.getGridId())){ |
|
|
|
insertEntity.setIssueUnResolvedCount(issueUnResolvedMap.get(insertEntity.getGridId())); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 5、当前网格内:来源于议题的项目:结案已解决数
|
|
|
|
if(issueProjectResolvedMap.containsKey(insertEntity.getGridId())){ |
|
|
|
insertEntity.setIssueProjectResolvedCount(issueProjectResolvedMap.get(insertEntity.getGridId())); |
|
|
@ -135,13 +142,29 @@ public class FactGridGovernDailyServiceImpl extends BaseServiceImpl<FactGridGove |
|
|
|
insertEntity.setApprovalProjectUnResolvedCount(approvalProjectUnResolvedMap.get(insertEntity.getGridId())); |
|
|
|
} |
|
|
|
|
|
|
|
// todo
|
|
|
|
// 党群自治占比:当前组织下,所有小组内关闭(已解决+无需解决)的话题数与问题解决总数之比(未出小组:未转议题的)
|
|
|
|
// 9、当前网格内,未出小组即未转议题的:话题关闭已解决数
|
|
|
|
insertEntity.setInGroupTopicResolvedCount(calInGroupTopicResolvedCount(customerId,insertEntity.getGridId())); |
|
|
|
if(inGroupTopicResolvedMap.containsKey(insertEntity.getGridId())){ |
|
|
|
insertEntity.setInGroupTopicResolvedCount(inGroupTopicResolvedMap.get(insertEntity.getGridId())); |
|
|
|
} |
|
|
|
// 10、当前网格内,未出小组即未转议题的:话题关闭无需解决数
|
|
|
|
insertEntity.setInGroupTopicUnResolvedCount(calInGroupTopicUnResolvedCount(customerId,insertEntity.getGridId())); |
|
|
|
// 11、未出当前网格的,结案项目数
|
|
|
|
insertEntity.setGridSelfGovernProjectTotal(calGridSelfGovernProjectTotal(customerId,insertEntity.getGridId())); |
|
|
|
if(inGroupTopicUnResolvedMap.containsKey(insertEntity.getGridId())){ |
|
|
|
insertEntity.setInGroupTopicUnResolvedCount(inGroupTopicUnResolvedMap.get(insertEntity.getGridId())); |
|
|
|
} |
|
|
|
|
|
|
|
// todo
|
|
|
|
// 11、来源于议题的项目,未出网格结案并且已解决的项目数
|
|
|
|
insertEntity.setFromIssueResolvedInGridCount(0); |
|
|
|
// 12、来源于议题的项目,未出网格结案并且无需解决的项目数
|
|
|
|
insertEntity.setFromIssueUnResolvedInGridCount(0); |
|
|
|
// 13、来源于项目立项的项目,未出网格结案,并且已解决的项目数;因现在网格不能立项,所以此列默认为0
|
|
|
|
insertEntity.setFromAgencyResolvedInGridCount(0); |
|
|
|
// 14、来源于项目立项的项目,未出网格结案,并且无需解决的项目数;因现在网格不能立项,所以此列默认为0
|
|
|
|
insertEntity.setFromAgencyUnResolvedInGridCount(0); |
|
|
|
// 所有网格内结案项目数(未出网格)=来源于议题的项目结案已解决+来源于议题的项目结案无需解决+来源于立项的项目结案已解决+来源于立项的项目结案无需解决
|
|
|
|
// 15、未出当前网格的,结案项目数=11+12+13+14
|
|
|
|
insertEntity.setGridSelfGovernProjectTotal(insertEntity.getFromIssueResolvedInGridCount()+insertEntity.getFromIssueUnResolvedInGridCount()+ |
|
|
|
insertEntity.getFromAgencyResolvedInGridCount()+insertEntity.getFromAgencyUnResolvedInGridCount()); |
|
|
|
|
|
|
|
|
|
|
|
//界面展示:1、问题解决总数=1+2+3+4+5+6+7+8
|
|
|
@ -150,6 +173,7 @@ public class FactGridGovernDailyServiceImpl extends BaseServiceImpl<FactGridGove |
|
|
|
+insertEntity.getIssueProjectResolvedCount()+insertEntity.getIssueProjectUnResolvedCount() |
|
|
|
+insertEntity.getApprovalProjectResolvedCount()+insertEntity.getApprovalProjectUnResolvedCount()); |
|
|
|
|
|
|
|
// 党群自治占比:当前组织下,所有小组内关闭(已解决+无需解决)的话题数与问题解决总数之比(未出小组:未转议题的)
|
|
|
|
//界面展示:2、党群自治占比=(9+10)/PROBLEM_RESOLVED_COUNT; 此列存储的是小数
|
|
|
|
int groupSelfGovernRatioFz=insertEntity.getInGroupTopicResolvedCount()+insertEntity.getInGroupTopicUnResolvedCount(); |
|
|
|
if (NumConstant.ZERO == groupSelfGovernRatioFz || NumConstant.ZERO == insertEntity.getProblemResolvedCount()) { |
|
|
@ -159,6 +183,7 @@ public class FactGridGovernDailyServiceImpl extends BaseServiceImpl<FactGridGove |
|
|
|
insertEntity.setGroupSelfGovernRatio(new BigDecimal(groupSelfGovernRatioStr)); |
|
|
|
} |
|
|
|
|
|
|
|
// 网格自治占比:当前组织下,所有网格内结案项目数与问题解决总数之比(未出网格)
|
|
|
|
//界面展示:3、网格自治占比=GRID_SELF_GOVERN_PROJECT_TOTAL/PROBLEM_RESOLVED_COUNT;此列存储的是小数
|
|
|
|
if(NumConstant.ZERO==insertEntity.getGridSelfGovernProjectTotal()||NumConstant.ZERO == insertEntity.getProblemResolvedCount()){ |
|
|
|
insertEntity.setGridSelfGovernRatio(BigDecimal.ZERO); |
|
|
@ -265,32 +290,8 @@ public class FactGridGovernDailyServiceImpl extends BaseServiceImpl<FactGridGove |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 9、当前网格内,未出小组即未转议题的:话题关闭已解决数 |
|
|
|
* |
|
|
|
* @param customerId |
|
|
|
* @param gridId |
|
|
|
*/ |
|
|
|
private Integer calInGroupTopicResolvedCount(String customerId, String gridId) { |
|
|
|
// todo
|
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 10、当前网格内,未出小组即未转议题的:话题关闭无需解决数 |
|
|
|
* |
|
|
|
* @param customerId |
|
|
|
* @param gridId |
|
|
|
*/ |
|
|
|
private Integer calInGroupTopicUnResolvedCount(String customerId, String gridId) { |
|
|
|
// todo
|
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 11、未出当前网格的,结案项目数 |
|
|
|
* 15、未出当前网格的,结案项目数=11+12+13+14 |
|
|
|
* |
|
|
|
* @param customerId |
|
|
|
* @param gridId |
|
|
|