文档库--更新log中代替标准中文显示
This commit is contained in:
+23
@@ -884,6 +884,14 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if("replace_standard".equals(key)){
|
||||||
|
if(ObjectUtils.isNotEmpty(value)){
|
||||||
|
value = getReplaceStandardName(value);
|
||||||
|
}
|
||||||
|
if(ObjectUtils.isNotEmpty(valueTemp)){
|
||||||
|
valueTemp = getReplaceStandardName(valueTemp);
|
||||||
|
}
|
||||||
|
}
|
||||||
//其他类型
|
//其他类型
|
||||||
if (ObjectUtils.isNotEmpty(value)) {
|
if (ObjectUtils.isNotEmpty(value)) {
|
||||||
if (ObjectUtils.isNotEmpty(valueTemp) && !value.equals(valueTemp)) {
|
if (ObjectUtils.isNotEmpty(valueTemp) && !value.equals(valueTemp)) {
|
||||||
@@ -904,6 +912,21 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
return sb;
|
return sb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private Object getReplaceStandardName(Object value) {
|
||||||
|
LambdaQueryWrapper<BussDocumentLibraryEO> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
String valueStr = (String )value;
|
||||||
|
lambdaQueryWrapper.in(BussDocumentLibraryEO::getId, Arrays.asList(valueStr.split(",")));
|
||||||
|
List<Map<String, Object>> mapList = this.listMaps(lambdaQueryWrapper);
|
||||||
|
List<String> serialNumberList = new ArrayList<>();
|
||||||
|
for (Map<String, Object> stringObjectMap : mapList) {
|
||||||
|
serialNumberList.add((String) stringObjectMap.get("serial_number"));
|
||||||
|
}
|
||||||
|
if(serialNumberList.size() != 0){
|
||||||
|
value = StringUtils.join(serialNumberList,",");
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 处理修改代替标准,发送通知
|
* 处理修改代替标准,发送通知
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user