Browse Source

列表增加返参

dev
sunyuchao 3 years ago
parent
commit
1433d49531
  1. 4
      epmet-module/gov-voice/gov-voice-client/src/main/java/com/epmet/dto/result/DraftPcListResultDTO.java
  2. 8
      epmet-module/gov-voice/gov-voice-client/src/main/java/com/epmet/dto/result/PublishedListResultDTO.java
  3. 2
      epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/ArticleDao.xml
  4. 1
      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

@ -19,6 +19,10 @@ public class DraftPcListResultDTO implements Serializable {
* 文章草稿ID * 文章草稿ID
*/ */
private String draftId; private String draftId;
/**
* 组织Id
*/
private String agencyId;
/** /**
* 文章标题 * 文章标题
*/ */

8
epmet-module/gov-voice/gov-voice-client/src/main/java/com/epmet/dto/result/PublishedListResultDTO.java

@ -21,6 +21,10 @@ public class PublishedListResultDTO implements Serializable {
* 文章ID * 文章ID
*/ */
private String articleId; private String articleId;
/**
* 组织Id
*/
private String agencyId;
/** /**
* 文章标题 * 文章标题
*/ */
@ -70,6 +74,10 @@ public class PublishedListResultDTO implements Serializable {
* 上下线状态上线published下线offline * 上下线状态上线published下线offline
*/ */
private String statusFlag; private String statusFlag;
/**
* 上下线状态已发布published已下线offline
*/
private String statusFlagName;
/** /**
* 是不是我发布 * 是不是我发布
*/ */

2
epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/ArticleDao.xml

@ -429,6 +429,7 @@
<select id="selectAllArticle" resultType="com.epmet.dto.result.PublishedListResultDTO"> <select id="selectAllArticle" resultType="com.epmet.dto.result.PublishedListResultDTO">
SELECT SELECT
a.id AS "articleId", a.id AS "articleId",
a.org_id AS "agencyId",
a.title AS "title", a.title AS "title",
IFNULL(a.preview_content, "") AS "previewContent", IFNULL(a.preview_content, "") AS "previewContent",
a.publish_range_desc AS "publishRangeDesc", a.publish_range_desc AS "publishRangeDesc",
@ -438,6 +439,7 @@
a.publish_date AS "publishDate", a.publish_date AS "publishDate",
IFNULL(a.tags, "") AS "tags", IFNULL(a.tags, "") AS "tags",
a.status_flag AS "statusFlag", a.status_flag AS "statusFlag",
IF (a.status_flag = 'published', '已发布', '已下线') "statusFlagName",
a.rich_text_flag AS "richTextFlag", a.rich_text_flag AS "richTextFlag",
a.created_by AS "createdBy", a.created_by AS "createdBy",
a.is_top AS "isTop", a.is_top AS "isTop",

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

@ -181,6 +181,7 @@
<select id="selectAllDraft" resultType="com.epmet.dto.result.DraftPcListResultDTO"> <select id="selectAllDraft" resultType="com.epmet.dto.result.DraftPcListResultDTO">
SELECT SELECT
a.id AS "draftId", a.id AS "draftId",
a.org_id AS "agencyId",
a.title AS "title", a.title AS "title",
IFNULL(a.preview_content, "") AS "previewContent", IFNULL(a.preview_content, "") AS "previewContent",
a.publish_range_desc AS "publishRangeDesc", a.publish_range_desc AS "publishRangeDesc",

Loading…
Cancel
Save