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 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
</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>

Loading…
Cancel
Save