Browse Source

北尚诉办-我的上报列表调整

feature/dangjian
Jackwang 3 years ago
parent
commit
97b65c091d
  1. 5
      esua-epdc/epdc-module/epdc-events/epdc-events-client/src/main/java/com/elink/esua/epdc/dto/item/form/PeopleItemFormDTO.java
  2. 26
      esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml

5
esua-epdc/epdc-module/epdc-events/epdc-events-client/src/main/java/com/elink/esua/epdc/dto/item/form/PeopleItemFormDTO.java

@ -19,6 +19,11 @@ public class PeopleItemFormDTO implements Serializable {
*/ */
private String userId; private String userId;
/**
* 时间戳
*/
private String timestamp;
/** /**
* 搜索内容 * 搜索内容
*/ */

26
esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml

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

Loading…
Cancel
Save