Browse Source

增加返参

dev
sunyuchao 3 years ago
parent
commit
7ec94d823b
  1. 4
      epmet-module/gov-voice/gov-voice-client/src/main/java/com/epmet/dto/result/DraftPcListResultDTO.java
  2. 5
      epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/DraftDao.xml

4
epmet-module/gov-voice/gov-voice-client/src/main/java/com/epmet/dto/result/DraftPcListResultDTO.java

@ -47,6 +47,10 @@ public class DraftPcListResultDTO implements Serializable {
* 发布时间
*/
private String publishDate;
/**
* 创建时间
*/
private String createdTime;
/**
* 文章标签串
*/

5
epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/DraftDao.xml

@ -194,6 +194,7 @@
a.created_by AS "createdBy",
a.is_top AS "isTop",
IF (a.is_top = '0', '否', '是') "isTopName",
a.created_time AS "createdTime",
ac.img_url AS "imgUrl"
FROM
draft a
@ -213,10 +214,10 @@
AND a.title like concat('%', #{title}, '%')
</if>
<if test="startDate != null and startDate.trim() != ''">
AND a.publish_date >= #{startDate}
AND a.created_time >= #{startDate}
</if>
<if test="endDate != null and endDate.trim() != ''">
<![CDATA[AND a.publish_date <= #{endDate}]]>
<![CDATA[AND a.created_time <= #{endDate}]]>
</if>
ORDER BY a.publish_date DESC, a.updated_time DESC
</select>

Loading…
Cancel
Save