Quellcode durchsuchen

解决质检系统监理上传附件会出现重复数据的问题

lvy vor 1 Woche
Ursprung
Commit
e835c6131c

+ 2 - 2
blade-service/blade-manager/src/main/java/org/springblade/manager/controller/ExcelTabController.java

@@ -1956,7 +1956,7 @@ public class ExcelTabController extends BladeController {
         if (contract == null) {
             throw new ServiceException("暂未查询到该节点,请刷新页面后再试");
         }
-        contractId = contract.getPKeyId() + "";
+        contractId = contract.getContractId();
         for (int i = 0; i < file.length; i++) {
             R<BladeFile> bladeFile = iossClient.addFileInfo(file[i]);
             BladeFile bladeFile1 = bladeFile.getData();
@@ -4804,7 +4804,7 @@ public class ExcelTabController extends BladeController {
         if (wbsTreeContract == null) {
             throw new ServiceException("暂未查询到该节点,请刷新页面后再试");
         }
-        contractId = wbsTreeContract.getPKeyId();
+        contractId = Long.parseLong(wbsTreeContract.getContractId());
         List<TableFile> fileList = new ArrayList<>();
         //查询字段
         List<Integer> types = jdbcTemplate.queryForList("select dict_key from blade_dict_biz where code like 'table_file_type%' and is_deleted = 0 and dict_key > 0", Integer.class);