文档库--我的消息内容修改

This commit is contained in:
zhn
2022-03-03 20:18:27 +08:00
parent 0a9c80c8c8
commit 5e00619fb7
@@ -669,14 +669,23 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
LambdaQueryWrapper<BussDocumentLibraryEO> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(BussDocumentLibraryEO::getId, id);
List<Map<String, Object>> dataList = bussDocumentLibraryEOMapper.selectMaps(queryWrapper);
Map<String,Object> mapTemp = new HashMap<>();
mapCopy(map, mapTemp);
List<Map<String,Object>> dataListTemp = new ArrayList<>();
for (Map<String, Object> stringObjectMap : dataList) {
Map<String,Object> mapT = new HashMap<>();
mapCopy(stringObjectMap, mapT);
dataListTemp.add(mapT);
}
//更新log
updateLog(map, dataList, fieldList, fieldDateList, fieldFileList, fieldPullList,cut);
//判断该条数据是否订阅
//处理修改代替标准,发送通知
sendMessageUpdate(map, dataList, fieldList, fieldDateList, fieldFileList, fieldPullList,cut);
sendMessageUpdate(mapTemp, dataListTemp, fieldList, fieldDateList, fieldFileList, fieldPullList,cut);
//字段
StringBuilder fieldsBuilder = new StringBuilder();
@@ -851,7 +860,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
}
} else {
if (ObjectUtils.isNotEmpty(valueTemp)) {
sb.append(dbFieldTxt + "改为" + valueTemp + ",");
sb.append(dbFieldTxt + "由空改为" + valueTemp + ",");
}
}
@@ -880,7 +889,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
}
} else {
if (fileNameListTemp.size() != 0) {
sb.append(dbFieldTxt + "改为" + StringUtils.join(fileNameListTemp, ",") + ",");
sb.append(dbFieldTxt + "由空改为" + StringUtils.join(fileNameListTemp, ",") + ",");
}
}
} else {
@@ -901,7 +910,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
}
} else {
if (ObjectUtils.isNotEmpty(valueTemp)) {
sb.append(dbFieldTxt + "改为" + valueTemp + ",");
sb.append(dbFieldTxt + "由空改为" + valueTemp + ",");
}
}
}