Browse Source

修改python保单号返回位置

wks 2 years ago
parent
commit
696494a2d1

+ 1 - 10
src/main/java/com/ydtech/modules/order/entity/crawler/response/CrawlerAuditResponse.java

@@ -18,11 +18,6 @@ public class CrawlerAuditResponse extends CrawlerBaseResponse {
 
     private static final long serialVersionUID = 8990977573134495552L;
 
-    /**
-     * 交强险保单号
-     */
-    @JsonProperty("JQ_Application")
-    private String jqApplication;
     /**
      * 交强险投保单号
      */
@@ -33,11 +28,7 @@ public class CrawlerAuditResponse extends CrawlerBaseResponse {
 //     */
 //    @JsonProperty("drivingInsurances")
 //    private List<DrivingInsurance> drivingInsurances;
-    /**
-     * 商业险保单号
-     */
-    @JsonProperty("SY_Application")
-    private String syApplication;
+
     /**
      * 商业险投保单号
      */

+ 15 - 0
src/main/java/com/ydtech/modules/order/entity/crawler/response/CrawlerVerifyPaymentResponse.java

@@ -10,7 +10,22 @@ public class CrawlerVerifyPaymentResponse extends CrawlerBaseResponse {
 
     private static final long serialVersionUID = 5344292346551122923L;
 
+    /**
+     * 缴费状态 0未缴费,1已缴费
+     */
     @JsonProperty(value = "state")
     private Integer state;
 
+    /**
+     * 交强险保单号
+     */
+    @JsonProperty("JQ_Application")
+    private String jqApplication;
+
+    /**
+     * 商业险保单号
+     */
+    @JsonProperty("SY_Application")
+    private String syApplication;
+
 }

+ 3 - 3
src/main/java/com/ydtech/modules/order/service/impl/InsCrawlerOrderServiceImpl.java

@@ -125,9 +125,6 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
 //        List<DrivingInsuranceDto> drivingInsuranceDto = crawlerAuditResponse.getDrivingInsuranceDto();
 //        insAreaCompany.setCrossInsurance(JSON.parseArray(JSON.toJSONString(drivingInsuranceDto)));
 
-        // 保单号
-        insAreaCompany.setJqpolicyno(crawlerAuditResponse.getJqApplication());
-        insAreaCompany.setSypolicyno(crawlerAuditResponse.getSyApplication());
         insAreaCompany.setOrderstatus(InsOrderStatusEnum.WAIT_PAY.getCode());
         insAreaCompanyService.updateCompanyAndOrders(insAreaCompany);
         return HttpResult.ok("核保成功");
@@ -145,6 +142,9 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
 
         // 0未缴费,1已缴费
         if (crawlerAuditResponse.getState() == CrawlerVerifyPaymentConstants.PAID) {
+            // 保单号
+            insAreaCompany.setJqpolicyno(crawlerAuditResponse.getJqApplication());
+            insAreaCompany.setSypolicyno(crawlerAuditResponse.getSyApplication());
             insAreaCompany.setOrderstatus(InsOrderStatusEnum.ACCEPT_INSURANCE.getCode());//已承保
             insAreaCompanyService.updateCompanyAndOrders(insAreaCompany);
             return HttpResult.ok("支付成功");