Ver código fonte

Merge branch 'refs/heads/feature-lihb-20250716' into test-merge

LHB 2 semanas atrás
pai
commit
81ca3a2035

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

@@ -1060,7 +1060,7 @@ public class InformationWriteQueryController extends BladeController {
                             // 获取或下载文件
                             Path sourcePath = FileUtils.getOrDownloadFile(htmlUrl);
                             // 生成副本路径
-                            Path copyPath = FileUtils.generateCopyPath(sourcePath);
+                            Path copyPath = FileUtils.generateCopyPath(sourcePath,wbsTreeContract.getPKeyId());
                             // 执行复制操作(覆盖已存在的文件)
                             Files.copy(sourcePath, copyPath, StandardCopyOption.REPLACE_EXISTING);
 

+ 2 - 2
blade-service/blade-business/src/main/java/org/springblade/business/utils/FileUtils.java

@@ -399,8 +399,8 @@ public class FileUtils {
     /**
      * 生成带后缀的副本路径
      */
-    public static Path generateCopyPath(Path originalPath) {
-        String suffix = "_copy";
+    public static Path generateCopyPath(Path originalPath, Long pKeyId) {
+        String suffix = "_" + pKeyId + "_copy";
         String fileName = originalPath.getFileName().toString();
         int dotIndex = fileName.lastIndexOf('.');
 

+ 3 - 7
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/WbsSynchronousServiceImpl.java

@@ -776,10 +776,6 @@ public class WbsSynchronousServiceImpl {
                                             editContractNode.setIsLinkTable(2);
                                         }
                                     }
-                                    //排序
-                                    if (collect.contains(7)) {
-                                        editContractNode.setSort(templateNode.getSort());
-                                    }
 
                                     //手动选中的表单 进行筛选
                                     if (collect.contains(2) || collect.contains(3) || collect.contains(4) || collect.contains(5) || collect.contains(6) || collect.contains(7)) {
@@ -897,10 +893,10 @@ public class WbsSynchronousServiceImpl {
                     .eq(WbsTreeSynchronousRecord::getId, wbsTreeSynchronousRecord.getId()));
         }
 
-
+        System.err.println(errorMsg);
         synchronousRecordMapper.update(null, Wrappers.<WbsTreeSynchronousRecord>lambdaUpdate()
                 .set(WbsTreeSynchronousRecord::getStatus, 2)
-                .set(WbsTreeSynchronousRecord::getErrorMsg, errorMsg.toString())
+                .set(WbsTreeSynchronousRecord::getErrorMsg, null)
                 .set(WbsTreeSynchronousRecord::getUpdateTime, DateTime.now())
                 .eq(WbsTreeSynchronousRecord::getId, wbsTreeSynchronousRecord.getId()));
     }
@@ -936,7 +932,7 @@ public class WbsSynchronousServiceImpl {
                 }
                 //如果现在还找不到当前节点的父节点就表示数据有问题
                 if (addPrivateParentNodes.isEmpty()) {
-                    throw new ServiceException(addPrivateNode.getNodeName()  + "( " + addPrivateNode.getPKeyId() + ")-找不到父节点");
+                    throw new ServiceException(addPrivateNode.getNodeName() + "( " + addPrivateNode.getPKeyId() + ")-找不到父节点");
                 }
                 //当前新增节点的父节点
                 WbsTreePrivate parent = addPrivateParentNodes.get(0);

+ 7 - 7
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/WbsTreePrivateServiceImpl.java

@@ -433,13 +433,13 @@ public class WbsTreePrivateServiceImpl extends BaseServiceImpl<WbsTreePrivateMap
                 String wbsId = objPrivate.getWbsId();
                 Long id = objPrivate.getId();
 
-                //合同段wbs树同步排序
-                LambdaUpdateWrapper<WbsTreeContract> updateWrapper = new LambdaUpdateWrapper<>();
-                updateWrapper.eq(WbsTreeContract::getWbsId, wbsId);
-                updateWrapper.eq(WbsTreeContract::getProjectId, projectId);
-                updateWrapper.eq(WbsTreeContract::getId, id);
-                updateWrapper.set(WbsTreeContract::getSort, number);
-                wbsTreeContractMapper.update(null, updateWrapper);
+//                //合同段wbs树同步排序
+//                LambdaUpdateWrapper<WbsTreeContract> updateWrapper = new LambdaUpdateWrapper<>();
+//                updateWrapper.eq(WbsTreeContract::getWbsId, wbsId);
+//                updateWrapper.eq(WbsTreeContract::getProjectId, projectId);
+//                updateWrapper.eq(WbsTreeContract::getId, id);
+//                updateWrapper.set(WbsTreeContract::getSort, number);
+//                wbsTreeContractMapper.update(null, updateWrapper);
             }
             number++;
         }