|
@@ -1958,9 +1958,16 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
@NotNull
|
|
|
private R<Boolean> saveOrCopyNodeTree(List<WbsTreeContract> saveList, List<ConstructionLedger> saveLedger, Integer operationType, WbsTreeContract currentNode) {
|
|
|
if (saveList.size() > 0) {
|
|
|
+ StringBuilder str = new StringBuilder();
|
|
|
//保存施工日志
|
|
|
if (saveLedger.size() > 0) {
|
|
|
this.constructionLedgerService.saveBatch(saveLedger, 1000);
|
|
|
+ str.append("-[");
|
|
|
+ for (ConstructionLedger ledger : saveLedger) {
|
|
|
+ str.append(ledger.getSite()+",");
|
|
|
+ }
|
|
|
+ str.deleteCharAt(str.length()-1);
|
|
|
+ str.append("]");
|
|
|
}
|
|
|
|
|
|
try {
|
|
@@ -1973,7 +1980,7 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
WbsTreeContract node = result.get(result.size() - i);
|
|
|
pathName.append("-").append(StringUtils.isNotEmpty(node.getFullName()) ? node.getFullName() : node.getNodeName());
|
|
|
}
|
|
|
-
|
|
|
+ pathName.append(str);
|
|
|
JSONObject json = new JSONObject();
|
|
|
json.put("operationObjIds", JSONArray.parseArray(JSONObject.toJSONString(saveList.stream().map(WbsTreeContract::getPKeyId).distinct().collect(Collectors.toList())), String.class));
|
|
|
json.put("operationObjName", pathName.substring(1));
|