Browse Source

修改议题项目列表和详情接口

dev
liuchuang 6 years ago
parent
commit
1b3bb94000
  1. 9
      esua-epdc/epdc-module/epdc-events/epdc-events-client/src/main/java/com/elink/esua/epdc/dto/issue/form/IssueFormDTO.java
  2. 5
      esua-epdc/epdc-module/epdc-events/epdc-events-client/src/main/java/com/elink/esua/epdc/dto/issue/result/IssueDetailResultDTO.java
  3. 9
      esua-epdc/epdc-module/epdc-events/epdc-events-client/src/main/java/com/elink/esua/epdc/dto/item/form/ItemFormDTO.java
  4. 5
      esua-epdc/epdc-module/epdc-events/epdc-events-client/src/main/java/com/elink/esua/epdc/dto/item/result/ItemDetailResultDTO.java
  5. 9
      esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/issue/IssueDao.xml
  6. 9
      esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml
  7. 5
      esua-epdc/epdc-module/epdc-group/epdc-group-client/src/main/java/com.elink.esua.epdc/dto/topic/form/TopicListFormDTO.java
  8. 3
      esua-epdc/epdc-module/epdc-group/epdc-group-server/src/main/resources/mapper/topic/TopicDao.xml

9
esua-epdc/epdc-module/epdc-events/epdc-events-client/src/main/java/com/elink/esua/epdc/dto/issue/form/IssueFormDTO.java

@ -50,7 +50,12 @@ public class IssueFormDTO implements Serializable {
*/ */
private Date someMonthsAgo; private Date someMonthsAgo;
/** /**
* 议题分类ID * 议题一级分类ID
*/ */
private String categoryCode; private String firstCategoryCode;
/**
* 议题ID
*/
private String issueId;
} }

5
esua-epdc/epdc-module/epdc-events/epdc-events-client/src/main/java/com/elink/esua/epdc/dto/issue/result/IssueDetailResultDTO.java

@ -79,4 +79,9 @@ public class IssueDetailResultDTO implements Serializable {
* 议事图片 * 议事图片
*/ */
private List<String> images; private List<String> images;
/**
* 一级分类编码
*/
private String firstCategoryCode;
} }

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

@ -45,9 +45,9 @@ public class ItemFormDTO implements Serializable {
*/ */
private Date someMonthsAgo; private Date someMonthsAgo;
/** /**
* 议题分类ID * 议题一级分类ID
*/ */
private String categoryCode; private String firstCategoryCode;
/** /**
* 用户ID * 用户ID
*/ */
@ -62,4 +62,9 @@ public class ItemFormDTO implements Serializable {
*/ */
@NotNull(message = "项目状态不能为空") @NotNull(message = "项目状态不能为空")
private Integer itemState; private Integer itemState;
/**
* 项目ID
*/
private String itemId;
} }

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

@ -125,4 +125,9 @@ public class ItemDetailResultDTO implements Serializable {
* 议事图片 * 议事图片
*/ */
private List<String> images; private List<String> images;
/**
* 一级分类编码
*/
private String firstCategoryCode;
} }

9
esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/issue/IssueDao.xml

