Browse Source

【锦水pc端】-【添加数据总览模块】-魏凯 2020-07-15

feature/syp_points
weikai 5 years ago
parent
commit
bdee6e5fe9
  1. 14
      esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/issue/IssueAnalysisDao.xml
  2. 12
      esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/item/ItemAnalysisDao.xml

14
esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/issue/IssueAnalysisDao.xml

@ -16,8 +16,8 @@
ee.BROWSE_NUM,
( ee.COMMENT_NUM + ee.BROWSE_NUM + ee.APPROVE_NUM + ee.OPPOSE_NUM ) AS expressAttitudeNum
FROM
esua_epdc_events.epdc_issue ei
LEFT JOIN esua_epdc_events.epdc_events ee ON ee.ID = ei.EVENT_ID
js_esua_epdc_events.epdc_issue ei
LEFT JOIN js_esua_epdc_events.epdc_events ee ON ee.ID = ei.EVENT_ID
AND ee.DEL_FLAG = '0'
WHERE
ei.DEL_FLAG = '0'
@ -64,8 +64,8 @@
ee.BROWSE_NUM,
( ee.COMMENT_NUM + ee.BROWSE_NUM + ee.APPROVE_NUM + ee.OPPOSE_NUM ) AS expressAttitudeNum
FROM
esua_epdc_events.epdc_issue ei
LEFT JOIN esua_epdc_events.epdc_events ee ON ee.ID = ei.EVENT_ID
js_esua_epdc_events.epdc_issue ei
LEFT JOIN js_esua_epdc_events.epdc_events ee ON ee.ID = ei.EVENT_ID
AND ee.DEL_FLAG = '0'
WHERE
ei.DEL_FLAG = '0'
@ -142,7 +142,7 @@
SUM( ei.ISSUE_STATE = 4 ) AS itemNum,
'1' as categoryLevel
FROM
esua_epdc_events.epdc_issue ei
js_esua_epdc_events.epdc_issue ei
WHERE ei.DEL_FLAG = '0'
<include refid="common_where_if"/>
GROUP BY
@ -160,7 +160,7 @@
SUM( ei.ISSUE_STATE = 4 ) AS itemNum,
'2' as categoryLevel
FROM
esua_epdc_events.epdc_issue ei
js_esua_epdc_events.epdc_issue ei
WHERE
ei.DEL_FLAG = '0'
AND ( LENGTH( ei.CATEGORY_FULL_NAME ) - LENGTH( REPLACE ( ei.CATEGORY_FULL_NAME, '-', '' ) ) ) > 0
@ -180,7 +180,7 @@
SUM( ei.ISSUE_STATE = 4 ) AS itemNum,
'3' as categoryLevel
FROM
esua_epdc_events.epdc_issue ei
js_esua_epdc_events.epdc_issue ei
WHERE
ei.DEL_FLAG = '0'
AND ( LENGTH( ei.CATEGORY_FULL_NAME ) - LENGTH( REPLACE ( ei.CATEGORY_FULL_NAME, '-', '' ) ) ) > 1

12
esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/item/ItemAnalysisDao.xml

@ -127,21 +127,21 @@
ei.ID,
ei.ITEM_CONTENT,
ei.CREATED_TIME,
( SELECT COUNT( eihp.ID ) FROM esua_epdc_events.epdc_item_handle_process eihp WHERE eihp.DEL_FLAG = '0' AND
( SELECT COUNT( eihp.ID ) FROM js_esua_epdc_events.epdc_item_handle_process eihp WHERE eihp.DEL_FLAG = '0' AND
eihp.ITEM_ID = ei.ID ) AS operatNum,
( SELECT CASE WHEN COUNT(eigp.ID) > 0 THEN '1' ELSE '0' END FROM esua_epdc_events.epdc_item_grid_platform eigp
( SELECT CASE WHEN COUNT(eigp.ID) > 0 THEN '1' ELSE '0' END FROM js_esua_epdc_events.epdc_item_grid_platform eigp
WHERE eigp.DEL_FLAG = '0' AND eigp.REFERENCE_ID = ei.ID ) AS reportFlag,
( SELECT COUNT(eid.ID) FROM esua_epdc_events.epdc_item_dept eid WHERE eid.DEL_FLAG = '0' AND eid.ITEM_ID = ei.ID
( SELECT COUNT(eid.ID) FROM js_esua_epdc_events.epdc_item_dept eid WHERE eid.DEL_FLAG = '0' AND eid.ITEM_ID = ei.ID
) AS deptNum,
ei.ITEM_STATE,
( SELECT eihp.CREATED_TIME FROM esua_epdc_events.epdc_item_handle_process eihp WHERE eihp.DEL_FLAG = '0' AND
( SELECT eihp.CREATED_TIME FROM js_esua_epdc_events.epdc_item_handle_process eihp WHERE eihp.DEL_FLAG = '0' AND
eihp.ITEM_ID = ei.ID AND eihp.STATE IN (5, 10) LIMIT 1 ) AS processedTime,
( SELECT TIMESTAMPDIFF( HOUR, MIN(eihp.CREATED_TIME), MAX(eihp.CREATED_TIME) ) FROM
esua_epdc_events.epdc_item_handle_process eihp WHERE eihp.DEL_FLAG = '0' AND eihp.ITEM_ID = ei.ID ) AS takeTime,
js_esua_epdc_events.epdc_item_handle_process eihp WHERE eihp.DEL_FLAG = '0' AND eihp.ITEM_ID = ei.ID ) AS takeTime,
ei.ALL_DEPT_NAMES,
ei.EVALUATION_SCORE
FROM
esua_epdc_events.epdc_item ei
js_esua_epdc_events.epdc_item ei
WHERE
ei.DEL_FLAG = '0'
AND ei.GRID_ID IN

Loading…
Cancel
Save