|
|
|
@ -1186,6 +1186,7 @@ |
|
|
|
and t.FIRST_CATEGORY_CODE!=t.category_code |
|
|
|
</select> |
|
|
|
<select id="getItemListByUserId" resultMap="itemsMap"> |
|
|
|
|
|
|
|
SELECT |
|
|
|
item.ID, |
|
|
|
item.EVENT_ID, |
|
|
|
@ -1232,31 +1233,26 @@ |
|
|
|
FROM |
|
|
|
epdc_item t1 |
|
|
|
WHERE t1.DEL_FLAG = '0' |
|
|
|
<if test="formDto.timestamp != null"> |
|
|
|
<![CDATA[ AND DATE_FORMAT(t1.CREATED_TIME,'%Y-%m-%d %H:%i:%s') <= ]]> #{formDto.timestamp} |
|
|
|
<if test="timestamp != null"> |
|
|
|
<![CDATA[ AND DATE_FORMAT(t1.CREATED_TIME,'%Y-%m-%d %H:%i:%s') <= ]]> #{timestamp} |
|
|
|
</if> |
|
|
|
<if test='formDto.searchContent != null and formDto.searchContent != ""'> |
|
|
|
AND t1.ITEM_CONTENT LIKE CONCAT('%',#{formDto.searchContent},'%') |
|
|
|
<if test='searchContent != null and searchContent != ""'> |
|
|
|
AND t1.ITEM_CONTENT LIKE CONCAT('%',#{searchContent},'%') |
|
|
|
</if> |
|
|
|
<if test='formDto.userId != null and formDto.userId != ""'> |
|
|
|
AND t1.USER_ID = #{formDto.userId} |
|
|
|
<if test='userId != null and userId != ""'> |
|
|
|
AND t1.USER_ID = #{userId} |
|
|
|
</if> |
|
|
|
<if test='formDto.peopleFlag != null and formDto.peopleFlag != ""'> |
|
|
|
AND t1.PEOPLE_FLAG = #{formDto.peopleFlag} |
|
|
|
<if test='peopleFlag != null and peopleFlag != ""'> |
|
|
|
AND t1.PEOPLE_FLAG = #{peopleFlag} |
|
|
|
</if> |
|
|
|
ORDER BY |
|
|
|
<if test='formDto.orderType != null and formDto.orderType != "" and formDto.orderType == "1"'> |
|
|
|
t1.LAST_HANDLE_TIME DESC |
|
|
|
</if> |
|
|
|
t1.CREATED_TIME DESC |
|
|
|
LIMIT #{formDto.pageIndex},#{formDto.pageSize} |
|
|
|
LIMIT #{pageIndex},#{pageSize} |
|
|
|
) temp |
|
|
|
) |
|
|
|
ORDER BY |
|
|
|
<if test='formDto.orderType != null and formDto.orderType != "" and formDto.orderType == "1"'> |
|
|
|
item.LAST_HANDLE_TIME DESC |
|
|
|
</if> |
|
|
|
item.CREATED_TIME DESC, |
|
|
|
img.IMG_URL |
|
|
|
|
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|
|