|
@@ -1727,10 +1727,18 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
|
|
|
//保存操作记录
|
|
|
List<String> idArray = JSONArray.parseArray(JSONObject.toJSONString(ids.split(",")), String.class);
|
|
|
-
|
|
|
+ //获取当前节点的所有父节点
|
|
|
+ List<WbsTreeContract> result = new ArrayList<>();
|
|
|
+ result.add(removeNode);
|
|
|
+ this.queryParentNode(removeNode, result);
|
|
|
+ StringBuilder pathName = new StringBuilder();
|
|
|
+ for (int i = 1, l = result.size(); i <= l; i++) {
|
|
|
+ WbsTreeContract node = result.get(result.size() - i);
|
|
|
+ pathName.append("-").append(StringUtils.isNotEmpty(node.getFullName()) ? node.getFullName() : node.getNodeName());
|
|
|
+ }
|
|
|
JSONObject json = new JSONObject();
|
|
|
json.put("operationObjIds", idArray);
|
|
|
- json.put("operationObjName", nodeName);
|
|
|
+ json.put("operationObjName", pathName.substring(1));
|
|
|
this.operationLogClient.saveUserOperationLog(4, "资料管理", "工序资料", json);
|
|
|
|
|
|
//保存进回收站
|