Browse Source

Merge remote-tracking branch 'origin/dev_group_act_notice' into dev_temp

dev_shibei_match
zxc 4 years ago
parent
commit
3b1b279a2f
  1. 5
      epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/group/result/AllGroupListResultDTO.java
  2. 16
      epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/notice/result/NoticeDetailResultDTO.java
  3. 3
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/notice/service/impl/NoticeServiceImpl.java
  4. 8
      epmet-module/resi-group/resi-group-server/src/main/resources/mapper/group/ResiGroupDao.xml

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

@ -5,9 +5,8 @@ import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
/** /**
* @Description 推荐小组查询返参 * @Author sun
* @Author yinzuomei * @Description 所有小组查询-接口返参
* @Date 2020/3/28 17:11
*/ */
@Data @Data
public class AllGroupListResultDTO implements Serializable { public class AllGroupListResultDTO implements Serializable {

16
epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/notice/result/NoticeDetailResultDTO.java

@ -1,15 +1,11 @@
package com.epmet.resi.group.dto.notice.result; package com.epmet.resi.group.dto.notice.result;
import com.epmet.resi.group.dto.notice.form.AddNoticeFormDTO; import com.alibaba.fastjson.annotation.JSONField;
import com.epmet.resi.group.dto.topic.form.FileDTO;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import java.io.Serializable; import java.io.Serializable;
import java.util.ArrayList; import java.util.Date;
import java.util.List; import java.util.List;
/** /**
@ -39,7 +35,13 @@ public class NoticeDetailResultDTO implements Serializable {
/** /**
* 发布时间yyyy-MM-dd HH:mm * 发布时间yyyy-MM-dd HH:mm
*/ */
private String releaseTime; @JSONField(format="yyyy-MM-dd HH:mm")
private Date releaseTime;
/**
* 通知过期时间(此时间需大于变更时间)
*/
@JSONField(format="yyyy-MM-dd HH:mm")
private Date expirationTime;
/** /**
* 发布人头像 * 发布人头像
*/ */

3
epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/notice/service/impl/NoticeServiceImpl.java

@ -469,7 +469,8 @@ public class NoticeServiceImpl extends BaseServiceImpl<NoticeDao, NoticeEntity>
resultDTO.setTitle(entity.getTitle()); resultDTO.setTitle(entity.getTitle());
resultDTO.setContent(entity.getContent()); resultDTO.setContent(entity.getContent());
resultDTO.setIsChange(entity.getIsChange()); resultDTO.setIsChange(entity.getIsChange());
resultDTO.setReleaseTime(entity.getChangeTime().toString()); resultDTO.setReleaseTime(entity.getChangeTime());
resultDTO.setExpirationTime(entity.getExpirationTime());
StringBuffer name = new StringBuffer(); StringBuffer name = new StringBuffer();
StringBuffer url = new StringBuffer(); StringBuffer url = new StringBuffer();
resultDTOList.forEach(user -> { resultDTOList.forEach(user -> {

8
epmet-module/resi-group/resi-group-server/src/main/resources/mapper/group/ResiGroupDao.xml

@ -575,7 +575,7 @@
(SELECT (SELECT
ai.ID, ai.ID,
ai.CREATED_BY AS userId, ai.CREATED_BY AS userId,
DATE_FORMAT(ai.CREATED_TIME,'%Y-%m-%d %H:%i:%s') AS releaseTime, DATE_FORMAT(ai.CHANGED_TIME,'%Y-%m-%d %H:%i:%s') AS releaseTime,
IFNULL(ac.CONTENT,'') AS content, IFNULL(ac.CONTENT,'') AS content,
ai.`STATUS` AS status, ai.`STATUS` AS status,
'' AS issueId, '' AS issueId,
@ -587,7 +587,7 @@
LEFT JOIN group_act_content ac2 ON ac2.GROUP_ACT_ID = ai.ID AND ac2.CONTENT_TYPE = 'img' AND ac2.DEL_FLAG = 0 AND ac2.SORT = 1 LEFT JOIN group_act_content ac2 ON ac2.GROUP_ACT_ID = ai.ID AND ac2.CONTENT_TYPE = 'img' AND ac2.DEL_FLAG = 0 AND ac2.SORT = 1
WHERE ai.DEL_FLAG = '0' WHERE ai.DEL_FLAG = '0'
AND ai.GROUP_ID = #{groupId} AND ai.GROUP_ID = #{groupId}
ORDER BY ai.CREATED_TIME DESC ORDER BY ai.CHANGED_TIME DESC
LIMIT 10) LIMIT 10)
UNION ALL UNION ALL
(SELECT (SELECT
@ -737,7 +737,7 @@
(SELECT (SELECT
ai.ID, ai.ID,
ai.CREATED_BY AS userId, ai.CREATED_BY AS userId,
DATE_FORMAT(ai.CREATED_TIME,'%Y-%m-%d %H:%i:%s') AS releaseTime, DATE_FORMAT(ai.CHANGED_TIME,'%Y-%m-%d %H:%i:%s') AS releaseTime,
IFNULL(ac.CONTENT,'') AS content, IFNULL(ac.CONTENT,'') AS content,
'act' AS contentType, 'act' AS contentType,
IFNULL(ac2.CONTENT,'') AS firstPhoto, IFNULL(ac2.CONTENT,'') AS firstPhoto,
@ -813,7 +813,7 @@
(SELECT (SELECT
ai.ID, ai.ID,
ai.CREATED_BY AS userId, ai.CREATED_BY AS userId,
DATE_FORMAT(ai.CREATED_TIME,'%Y-%m-%d %H:%i:%s') AS releaseTime, DATE_FORMAT(ai.CHANGED_TIME,'%Y-%m-%d %H:%i:%s') AS releaseTime,
IFNULL(ac.CONTENT,'') AS content, IFNULL(ac.CONTENT,'') AS content,
ai.`STATUS` AS status, ai.`STATUS` AS status,
'' AS issueId, '' AS issueId,

Loading…
Cancel
Save