|
@@ -140,7 +140,7 @@ public class WbsSynchronousServiceImpl {
|
|
|
.ne(WbsTree::getId, wbsTree.getId())
|
|
|
.eq(WbsTree::getInitTableName, wbsTree.getInitTableName())
|
|
|
.eq(WbsTree::getIsDeleted, 0));
|
|
|
- if(CollectionUtil.isEmpty(wbsTrees)){
|
|
|
+ if (CollectionUtil.isEmpty(wbsTrees)) {
|
|
|
throw new ServiceException("当前项目没有相同实体表的其他表单");
|
|
|
}
|
|
|
|
|
@@ -166,11 +166,11 @@ public class WbsSynchronousServiceImpl {
|
|
|
Objects.equals(f.getExcelId(), wbsTreePrivate.getExcelId())
|
|
|
).collect(Collectors.toList());
|
|
|
|
|
|
- if(CollectionUtil.isNotEmpty(collect1)){
|
|
|
+ if (CollectionUtil.isNotEmpty(collect1)) {
|
|
|
collect.addAll(collect1);
|
|
|
}
|
|
|
//清表不同的数据
|
|
|
- List<WbsTreePrivate> noExcelIdEq = wbsTreePrivates.stream().filter(f -> f.getExcelId()!=null && !Objects.equals(f.getExcelId(), wbsTreePrivate.getExcelId())).collect(Collectors.toList());
|
|
|
+ List<WbsTreePrivate> noExcelIdEq = wbsTreePrivates.stream().filter(f -> f.getExcelId() != null && !Objects.equals(f.getExcelId(), wbsTreePrivate.getExcelId())).collect(Collectors.toList());
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
if (CollectionUtil.isNotEmpty(noExcelIdEq)) {
|
|
|
for (WbsTreePrivate treePrivate : noExcelIdEq) {
|
|
@@ -183,7 +183,7 @@ public class WbsSynchronousServiceImpl {
|
|
|
}
|
|
|
|
|
|
//修改数据
|
|
|
- wbsSynchronousEViSaService.updateSyncPrivateForm(wbsTreePrivate, collect, wbsTreeSynchronousRecord.getId(),sb.toString());
|
|
|
+ wbsSynchronousEViSaService.updateSyncPrivateForm(wbsTreePrivate, collect, wbsTreeSynchronousRecord.getCreateUserId(), wbsTreeSynchronousRecord.getId(), sb.toString());
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -205,7 +205,7 @@ public class WbsSynchronousServiceImpl {
|
|
|
if (wbsTreePrivate == null) {
|
|
|
throw new ServiceException("表单不存在");
|
|
|
}
|
|
|
- wbsSynchronousEViSaService.syncPrivateForceForm(wbsTreePrivate, nodeId, wbsTreeSynchronousRecord.getId());
|
|
|
+ wbsSynchronousEViSaService.syncPrivateForceForm(wbsTreePrivate, wbsTreeSynchronousRecord.getCreateUserId(), nodeId, wbsTreeSynchronousRecord.getId());
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -982,7 +982,7 @@ public class WbsSynchronousServiceImpl {
|
|
|
List<Long> collect1 = addData.stream().map(WbsTreePrivate::getPKeyId).collect(Collectors.toList());
|
|
|
//这里可以保存到数据库指定错误日志表
|
|
|
throw new ServiceException("添加失败:" + StringUtil.join(collect1, ","));
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
//排序调整-连续排序
|
|
|
if (wbsTreeSynchronousRecord.getType().contains("7")) {
|
|
|
//获取节点下的当前表单
|
|
@@ -1128,7 +1128,7 @@ public class WbsSynchronousServiceImpl {
|
|
|
//这里可以保存到数据库指定错误日志表
|
|
|
//这里可以保存到数据库指定错误日志表
|
|
|
throw new ServiceException("添加失败:" + StringUtil.join(collect1, ","));
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
//排序调整
|
|
|
if (wbsTreeSynchronousRecord.getType().contains("7")) {
|
|
|
//获取节点下的当前表单
|