From d1b3874048182ec0df493a49fa42bfbc1c88a154 Mon Sep 17 00:00:00 2001 From: dxc Date: Thu, 1 Apr 2021 10:25:49 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E9=82=80=E8=AF=B7=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97?= =?UTF-8?q?=202=E3=80=81=E4=BF=AE=E6=94=B9bug=E5=8D=95=E4=B8=80=E6=9D=A5?= =?UTF-8?q?=E6=BA=90=E7=AE=80=E5=8C=96=E6=B5=81=E7=A8=8B=E5=AF=B9=E5=BA=94?= =?UTF-8?q?=E7=9A=84=E6=8B=9B=E6=A0=87=E6=96=B9=E5=BC=8F=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=AF=94=E8=BE=83=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ProjectRecordServiceImpl.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/project/projectrecord/service/impl/ProjectRecordServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/project/projectrecord/service/impl/ProjectRecordServiceImpl.java index 5f36fdb..26324b2 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/project/projectrecord/service/impl/ProjectRecordServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/project/projectrecord/service/impl/ProjectRecordServiceImpl.java @@ -255,7 +255,7 @@ public class ProjectRecordServiceImpl extends BaseServiceImpl sectionMaps = projectSectionService.getFlowList(id); //当项目不是单一来源简化流程 初始化评审流程 - if(!(StringUtils.equals(projectRecord.getBidMethodSubDict(),ProjectCommonUtil.PROCUREMENT_MODE_6) && StringUtils.equals(projectRecord.getIsApproval(),ProjectCommonUtil.IS_APPROVAL_1))){ + if(!(StringUtils.equals(projectRecord.getBidMethodDict(),ProjectCommonUtil.PROCUREMENT_MODE_6) && StringUtils.equals(projectRecord.getIsApproval(),ProjectCommonUtil.IS_APPROVAL_1))){ log.info("初始化流程调用方法 projectID:"+id + " isReviewMethod:"+isReviewMethod + " sectionMaps:"+JsonUtils.objectToJson(sectionMaps)); initialize(id, isReviewMethod, sectionMaps); } @@ -303,12 +303,10 @@ public class ProjectRecordServiceImpl extends BaseServiceImpl resultList = sectionSupplierService.getList(supplierVO); - - Integer code = ebtpMallBidApi.entrustInsert(JsonUtils.jsonToList(resultList,SectionSupplierVO.class)).getCode(); - - if(code != ResponseEnum.SUCCESS.getCode()){ - ProjectExceptionEnum.FRAME_EXCEPTION_PROJECT_SECTION_INIT_SUPPLIER_ERROR.throwException(); - } + log.info("调用邀请方式供应商初始化接口参数:{}",JsonUtils.objectToJson(resultList)); + BaseResponse baseResponse= ebtpMallBidApi.entrustInsert(JsonUtils.jsonToList(resultList,SectionSupplierVO.class)); + log.info("调用邀请方式供应商初始化返回结果:{}",JsonUtils.objectToJson(baseResponse)); + ProjectExceptionEnum.FRAME_EXCEPTION_PROJECT_SECTION_INIT_SUPPLIER_ERROR.customValidName(baseResponse.getMessage(),!baseResponse.isSuccess()); } }