jianjun 4 years ago
parent
commit
d5cea93ac5
  1. 2
      epmet-auth/src/main/resources/bootstrap.yml
  2. 10
      epmet-module/gov-issue/gov-issue-client/src/main/java/com/epmet/dto/result/GovTopicOfIssueInfoResultDTO.java
  3. 10
      epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/topic/TopicInfoDTO.java
  4. 9
      epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/topic/result/GovTopicIssueInfoResultDTO.java
  5. 5
      epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/topic/result/ResiTopicAttachmentsResultDTO.java
  6. 48
      epmet-module/resi-group/resi-group-server/src/main/resources/mapper/topic/ResiTopicDao.xml
  7. 8
      epmet-module/resi-hall/resi-hall-client/src/main/java/com/epmet/dto/TopicInfoDTO.java

2
epmet-auth/src/main/resources/bootstrap.yml

@ -145,7 +145,7 @@ thirdplat:
appkey: @thirdplat.jcet.g.appkey@
appsecret: @thirdplat.jcet.g.appsecret@
pyld:
domain: https://epmet-ext1-py.elinkservice.cn/platform
domain: https://epmet-ext1.pingyin.gov.cn/platform
appId: 7a5aec009ba4eba8e254ee64fe3775e1
appKey: 14faef9af508d1c253b720ea5a43f9de
appSecret: 38e7c2604c8dd33c445705d25eebbfc12a2f7ed8a87111e9e10a40312d3a1595

10
epmet-module/gov-issue/gov-issue-client/src/main/java/com/epmet/dto/result/GovTopicOfIssueInfoResultDTO.java

@ -43,4 +43,14 @@ public class GovTopicOfIssueInfoResultDTO implements Serializable {
* 话题发表人电话
* */
private String topicPublisherMobile;
/**
* 话题所属小组id
*/
private String groupId;
/**
* 话题所属小组名称
*/
private String groupName;
}

10
epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/topic/TopicInfoDTO.java

@ -45,4 +45,14 @@ public class TopicInfoDTO implements Serializable {
*/
private String groupType;
/**
* 话题所属小组id
*/
private String groupId;
/**
* 话题所属小组名称
*/
private String groupName;
}

9
epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/topic/result/GovTopicIssueInfoResultDTO.java

@ -65,4 +65,13 @@ public class GovTopicIssueInfoResultDTO implements Serializable {
*/
private String belongsGridName;
/**
* 话题所属小组id
*/
private String groupId;
/**
* 话题所属小组名称
*/
private String groupName;
}

5
epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/topic/result/ResiTopicAttachmentsResultDTO.java

@ -24,6 +24,11 @@ public class ResiTopicAttachmentsResultDTO implements Serializable {
private String groupId;
/**
* 话题所属小组名称
*/
private String groupName;
private Date createdTime;
private List<String> photoList;

48
epmet-module/resi-group/resi-group-server/src/main/resources/mapper/topic/ResiTopicDao.xml

@ -382,7 +382,9 @@
rt.topic_content AS topicContent,
rt.created_by AS publishedUser,
UNIX_TIMESTAMP(rt.created_time) AS publishedTime,
rg.group_type AS groupType
rg.group_type AS groupType,
rg.id as groupId,
rg.GROUP_NAME as groupName
FROM
resi_topic rt
LEFT JOIN resi_group rg ON rt.group_id = rg.id
@ -414,6 +416,7 @@
<result property="topicContent" column="TOPIC_CONTENT"/>
<result property="createdBy" column="CREATED_BY" />
<result property="groupId" column="GROUP_ID" />
<result property="groupName" column="groupName" />
<result property="createdTime" column="CREATED_TIME" />
<collection property="photoList" ofType="java.lang.String">
<constructor>
@ -424,29 +427,26 @@
<!-- 查询话题和附件信息 -->
<select id="selectTopicAndAttachments" resultMap="govTopicIssueInfoResultMap">
SELECT
topic.ID AS TOPIC_ID,
topic.TOPIC_CONTENT ,
topic.CREATED_BY ,
topic.GROUP_ID ,
topic.CREATED_TIME ,
attachment.ATTACHMENT_URL
FROM
resi_topic topic
LEFT JOIN
resi_topic_attachment attachment
ON
topic.ID = attachment.TOPIC_ID
AND
attachment.DEL_FLAG = '0'
AND
attachment.ATTACHMENT_TYPE = 'image'
WHERE
topic.DEL_FLAG = '0'
AND
topic.ID = #{topicId}
ORDER BY
attachment.SORT ASC
SELECT
topic.ID AS TOPIC_ID,
topic.TOPIC_CONTENT,
topic.CREATED_BY,
topic.GROUP_ID,
rg.GROUP_NAME as groupName,
topic.CREATED_TIME,
attachment.ATTACHMENT_URL
FROM
resi_topic topic
left join resi_group rg
on(topic.GROUP_ID=rg.id and rg.DEL_FLAG='0')
LEFT JOIN resi_topic_attachment attachment ON topic.ID = attachment.TOPIC_ID
AND attachment.DEL_FLAG = '0'
AND attachment.ATTACHMENT_TYPE = 'image'
WHERE
topic.DEL_FLAG = '0'
AND topic.ID = #{topicId}
ORDER BY
attachment.SORT ASC
</select>
<!-- 校验本人是不是话题发起人 -->

8
epmet-module/resi-hall/resi-hall-client/src/main/java/com/epmet/dto/TopicInfoDTO.java

@ -45,5 +45,13 @@ public class TopicInfoDTO implements Serializable {
*/
private String groupType;
/**
* 话题所属小组id
*/
private String groupId;
/**
* 话题所属小组名称
*/
private String groupName;
}

Loading…
Cancel
Save