|
|
@ -413,5 +413,49 @@ |
|
|
|
UPDATE epdc_img SET DEL_FLAG = 1,UPDATED_TIME=NOW() |
|
|
|
where REFERENCE_ID=#{relationId} |
|
|
|
</update> |
|
|
|
<select id="selectListOfGenPendingReviewEvents" resultType="com.elink.esua.epdc.dto.events.EpdcEventsDTO"> |
|
|
|
|
|
|
|
SELECT |
|
|
|
temp.id, |
|
|
|
temp.nick_Name AS nickName, |
|
|
|
temp.event_content AS eventContent, |
|
|
|
temp.CREATED_TIME AS createdTime, |
|
|
|
temp.ALL_DEPT_NAMES as allDeptNames, |
|
|
|
EVENT_STATE, |
|
|
|
case EVENT_STATE |
|
|
|
when 0 then '待审核' |
|
|
|
when 2 then '驳回' |
|
|
|
when 4 then '审核通过' |
|
|
|
else '' |
|
|
|
end as eventStateName |
|
|
|
FROM |
|
|
|
epdc_events temp |
|
|
|
WHERE |
|
|
|
temp.DEL_FLAG = '0' |
|
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
|
|
AND DATE_FORMAT( temp.CREATED_TIME, '%Y-%m-%d' ) BETWEEN #{startTime} AND #{endTime} |
|
|
|
</if> |
|
|
|
<if test="eventContent != null and eventContent != ''"> |
|
|
|
AND temp.event_content like '%${eventContent}%' |
|
|
|
</if> |
|
|
|
<if test="nickName != null and nickName != '' "> |
|
|
|
AND temp.nick_Name like '%${nickName}%' |
|
|
|
</if> |
|
|
|
<if test="gridId != null and gridId != ''"> |
|
|
|
AND (temp.GRID_ID = #{gridId} |
|
|
|
OR find_in_set(#{gridId},temp.ALL_DEPT_IDS)) |
|
|
|
</if> |
|
|
|
<if test="streetId != null and streetId != ''"> |
|
|
|
AND (find_in_set(#{streetId},temp.PARENT_DEPT_IDS) |
|
|
|
OR find_in_set(#{streetId},temp.ALL_DEPT_IDS)) |
|
|
|
</if> |
|
|
|
<if test="communityId != null and communityId != ''"> |
|
|
|
AND (find_in_set(#{communityId},temp.PARENT_DEPT_IDS) |
|
|
|
OR find_in_set(#{communityId},temp.ALL_DEPT_IDS)) |
|
|
|
</if> |
|
|
|
AND temp.EVENT_STATE = 0 |
|
|
|
AND temp.IS_CREATE_CITY='1' |
|
|
|
ORDER BY temp.CREATED_TIME DESC |
|
|
|
</select> |
|
|
|
|
|
|
|
</mapper> |
|
|
|