虚拟清单更新log--只记录法规新增和删除的变化,不对其他信息操作做记录
This commit is contained in:
+14
-14
@@ -236,11 +236,11 @@ public class DummyInventoryInfoEOServiceImpl extends ServiceImpl<DummyInventoryI
|
||||
List<Map<String,String>> infoDiffListEn = new ArrayList<>();
|
||||
infoDiffListEn.add(infoDiffEn);
|
||||
if(infoDiff.size()>1) {
|
||||
contentLog = dummyInventoryBaseEOService.setInfoDiffListContent(null, infoDiffList, contentLog);
|
||||
enContentLog = dummyInventoryBaseEOService.setInfoDiffListContent(enContentLog, infoDiffListEn, null);
|
||||
// contentLog = dummyInventoryBaseEOService.setInfoDiffListContent(null, infoDiffList, contentLog);
|
||||
// enContentLog = dummyInventoryBaseEOService.setInfoDiffListContent(enContentLog, infoDiffListEn, null);
|
||||
|
||||
dummyLogEOService.updateLog(contentLog, dummyInventoryInfoEO.getDummyInventoryBaseId(),CutEnum.CN.getValue());
|
||||
dummyLogEOService.updateLog(enContentLog, dummyInventoryInfoEO.getDummyInventoryBaseId(),CutEnum.EN.getValue());
|
||||
// dummyLogEOService.updateLog(contentLog, dummyInventoryInfoEO.getDummyInventoryBaseId(),CutEnum.CN.getValue());
|
||||
// dummyLogEOService.updateLog(enContentLog, dummyInventoryInfoEO.getDummyInventoryBaseId(),CutEnum.EN.getValue());
|
||||
}
|
||||
}else{
|
||||
if(CutEnum.CN.getValue().equals(dummyInventoryInfoEO.getCut())){
|
||||
@@ -362,14 +362,14 @@ public class DummyInventoryInfoEOServiceImpl extends ServiceImpl<DummyInventoryI
|
||||
this.saveBatch(dummyInventoryInfoEOList);
|
||||
|
||||
//更新log
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
String username = sysUser.getUsername();
|
||||
String projectId = dummyInventoryInfoEOList.get(0).getDummyInventoryBaseId();
|
||||
String serialNumber = dummyInventoryInfoEOList.stream().map(e->e.getSerialNumber()).collect(Collectors.joining(","));
|
||||
String contentLog = username+"复制了“"+serialNumber+"”";
|
||||
String enContentLog = username+" copied “"+serialNumber+"”.";
|
||||
dummyLogEOService.updateLog(contentLog, projectId,CutEnum.CN.getValue());
|
||||
dummyLogEOService.updateLog(enContentLog, projectId,CutEnum.EN.getValue());
|
||||
// LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
// String username = sysUser.getUsername();
|
||||
// String projectId = dummyInventoryInfoEOList.get(0).getDummyInventoryBaseId();
|
||||
// String serialNumber = dummyInventoryInfoEOList.stream().map(e->e.getSerialNumber()).collect(Collectors.joining(","));
|
||||
// String contentLog = username+"复制了“"+serialNumber+"”";
|
||||
// String enContentLog = username+" copied “"+serialNumber+"”.";
|
||||
// dummyLogEOService.updateLog(contentLog, projectId,CutEnum.CN.getValue());
|
||||
// dummyLogEOService.updateLog(enContentLog, projectId,CutEnum.EN.getValue());
|
||||
}
|
||||
}else{
|
||||
if(CutEnum.CN.getValue().equals(cut)){
|
||||
@@ -600,12 +600,12 @@ public class DummyInventoryInfoEOServiceImpl extends ServiceImpl<DummyInventoryI
|
||||
|
||||
if(StringUtils.isNotBlank(content)){
|
||||
contentLog = contentLog.substring(0, contentLog.length() - 5) + "”";
|
||||
dummyLogEOService.updateLog(contentLog, projectId,CutEnum.CN.getValue());
|
||||
// dummyLogEOService.updateLog(contentLog, projectId,CutEnum.CN.getValue());
|
||||
}
|
||||
|
||||
if(StringUtils.isNotBlank(enContent)){
|
||||
enContentLog = enContentLog.substring(0, enContentLog.length() - 5) + "”";
|
||||
dummyLogEOService.updateLog(enContentLog, projectId,CutEnum.EN.getValue());
|
||||
// dummyLogEOService.updateLog(enContentLog, projectId,CutEnum.EN.getValue());
|
||||
}
|
||||
}
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user