|
|
@ -222,12 +222,17 @@ public class EpmetMessageServiceImpl implements EpmetMessageService { |
|
|
|
public List<MyReceivedResDTO> queryMyReceivedList(MySentFormDTO formDTO) { |
|
|
|
PageInfo<MyReceivedResDTO> 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(); |
|
|
|
} |
|
|
|