Parcourir la source

feat(招投标管理):去掉投标说明文件 字段

Wangyafan il y a 8 mois
Parent
commit
ce88e8f4cb

+ 14 - 13
src/main/java/com/sunxung/factoring/service/biddingManagement/impl/BiddingGuaranteeMethodServiceImpl.java

@@ -112,15 +112,16 @@ public class BiddingGuaranteeMethodServiceImpl extends ServiceImpl<BiddingGuaran
                 throw new ValidatorException(CodeUtil.FAIL, "保证方式不正确!");
         }
 
-        //投标方式附件
-        List<Long> bidDescriptionFileIds = biddingGuaranteeMethod.getBidDescriptionFileIds();
-
-        if (CollectionUtil.isEmpty(bidDescriptionFileIds)) {
-            throw new BusinessException(CodeUtil.FAIL,"投标说明文件不能为空!");
-        }
-        AttachmentDto upstreamPurchDto = AttachmentDto.builder().setEntityId(biddingGuaranteeMethod.getId())
-                .setChildEnum(FileModuleDict.ChildEnum.BIDING_DESCRIPTION_FILE).build();
-        sysAttachmentRefService.saveRef(bidDescriptionFileIds,upstreamPurchDto);
+        //需求变更
+        //投标说明字段取消
+//        List<Long> bidDescriptionFileIds = biddingGuaranteeMethod.getBidDescriptionFileIds();
+//
+//        if (CollectionUtil.isEmpty(bidDescriptionFileIds)) {
+//            throw new BusinessException(CodeUtil.FAIL,"投标说明文件不能为空!");
+//        }
+//        AttachmentDto upstreamPurchDto = AttachmentDto.builder().setEntityId(biddingGuaranteeMethod.getId())
+//                .setChildEnum(FileModuleDict.ChildEnum.BIDING_DESCRIPTION_FILE).build();
+//        sysAttachmentRefService.saveRef(bidDescriptionFileIds,upstreamPurchDto);
 
         //完成审核流程流转到下一流程或者完成流程
         //查询项目
@@ -156,10 +157,10 @@ public class BiddingGuaranteeMethodServiceImpl extends ServiceImpl<BiddingGuaran
         }
 
         //投标说明
-        AttachmentDto upstreamPurchDto = AttachmentDto.builder().setEntityId(biddingGuaranteeMethod.getId())
-                .setChildEnum(FileModuleDict.ChildEnum.BIDING_DESCRIPTION_FILE).build();
-        List<FileStorage> files = sysAttachmentRefService.getFiles(upstreamPurchDto);
-        biddingGuaranteeMethod.setBidDescriptionFiles(files);
+//        AttachmentDto upstreamPurchDto = AttachmentDto.builder().setEntityId(biddingGuaranteeMethod.getId())
+//                .setChildEnum(FileModuleDict.ChildEnum.BIDING_DESCRIPTION_FILE).build();
+//        List<FileStorage> files = sysAttachmentRefService.getFiles(upstreamPurchDto);
+//        biddingGuaranteeMethod.setBidDescriptionFiles(files);
 
         return biddingGuaranteeMethod;
     }