|
|
@ -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 |
|
|
|