Sfoglia il codice sorgente

阳光核保修改

Qchen 1 anno fa
parent
commit
34ffdaef99

+ 11 - 6
src/main/java/com/ydtech/modules/order/service/impl/YangGuangOrderApiServiceImpl.java

@@ -475,7 +475,9 @@ public class YangGuangOrderApiServiceImpl implements YangGuangOrderApiService {
                 insAreaCompanyService.updateCompanyAndOrdersMessage(insAreaCompany, message);
                 return HttpResult.error("自核转人工,原因:" + message);
             }
-            return HttpResult.error("交强险自核失败,原因:" + yangGuangSubmitResponse.getCiUnderWriteMsg());
+            if (yangGuangSubmitResponse.getCiUnderWriteFlag().equals("2")) {
+                return HttpResult.error("交强险自核失败,原因:" + yangGuangSubmitResponse.getCiUnderWriteMsg());
+            }
         }
         if (yangGuangSubmitResponse.getBiUnderWriteFlag() != null && !yangGuangSubmitResponse.getBiUnderWriteFlag().equals("1")) {
             if (yangGuangSubmitResponse.getBiUnderWriteFlag().equals("3")) {
@@ -487,8 +489,11 @@ public class YangGuangOrderApiServiceImpl implements YangGuangOrderApiService {
                 insAreaCompanyService.updateCompanyAndOrdersMessage(insAreaCompany, message);
                 return HttpResult.error("自核转人工,原因:" + message);
             }
-            return HttpResult.error("商业险自核失败,原因:" + yangGuangSubmitResponse.getBiUnderWriteMsg());
+            if (yangGuangSubmitResponse.getBiUnderWriteFlag().equals("2")) {
+                return HttpResult.error("商业险自核失败,原因:" + yangGuangSubmitResponse.getBiUnderWriteMsg());
+            }
         }
+
         // 投保单号
         insAreaCompany.setJqapplyno(yangGuangSubmitResponse.getCiProposalNo() != null ? yangGuangSubmitResponse.getCiProposalNo() :"");
         insAreaCompany.setSyapplyno(yangGuangSubmitResponse.getBiProposalNo() != null ? yangGuangSubmitResponse.getBiProposalNo() :"");
@@ -630,11 +635,11 @@ public class YangGuangOrderApiServiceImpl implements YangGuangOrderApiService {
         YangGuangProposalStatusQueryRequest yangGuangProposalStatusQueryRequest = new YangGuangProposalStatusQueryRequest(insAreaCompany,yangGuangConfigureParameters);
         YangGuangProposalStatusQueryResponse yangGuangProposalStatusQueryResponse = yangGuangRequestApiComponents.proposalStatusQuery(yangGuangProposalStatusQueryRequest);
         if (yangGuangProposalStatusQueryResponse.getErrorCode().equals("0")) {
-            if (yangGuangProposalStatusQueryResponse.getBiUnderWriteFlag().equals("3")) {
-                return HttpResult.error("商业险核失败,原因:" + yangGuangProposalStatusQueryResponse.getBiUnderWriteMsg());
+            if (yangGuangProposalStatusQueryResponse.getBiUnderWriteFlag().equals("3") || yangGuangProposalStatusQueryResponse.getBiUnderWriteFlag().equals("2")) {
+                return HttpResult.error("商业险核失败,原因:" + yangGuangProposalStatusQueryResponse.getBiUnderWriteMsg());
             }
-            if (yangGuangProposalStatusQueryResponse.getCiUnderWriteFlag().equals("3")) {
-                return HttpResult.error("交强险核失败,原因:" + yangGuangProposalStatusQueryResponse.getCiUnderWriteMsg());
+            if (yangGuangProposalStatusQueryResponse.getCiUnderWriteFlag().equals("3") || yangGuangProposalStatusQueryResponse.getCiUnderWriteFlag().equals("2")) {
+                return HttpResult.error("交强险核失败,原因:" + yangGuangProposalStatusQueryResponse.getCiUnderWriteMsg());
             }
             insSubOrderUpdateDetailService.insertData(insAreaCompany, insAreaCompany.getOrderstatus(), InsOrderStatusEnum.WAIT_PAY.getCode(), "1");
             insAreaCompany.setOrderstatus(InsOrderStatusEnum.WAIT_PAY.getCode());