|
|
@ -192,7 +192,13 @@ public class DevMessageServiceImpl extends ServiceImpl<DevMessageMapper, DevMess
|
|
|
|
List<DevMessageResult.DevReceiveInfo> receiveInfoList = devRelationService.getRelationListByObjectIdAndCategory(devMessage.getId(),
|
|
|
|
List<DevMessageResult.DevReceiveInfo> receiveInfoList = devRelationService.getRelationListByObjectIdAndCategory(devMessage.getId(),
|
|
|
|
DevRelationCategoryEnum.MSG_TO_USER.getValue()).stream().map(devRelation -> {
|
|
|
|
DevRelationCategoryEnum.MSG_TO_USER.getValue()).stream().map(devRelation -> {
|
|
|
|
DevMessageResult.DevReceiveInfo devReceiveInfo = new DevMessageResult.DevReceiveInfo();
|
|
|
|
DevMessageResult.DevReceiveInfo devReceiveInfo = new DevMessageResult.DevReceiveInfo();
|
|
|
|
JSONObject userObj = sysUserApi.getUserByIdWithException(devRelation.getTargetId());
|
|
|
|
JSONObject userObj = null;
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
userObj = sysUserApi.getUserByIdWithException(devRelation.getTargetId());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception e) {
|
|
|
|
|
|
|
|
// 收件人中包含删除用户 在此处做处理
|
|
|
|
|
|
|
|
}
|
|
|
|
String userName = "未知用户";
|
|
|
|
String userName = "未知用户";
|
|
|
|
if(ObjectUtil.isNotEmpty(userObj)) {
|
|
|
|
if(ObjectUtil.isNotEmpty(userObj)) {
|
|
|
|
userName = userObj.getStr("name");
|
|
|
|
userName = userObj.getStr("name");
|
|
|
|