@ -209,8 +209,11 @@
<if test='searchContent != null and searchContent != ""'> <if test='searchContent != null and searchContent != ""'>
AND t1.ISSUE_CONTENT LIKE CONCAT('%',#{searchContent},'%') AND t1.ISSUE_CONTENT LIKE CONCAT('%',#{searchContent},'%')
</if> </if>
<if test='categoryCode != null and categoryCode != ""'> <if test='firstCategoryCode != null and firstCategoryCode != ""'>
AND t1.category_code = #{categoryCode} AND t1.FIRST_CATEGORY_CODE = #{firstCategoryCode}
</if>
<if test='issueId != null and issueId != ""'>
AND t1.ID = #{issueId}
</if> </if>
ORDER BY ORDER BY
<if test='orderType == "1"'>( t2.APPROVE_NUM + t2.OPPOSE_NUM + t2.COMMENT_NUM + t2.BROWSE_NUM ) DESC,</if> <if test='orderType == "1"'>( t2.APPROVE_NUM + t2.OPPOSE_NUM + t2.COMMENT_NUM + t2.BROWSE_NUM ) DESC,</if>
@ -239,6 +242,7 @@
<result property="approveNum" column="APPROVE_NUM"/> <result property="approveNum" column="APPROVE_NUM"/>
<result property="opposeNum" column="OPPOSE_NUM"/> <result property="opposeNum" column="OPPOSE_NUM"/>
<result property="categoryCode" column="CATEGORY_CODE"/> <result property="categoryCode" column="CATEGORY_CODE"/>
<result property="firstCategoryCode" column="FIRST_CATEGORY_CODE"/>
<result property="isOperational" column="isOperational"/> <result property="isOperational" column="isOperational"/>
<collection property="images" ofType="java.lang.String"> <collection property="images" ofType="java.lang.String">
<result property="image" column="IMG_URL"/> <result property="image" column="IMG_URL"/>
@ -259,6 +263,7 @@
issue.USER_FACE, issue.USER_FACE,
issue.ISSUE_ADDRESS, issue.ISSUE_ADDRESS,
issue.CATEGORY_CODE, issue.CATEGORY_CODE,
issue.FIRST_CATEGORY_CODE,
eve.APPROVE_NUM, eve.APPROVE_NUM,
eve.OPPOSE_NUM, eve.OPPOSE_NUM,
eve.BROWSE_NUM, eve.BROWSE_NUM,

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

@ -92,12 +92,15 @@
<if test='formDto.searchContent != null and formDto.searchContent != ""'> <if test='formDto.searchContent != null and formDto.searchContent != ""'>
AND t1.ITEM_CONTENT LIKE CONCAT('%',#{formDto.searchContent},'%') AND t1.ITEM_CONTENT LIKE CONCAT('%',#{formDto.searchContent},'%')
</if> </if>
<if test='formDto.categoryCode != null and formDto.categoryCode != ""'> <if test='formDto.firstCategoryCode != null and formDto.firstCategoryCode != ""'>
AND t1.CATEGORY_CODE = #{formDto.categoryCode} AND t1.FIRST_CATEGORY_CODE = #{formDto.firstCategoryCode}
</if> </if>
<if test='formDto.userId != null and formDto.userId != ""'> <if test='formDto.userId != null and formDto.userId != ""'>
AND t1.USER_ID = #{formDto.userId} AND t1.USER_ID = #{formDto.userId}
</if> </if>
<if test='formDto.itemId != null and formDto.itemId != ""'>
AND t1.ID = #{formDto.itemId}
</if>
ORDER BY ORDER BY
<if test='formDto.orderType != null and formDto.orderType != "" and formDto.orderType == "1"'> <if test='formDto.orderType != null and formDto.orderType != "" and formDto.orderType == "1"'>
t1.LAST_HANDLE_TIME DESC t1.LAST_HANDLE_TIME DESC
@ -278,6 +281,7 @@
<result property="commentNum" column="COMMENT_NUM"/> <result property="commentNum" column="COMMENT_NUM"/>
<result property="statementNum" column="statementNum"/> <result property="statementNum" column="statementNum"/>
<result property="categoryCode" column="CATEGORY_CODE"/> <result property="categoryCode" column="CATEGORY_CODE"/>
<result property="firstCategoryCode" column="FIRST_CATEGORY_CODE"/>
<result property="isOperational" column="isOperational"/> <result property="isOperational" column="isOperational"/>
<result property="isSatisfactionEvaluation" column="isSatisfactionEvaluation"/> <result property="isSatisfactionEvaluation" column="isSatisfactionEvaluation"/>
<result property="isShowSatisfactionEvaluation" column="isShowSatisfactionEvaluation"/> <result property="isShowSatisfactionEvaluation" column="isShowSatisfactionEvaluation"/>
@ -302,6 +306,7 @@
item.USER_FACE, item.USER_FACE,
item.ISSUE_ADDRESS, item.ISSUE_ADDRESS,
item.CATEGORY_CODE, item.CATEGORY_CODE,
item.FIRST_CATEGORY_CODE,
eve.APPROVE_NUM, eve.APPROVE_NUM,
eve.OPPOSE_NUM, eve.OPPOSE_NUM,
eve.BROWSE_NUM, eve.BROWSE_NUM,

5
esua-epdc/epdc-module/epdc-group/epdc-group-client/src/main/java/com.elink.esua.epdc/dto/topic/form/TopicListFormDTO.java

@ -53,4 +53,9 @@ public class TopicListFormDTO implements Serializable {
*/ */
private String currentUserId; private String currentUserId;
/**
* 话题ID
*/
private String topicId;
} }

3
esua-epdc/epdc-module/epdc-group/epdc-group-server/src/main/resources/mapper/topic/TopicDao.xml

@ -167,6 +167,9 @@
<if test="timestamp != null and timestamp.trim() != ''"> <if test="timestamp != null and timestamp.trim() != ''">
<![CDATA[ AND DATE_FORMAT(t1.CREATED_TIME,'%Y-%m-%d %H:%i:%s') <= ]]> #{timestamp} <![CDATA[ AND DATE_FORMAT(t1.CREATED_TIME,'%Y-%m-%d %H:%i:%s') <= ]]> #{timestamp}
</if> </if>
<if test="topicId != null and topicId.trim() != ''">
AND t1.ID = #{topicId}
</if>
<![CDATA[ AND DATE_FORMAT(t1.CREATED_TIME,'%Y-%m-%d %H:%i:%s') >= ]]> #{someMonthsAgo} <![CDATA[ AND DATE_FORMAT(t1.CREATED_TIME,'%Y-%m-%d %H:%i:%s') >= ]]> #{someMonthsAgo}
</if> </if>
ORDER BY ORDER BY

Loading…
Cancel
Save