Browse Source

Merge branch 'dev_bugfix_ljj' of http://git.elinkit.com.cn:7070/r/epmet-cloud into dev

dev_shibei_match
jianjun 4 years ago
parent
commit
db2d03b10d
  1. 26
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/dataToIndex/impl/IndexOriginExtractServiceImpl.java
  2. 16
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/extract/FactOriginIssueMainDailyDao.xml
  3. 28
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/extract/FactOriginProjectMainDailyDao.xml

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

@ -42,7 +42,8 @@ public class IndexOriginExtractServiceImpl implements IndexOriginExtractService
private IndexCollCommunityService indexCollCommunityService; private IndexCollCommunityService indexCollCommunityService;
@Autowired @Autowired
private IndexCollDistrictService indexCollDistrictService; private IndexCollDistrictService indexCollDistrictService;
@Autowired
private IndexCollDistrictDepartmentService indexCollDistrictDepartmentService;
/** /**
* desc从统计库对象抽取指标数据 * desc从统计库对象抽取指标数据
* *
@ -87,7 +88,7 @@ public class IndexOriginExtractServiceImpl implements IndexOriginExtractService
threadPool.submit(() -> { threadPool.submit(() -> {
try { try {
long startCpc = System.currentTimeMillis(); long startCpc = System.currentTimeMillis();
calCpcIndexService.calCpcPartyAbility(customerId, monthId); //calCpcIndexService.calCpcPartyAbility(customerId, monthId);
log.error("党员相关-党建能力执行完毕======总耗时:{}ms,customerId:{}",System.currentTimeMillis()-startCpc, param.getCustomerId()); log.error("党员相关-党建能力执行完毕======总耗时:{}ms,customerId:{}",System.currentTimeMillis()-startCpc, param.getCustomerId());
} catch (Exception e) { } catch (Exception e) {
log.error("抽取【党员相关数据】发生异常,参数:" + JSON.toJSONString(param), e); log.error("抽取【党员相关数据】发生异常,参数:" + JSON.toJSONString(param), e);
@ -117,6 +118,15 @@ public class IndexOriginExtractServiceImpl implements IndexOriginExtractService
} catch (Exception e) { } catch (Exception e) {
log.error("抽取【网格服务能力数据】发生异常,参数:" + JSON.toJSONString(param), e); log.error("抽取【网格服务能力数据】发生异常,参数:" + JSON.toJSONString(param), e);
} }
try{
//dimAgency
long startCommunity = System.currentTimeMillis();
indexCollCommunityService.saveCommunityAbility(customerId, monthId);
log.error("社区相关-三大能力执行完毕======总耗时:{}ms,customerId:{}",System.currentTimeMillis()-startCommunity, param.getCustomerId());
}catch (Exception e){
log.error("抽取【社区治理能力-社区党建能力-服务能力】发生异常,参数:" + JSON.toJSONString(param), e);
}
try{ try{
//dimAgency //dimAgency
long startStreet = System.currentTimeMillis(); long startStreet = System.currentTimeMillis();
@ -125,14 +135,18 @@ public class IndexOriginExtractServiceImpl implements IndexOriginExtractService
}catch (Exception e){ }catch (Exception e){
log.error("抽取【街道治理能力-街道党建能力-服务能力】发生异常,参数:" + JSON.toJSONString(param), e); log.error("抽取【街道治理能力-街道党建能力-服务能力】发生异常,参数:" + JSON.toJSONString(param), e);
} }
try{ try{
//dimAgency //dimAgency
long startCommunity = System.currentTimeMillis(); long startDept = System.currentTimeMillis();
indexCollCommunityService.saveCommunityAbility(customerId, monthId); indexCollDistrictDepartmentService.saveDepartmentAbility(customerId, monthId);
log.error("街道相关-三大能力执行完毕======总耗时:{}ms,customerId:{}",System.currentTimeMillis()-startCommunity, param.getCustomerId()); log.error("区直部门相关-治理能力执行完毕======总耗时:{}ms,customerId:{}",System.currentTimeMillis()-startDept, param.getCustomerId());
}catch (Exception e){ }catch (Exception e){
log.error("抽取【区治理能力-社区党建能力-服务能力】发生异常,参数:" + JSON.toJSONString(param), e); log.error("抽取【区直部门治理能力】发生异常,参数:" + JSON.toJSONString(param), e);
} }
try{ try{
//dimAgency //dimAgency
long startDistrict = System.currentTimeMillis(); long startDistrict = System.currentTimeMillis();

16
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/extract/FactOriginIssueMainDailyDao.xml

@ -167,13 +167,15 @@
<!-- 查询议题转项目总数 --> <!-- 查询议题转项目总数 -->
<select id="selectIssueTotalShiftProject" resultType="com.epmet.dto.extract.form.GridIssueCountResultDTO"> <select id="selectIssueTotalShiftProject" resultType="com.epmet.dto.extract.form.GridIssueCountResultDTO">
SELECT SELECT
GRID_ID, m.GRID_ID,
COUNT(ISSUE_ID) AS issueTotal COUNT(m.ID) AS issueTotal
FROM fact_origin_issue_log_daily FROM
WHERE DEL_FLAG = '0' fact_origin_issue_main_daily m INNER JOIN
AND MONTH_ID = #{monthId} fact_origin_issue_log_daily l ON m.ID = l.ISSUE_ID
AND CUSTOMER_ID = #{customerId} WHERE m.DEL_FLAG = '0'
AND ACTION_CODE = 'shift_project' AND m.MONTH_ID = #{monthId}
AND m.CUSTOMER_ID = #{customerId}
AND l.ACTION_CODE = 'shift_project'
GROUP BY GRID_ID GROUP BY GRID_ID
</select> </select>

28
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/extract/FactOriginProjectMainDailyDao.xml

@ -980,34 +980,28 @@
<select id="selectAgencyClosedProjectStaticDaily" resultType="com.epmet.dto.extract.result.OrgStatisticsResultDTO"> <select id="selectAgencyClosedProjectStaticDaily" resultType="com.epmet.dto.extract.result.OrgStatisticsResultDTO">
SELECT SELECT
a.ID AS AGENCY_ID, a.ID AS AGENCY_ID,
b.`LEVEL`, a.`LEVEL`,
COUNT( b.ID ) AS "sum", COUNT( b.PROJECT_ID ) AS "sum",
SUM( SUM(IF( b.ORG_TYPE = 'department', 1, 0 )) AS "count"
IF
( b.ORG_TYPE = 'department', 1, 0 )) AS "count"
FROM FROM
dim_agency a dim_agency a
INNER JOIN ( INNER JOIN (
SELECT SELECT
a.ID, PROJECT_ID,
a.PIDS, PIDS,
c.`LEVEL`, ORG_TYPE
b.ORG_TYPE
FROM FROM
fact_origin_project_main_daily a fact_origin_project_log_daily
INNER JOIN fact_origin_project_log_daily b ON a.ID = b.PROJECT_ID
AND b.ACTION_CODE = 'close'
INNER JOIN dim_agency c ON b.AGENCY_ID = c.ID
WHERE WHERE
a.CUSTOMER_ID = #{customerId} CUSTOMER_ID = #{customerId}
AND a.DATE_ID &lt;= #{dateId} AND DATE_ID &lt;= #{dateId}
AND a.PROJECT_STATUS = 'closed' AND ACTION_CODE = 'close'
) b ON b.PIDS LIKE CONCAT( '%', a.ID, '%' ) ) b ON b.PIDS LIKE CONCAT( '%', a.ID, '%' )
WHERE WHERE
a.CUSTOMER_ID = #{customerId} a.CUSTOMER_ID = #{customerId}
GROUP BY GROUP BY
a.ID, a.ID,
b.`LEVEL` a.`LEVEL`
</select> </select>

Loading…
Cancel
Save