Browse Source

Merge remote-tracking branch 'origin/dev_0521yzm' into dev

master
yinzuomei 4 years ago
parent
commit
dac32c9c96
  1. 10
      epmet-module/gov-issue/gov-issue-client/src/main/java/com/epmet/dto/result/GovTopicOfIssueInfoResultDTO.java
  2. 10
      epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/topic/TopicInfoDTO.java
  3. 9
      epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/topic/result/GovTopicIssueInfoResultDTO.java
  4. 5
      epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/topic/result/ResiTopicAttachmentsResultDTO.java
  5. 30
      epmet-module/resi-group/resi-group-server/src/main/resources/mapper/topic/ResiTopicDao.xml
  6. 8
      epmet-module/resi-hall/resi-hall-client/src/main/java/com/epmet/dto/TopicInfoDTO.java

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;

30
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>
@ -426,25 +429,22 @@
<select id="selectTopicAndAttachments" resultMap="govTopicIssueInfoResultMap">
SELECT
topic.ID AS TOPIC_ID,
topic.TOPIC_CONTENT ,
topic.CREATED_BY ,
topic.GROUP_ID ,
topic.CREATED_TIME ,
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_topic_attachment attachment
ON
topic.ID = attachment.TOPIC_ID
AND
attachment.DEL_FLAG = '0'
AND
attachment.ATTACHMENT_TYPE = 'image'
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}
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