|
@ -611,7 +611,8 @@ |
|
|
e.LONGITUDE, |
|
|
e.LONGITUDE, |
|
|
e.EVENT_CONTENT AS eventContent, |
|
|
e.EVENT_CONTENT AS eventContent, |
|
|
r.MANAGE_STATUS AS manageStatus, |
|
|
r.MANAGE_STATUS AS manageStatus, |
|
|
c.CATEGORY_CODE AS categoryCode |
|
|
c.CATEGORY_CODE AS categoryCode, |
|
|
|
|
|
a.ATTACHMENT_URL AS imgUrl |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<select id="getListByStatus" resultType="com.epmet.dto.result.IcEventResultDTO"> |
|
|
<select id="getListByStatus" resultType="com.epmet.dto.result.IcEventResultDTO"> |
|
@ -620,6 +621,7 @@ |
|
|
FROM ic_event e |
|
|
FROM ic_event e |
|
|
LEFT JOIN ic_event_reply r ON r.IC_EVENT_ID = e.ID |
|
|
LEFT JOIN ic_event_reply r ON r.IC_EVENT_ID = e.ID |
|
|
LEFT JOIN ic_event_category c ON c.IC_EVENT_ID = e.ID |
|
|
LEFT JOIN ic_event_category c ON c.IC_EVENT_ID = e.ID |
|
|
|
|
|
LEFT JOIN ic_event_attachment a ON a.IC_EVENT_ID = e.ID |
|
|
<where> |
|
|
<where> |
|
|
e.DEL_FLAG = 0 |
|
|
e.DEL_FLAG = 0 |
|
|
<if test="null != orgIdPath and orgIdPath != ''"> |
|
|
<if test="null != orgIdPath and orgIdPath != ''"> |
|
@ -638,7 +640,7 @@ |
|
|
AND c.CATEGORY_CODE = #{categoryCode} |
|
|
AND c.CATEGORY_CODE = #{categoryCode} |
|
|
</if> |
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
GROUP BY e.ID,c.ic_event_id,r.ic_event_id |
|
|
GROUP BY e.ID,c.IC_EVENT_ID,r.IC_EVENT_ID,a.IC_EVENT_ID |
|
|
ORDER BY r.MANAGE_TIME DESC,e.CREATED_TIME DESC |
|
|
ORDER BY r.MANAGE_TIME DESC,e.CREATED_TIME DESC |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|