Эх сурвалжийг харах

合同段节点排序和表单排序新增日志

lvy 1 өдөр өмнө
parent
commit
8175fdc660

+ 11 - 0
blade-service/blade-business/src/main/java/org/springblade/business/controller/InformationWriteQueryController.java

@@ -2002,6 +2002,17 @@ public R<Boolean> diySort(@RequestBody DiySortVO vo) {
         if (needCopyNode != null && ObjectUtil.isNotEmpty(needCopyNode.getContractId())) {
             informationQueryService.delAsyncWbsTree(needCopyNode.getContractId());
         }
+        try {
+            JSONObject json = new JSONObject();
+            json.put("operationObjIds", sortLists);
+            json.put("operationObjName", "节点排序");
+            json.put("projectId", needCopyNode == null ? null : needCopyNode.getProjectId());
+            json.put("contractId", needCopyNode == null ? null : needCopyNode.getContractId());
+            json.put("saveData", vo);
+            operationLogClient.saveUserOperationLog(3, "资料管理", "工序资料", json);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
     }
     return R.status(b);
 }

+ 13 - 4
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/WbsTreeContractServiceImpl.java

@@ -38,10 +38,7 @@ import org.springblade.business.dto.EKeyDto;
 import org.springblade.business.dto.ImportTreeDto;
 import org.springblade.business.entity.ConstructionLedger;
 import org.springblade.business.entity.InformationQuery;
-import org.springblade.business.feign.ConstructionLedgerFeignClient;
-import org.springblade.business.feign.InformationQueryClient;
-import org.springblade.business.feign.TrialCyAccessoriesClient;
-import org.springblade.business.feign.WbsTreeContractStatisticsClient;
+import org.springblade.business.feign.*;
 import org.springblade.business.vo.QueryProcessDataVO;
 import org.springblade.common.constant.CommonConstant;
 import org.springblade.common.utils.Colour;
@@ -141,6 +138,7 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
     private final WbsTreeContractStatisticsClient wbsTreeContractStatisticsClient;
     private final FormulaDataBlockMapper formulaDataBlockMapper;
     private final WbsTreeContractExtendService wbsTreeContractExtendService;
+    private final OperationLogClient operationLogClient;
 
 
 
@@ -4321,6 +4319,17 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
             this.update(new LambdaUpdateWrapper<WbsTreeContract>()
                     .eq(WbsTreeContract::getPKeyId, dto.getNodeIds())
                     .set(WbsTreeContract::getIsUseSort, 1));
+            try{
+                JSONObject json = new JSONObject();
+                json.put("operationObjIds", Collections.singletonList(dto.getNodeIds()));
+                json.put("operationObjName", "表单排序");
+                json.put("projectId", dto.getProjectId());
+                json.put("contractId", dto.getContractId());
+                json.put("saveData", dto);
+                operationLogClient.saveUserOperationLog(3, "资料管理", "工序资料", json);
+            } catch (Exception e) {
+                e.printStackTrace();
+            }
         } else {
             throw new ServiceException("请传入ids");
         }