From 11927cefa1347d192105c9b0bc08d1b91badf18c Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期二, 02 四月 2024 15:33:43 +0800
Subject: [PATCH] git ch

---
 server/service/src/main/java/com/doumee/service/business/impl/UnionApplyServiceImpl.java |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/server/service/src/main/java/com/doumee/service/business/impl/UnionApplyServiceImpl.java b/server/service/src/main/java/com/doumee/service/business/impl/UnionApplyServiceImpl.java
index bfdf75d..7f6ff0e 100644
--- a/server/service/src/main/java/com/doumee/service/business/impl/UnionApplyServiceImpl.java
+++ b/server/service/src/main/java/com/doumee/service/business/impl/UnionApplyServiceImpl.java
@@ -389,7 +389,7 @@
                 eq(Solutions::getType,Constants.ONE)
                 .eq(Solutions::getIsdeleted,Constants.ZERO)
                 .eq(Solutions::getDataType,Constants.ZERO)
-                .eq(Solutions::getBaseId,saveUnionApplyDTO.getBaseSolutionId()));
+                .eq(Solutions::getId,saveUnionApplyDTO.getBaseSolutionId()));
         //鏌ヨ鏂规鏁版嵁
         if(solutions == null){
             throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"瀵逛笉璧凤紝鏂规淇℃伅鏈夎锛岃鍒锋柊椤甸潰閲嶈瘯");
@@ -495,7 +495,7 @@
             multifileMapper.delete(new QueryWrapper<Multifile>()
                     .lambda()
                     .apply(" multifile.id in ( select i.id  from insurance_apply i where i.UNION_APPLY_ID = "+unionApply.getId()+" ) ")
-                    .eq(Multifile::getObjType,Constants.MultiFile.COMPANY_TBD_SIGNED.getKey()));
+                    .eq(Multifile::getObjType,Constants.MultiFile.BD_APPLY_PDF.getKey()));
         }
         insuranceApplyJoinMapper.update(null,new UpdateWrapper<InsuranceApply>().lambda()
                 .set(InsuranceApply::getUnionApplyId,null)
@@ -579,7 +579,7 @@
                 multifile.setCreator(user.getId());
                 multifile.setCreateDate(new Date());
                 multifile.setCreateDate(new Date());
-                multifile.setObjType(Constants.MultiFile.COMPANY_TBD_SIGNED.getKey());
+                multifile.setObjType(Constants.MultiFile.BD_APPLY_PDF.getKey());
                 multifile.setType(Constants.TWO);
                 multifileMapper.insert(multifile);
 
@@ -650,7 +650,7 @@
         }
         Multifile f = multifileMapper.selectOne(new QueryWrapper<Multifile>().lambda()
                 .eq(Multifile::getObjId,unionApply.getId())
-                .eq(Multifile::getObjType,Constants.MultiFile.HBD_BD_SIGNED_PDF.getKey())
+                .eq(Multifile::getObjType,Constants.MultiFile.HBD_BD_APPLY_PDF.getKey())
                 .eq(Multifile::getIsdeleted,Constants.ZERO)
                 .last("limit 1"));
         if(f == null || StringUtils.isBlank(f.getFileurl())){
@@ -694,6 +694,8 @@
             || Objects.isNull(unionApplyBXDDTO.getStartTime())
             || Objects.isNull(unionApplyBXDDTO.getEndTime())
             || StringUtils.isBlank(unionApplyBXDDTO.getCode())
+            || StringUtils.isBlank(unionApplyBXDDTO.getFileUrl())
+            || StringUtils.isBlank(unionApplyBXDDTO.getFileName())
         ){
             throw new BusinessException(ResponseStatus.BAD_REQUEST);
         }
@@ -705,7 +707,7 @@
         if(unionApply == null ||!Constants.equalsInteger(unionApply.getIsdeleted(),Constants.ZERO)){
             throw  new BusinessException(ResponseStatus.DATA_EMPTY);
         }
-        if(unionApply.getStatus().equals(Constants.UnionApplyStatus.UPLOAD_INSURANCE_POLICY.getKey())){
+        if(!unionApply.getStatus().equals(Constants.UnionApplyStatus.UPLOAD_INSURANCE_POLICY.getKey())){
             throw  new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"瀵逛笉璧凤紝璇ュ悎骞跺崟鐘舵�佸凡娴佽浆锛屽綋鍓嶄笉鏀寔璇ユ搷浣渵");
         }
         //鍔犱环鍙傛暟

--
Gitblit v1.9.3