From ed6eb9be6014c6c3e2fd3da0a4c30218136268c6 Mon Sep 17 00:00:00 2001 From: yinzuomei <576302893@qq.com> Date: Fri, 20 Aug 2021 23:59:32 +0800 Subject: [PATCH] woshoudaode --- .../dataaggre/dto/message/result/MyReceivedResDTO.java | 2 ++ .../service/epmetmessage/impl/EpmetMessageServiceImpl.java | 7 ++++++- .../main/resources/mapper/epmetmessage/InfoProfileDao.xml | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/epmet-module/data-aggregator/data-aggregator-client/src/main/java/com/epmet/dataaggre/dto/message/result/MyReceivedResDTO.java b/epmet-module/data-aggregator/data-aggregator-client/src/main/java/com/epmet/dataaggre/dto/message/result/MyReceivedResDTO.java index d5a5f5b830..7c41916bb8 100644 --- a/epmet-module/data-aggregator/data-aggregator-client/src/main/java/com/epmet/dataaggre/dto/message/result/MyReceivedResDTO.java +++ b/epmet-module/data-aggregator/data-aggregator-client/src/main/java/com/epmet/dataaggre/dto/message/result/MyReceivedResDTO.java @@ -17,6 +17,7 @@ import java.util.List; public class MyReceivedResDTO implements Serializable { private static final long serialVersionUID = 2602131254448130443L; private String infoId; + private String publishStaffId; private String publishStaffName; private String publishStaffOrgName; private String headPhoto; @@ -31,5 +32,6 @@ public class MyReceivedResDTO implements Serializable { private String publishStaffGender; private String firstAttId; + private Boolean isMine; } diff --git a/epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/epmetmessage/impl/EpmetMessageServiceImpl.java b/epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/epmetmessage/impl/EpmetMessageServiceImpl.java index df8653357b..6f66a145a5 100644 --- a/epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/epmetmessage/impl/EpmetMessageServiceImpl.java +++ b/epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/epmetmessage/impl/EpmetMessageServiceImpl.java @@ -222,12 +222,17 @@ public class EpmetMessageServiceImpl implements EpmetMessageService { public List queryMyReceivedList(MySentFormDTO formDTO) { PageInfo data = PageHelper.startPage(formDTO.getPageNo(), formDTO.getPageSize()) .doSelectPageInfo(() -> infoProfileDao.selectListMyReceived(formDTO.getUserId(),formDTO.getContent())); - CustomerStaffInfoCacheResult staffInfoCache = CustomerStaffRedis.getStaffInfo(formDTO.getCustomerId(), formDTO.getUserId()); for(MyReceivedResDTO resDTO: data.getList()){ + CustomerStaffInfoCacheResult staffInfoCache = CustomerStaffRedis.getStaffInfo(formDTO.getCustomerId(), resDTO.getPublishStaffId()); resDTO.setHeadPhoto(StringUtils.isNotBlank(staffInfoCache.getHeadPhoto()) ? staffInfoCache.getHeadPhoto() : StrConstant.EPMETY_STR); resDTO.setPublishStaffGender(String.valueOf(staffInfoCache.getGender())); resDTO.setPublishStaffOrgName(staffInfoCache.getTwoOrgName()); resDTO.setPublishStaffName(staffInfoCache.getRealName()); + if(resDTO.getPublishStaffId().equals(formDTO.getUserId())){ + resDTO.setIsMine(true); + }else{ + resDTO.setIsMine(false); + } } return data.getList(); } diff --git a/epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/epmetmessage/InfoProfileDao.xml b/epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/epmetmessage/InfoProfileDao.xml index a899fc3372..3499ee3ff4 100644 --- a/epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/epmetmessage/InfoProfileDao.xml +++ b/epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/epmetmessage/InfoProfileDao.xml @@ -59,6 +59,7 @@ + @@ -74,6 +75,7 @@ ip.content, ii.CREATED_TIME, ir.READ_FLAG, + ii.publish_staff_id, ip.first_att_id, ia.ATTACHMENT_NAME AS name, ia.ATTACHMENT_FORMAT AS format,