|
|
@ -19,6 +19,9 @@ |
|
|
|
esua_epdc_events.epdc_issue ei |
|
|
|
LEFT JOIN esua_epdc_events.epdc_events ee ON ee.ID = ei.EVENT_ID |
|
|
|
AND ee.DEL_FLAG = '0' |
|
|
|
WHERE |
|
|
|
ei.DEL_FLAG = '0' |
|
|
|
AND ei.ISSUE_STATE IN ( 0, 2 ) |
|
|
|
<if test="issueContent != null and issueContent != ''"> |
|
|
|
AND ei.ISSUE_CONTENT LIKE CONCAT('%',#{issueContent},'%') |
|
|
|
</if> |
|
|
@ -38,16 +41,13 @@ |
|
|
|
and DATE_FORMAT( ei.CREATED_TIME, '%Y-%m-%d' ) <=#{endTime} |
|
|
|
</if> |
|
|
|
<if test="deptIdList!=null and deptIdList.size()>0"> |
|
|
|
and ei.GRID_ID in |
|
|
|
and ei.GRID_ID in |
|
|
|
<foreach collection="deptIdList" index="index" item="deptId" open="(" separator="," close=")"> |
|
|
|
#{deptId} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
WHERE |
|
|
|
ei.DEL_FLAG = '0' |
|
|
|
AND ei.ISSUE_STATE IN ( 0, 2 ) |
|
|
|
ORDER BY |
|
|
|
expressAttitudeNum DESC |
|
|
|
expressAttitudeNum DESC |
|
|
|
</select> |
|
|
|
|
|
|
|
<!-- 最新议题列表 --> |
|
|
@ -60,13 +60,16 @@ |
|
|
|
ei.CREATED_TIME, |
|
|
|
ee.APPROVE_NUM, |
|
|
|
ee.OPPOSE_NUM, |
|
|
|
ee.COMMENT_NUM, |
|
|
|
ee.BROWSE_NUM, |
|
|
|
( ee.COMMENT_NUM + ee.BROWSE_NUM + ee.APPROVE_NUM + ee.OPPOSE_NUM ) AS expressAttitudeNum |
|
|
|
ee.COMMENT_NUM, |
|
|
|
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 |
|
|
|
AND ee.DEL_FLAG = '0' |
|
|
|
esua_epdc_events.epdc_issue ei |
|
|
|
LEFT JOIN esua_epdc_events.epdc_events ee ON ee.ID = ei.EVENT_ID |
|
|
|
AND ee.DEL_FLAG = '0' |
|
|
|
WHERE |
|
|
|
ei.DEL_FLAG = '0' |
|
|
|
AND ei.ISSUE_STATE IN ( 0, 2 ) |
|
|
|
<if test="issueContent != null and issueContent != ''"> |
|
|
|
AND ei.ISSUE_CONTENT LIKE CONCAT('%',#{issueContent},'%') |
|
|
|
</if> |
|
|
@ -86,14 +89,11 @@ |
|
|
|
and DATE_FORMAT( ei.CREATED_TIME, '%Y-%m-%d' ) <=#{endTime} |
|
|
|
</if> |
|
|
|
<if test="deptIdList!=null and deptIdList.size()>0"> |
|
|
|
and ei.GRID_ID in |
|
|
|
and ei.GRID_ID in |
|
|
|
<foreach collection="deptIdList" index="index" item="deptId" open="(" separator="," close=")"> |
|
|
|
#{deptId} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
WHERE |
|
|
|
ei.DEL_FLAG = '0' |
|
|
|
AND ei.ISSUE_STATE IN ( 0, 2 ) |
|
|
|
ORDER BY |
|
|
|
expressAttitudeNum DESC,CREATED_TIME desc |
|
|
|
</select> |
|
|
|