ソースを参照

诚泰 bug修改

785834757 4 ヶ月 前
コミット
495bcc6d12

+ 6 - 6
src/main/java/com/ydtech/modules/order/entity/api/chengtai/request/PremiumCalculationRequest.java

@@ -1157,8 +1157,8 @@ public class PremiumCalculationRequest {
             this.appDistrict = policyHolderInfo.getCounty();
             this.appCompleteAddress = policyHolderInfo.getAddr();
             this.terrorNationality = "CN";
-            this.identifyValidDate = XmlDateTimeFormatter.format(policyHolderInfo.getIdentifyValidDate());
-            this.identifyValidEndDate = XmlDateTimeFormatter.format(policyHolderInfo.getIdentifyValidEndDate());
+            this.identifyValidDate = policyHolderInfo.getIdentifyValidDate();
+            this.identifyValidEndDate = policyHolderInfo.getIdentifyValidEndDate();
             this.longTerm = policyHolderInfo.getIdentifyValidEndDate() != null && policyHolderInfo.getIdentifyValidEndDate().contains("9999") ? "1" : "0";
             this.insuredAddress = policyHolderInfo.getAddr();
             this.mobilePhone = policyHolderInfo.getMobile();
@@ -1168,7 +1168,7 @@ public class PremiumCalculationRequest {
                 this.identifyType = "01";
                 this.identifyNumber = policyHolderInfo.getIdentifyNumber();
                 this.sex = policyHolderInfo.getGender().equals("男") ? "1" : "2";
-                this.birthDate = XmlDateTimeFormatter.format(policyHolderInfo.getIdentifyNumber().substring(6, 10) + "-" + policyHolderInfo.getIdentifyNumber().substring(10, 12) + "-" + policyHolderInfo.getIdentifyNumber().substring(12, 14));
+                this.birthDate = policyHolderInfo.getIdentifyNumber().substring(6, 10) + "-" + policyHolderInfo.getIdentifyNumber().substring(10, 12) + "-" + policyHolderInfo.getIdentifyNumber().substring(12, 14);
                 this.email = policyHolderInfo.getEmail();
             }
             if (policyHolderInfo.getProperty().equals("0")) {
@@ -1364,8 +1364,8 @@ public class PremiumCalculationRequest {
             this.insuredDistrict = insuredPersonInfo.getCounty();
             this.insuredCompleteAddress = insuredPersonInfo.getAddr();
             this.terrorNationality = "CN";
-            this.identifyValidDate = XmlDateTimeFormatter.format(insuredPersonInfo.getIdentifyValidDate());
-            this.identifyValidEndDate = XmlDateTimeFormatter.format(insuredPersonInfo.getIdentifyValidEndDate());
+            this.identifyValidDate = insuredPersonInfo.getIdentifyValidDate();
+            this.identifyValidEndDate = insuredPersonInfo.getIdentifyValidEndDate();
             this.longTerm = insuredPersonInfo.getIdentifyValidEndDate() != null && insuredPersonInfo.getIdentifyValidEndDate().contains("9999") ? "1" : "0";
             this.insuredAddress = insuredPersonInfo.getAddr();
             this.insuredMobilePhone = insuredPersonInfo.getMobile();
@@ -1375,7 +1375,7 @@ public class PremiumCalculationRequest {
                 this.identifyType = "01";
                 this.identifyNumber = insuredPersonInfo.getIdentifyNumber();
                 this.insuredSex = insuredPersonInfo.getGender().equals("男") ? "1" : "2";
-                this.insuredBirthDate = XmlDateTimeFormatter.format(insuredPersonInfo.getIdentifyNumber().substring(6, 10) + "-" + insuredPersonInfo.getIdentifyNumber().substring(10, 12) + "-" + insuredPersonInfo.getIdentifyNumber().substring(12, 14));
+                this.insuredBirthDate = insuredPersonInfo.getIdentifyNumber().substring(6, 10) + "-" + insuredPersonInfo.getIdentifyNumber().substring(10, 12) + "-" + insuredPersonInfo.getIdentifyNumber().substring(12, 14);
                 this.relationWithHolder = "0";
                 this.carInsuredRelation = "1";
             }

+ 6 - 6
src/main/java/com/ydtech/modules/order/entity/api/chengtai/request/SubmitRequest.java

@@ -807,8 +807,8 @@ public class SubmitRequest {
             this.appDistrict = policyHolderInfo.getCounty();
             this.appCompleteAddress = policyHolderInfo.getAddr();
             this.terrorNationality = "CN";
-            this.identifyValidDate = XmlDateTimeFormatter.format(policyHolderInfo.getIdentifyValidDate());
-            this.identifyValidEndDate = XmlDateTimeFormatter.format(policyHolderInfo.getIdentifyValidEndDate());
+            this.identifyValidDate = policyHolderInfo.getIdentifyValidDate();
+            this.identifyValidEndDate = policyHolderInfo.getIdentifyValidEndDate();
             this.longTerm = policyHolderInfo.getIdentifyValidEndDate() != null && policyHolderInfo.getIdentifyValidEndDate().contains("9999") ? "1" : "0";
             this.insuredAddress = policyHolderInfo.getAddr();
             this.mobilePhone = policyHolderInfo.getMobile();
@@ -817,7 +817,7 @@ public class SubmitRequest {
                 this.identifyType = "01";
                 this.identifyNumber = policyHolderInfo.getIdentifyNumber();
                 this.sex = policyHolderInfo.getGender().equals("男") ? "1" : "2";
-                this.birthDate = XmlDateTimeFormatter.format(policyHolderInfo.getIdentifyNumber().substring(6, 10) + "-" + policyHolderInfo.getIdentifyNumber().substring(10, 12) + "-" + policyHolderInfo.getIdentifyNumber().substring(12, 14));
+                this.birthDate = policyHolderInfo.getIdentifyNumber().substring(6, 10) + "-" + policyHolderInfo.getIdentifyNumber().substring(10, 12) + "-" + policyHolderInfo.getIdentifyNumber().substring(12, 14);
                 this.email = policyHolderInfo.getEmail();
             }
             if (policyHolderInfo.getProperty().equals("0")) {
@@ -1013,8 +1013,8 @@ public class SubmitRequest {
             this.insuredDistrict = insuredPersonInfo.getCounty();
             this.insuredCompleteAddress = insuredPersonInfo.getAddr();
             this.terrorNationality = "CN";
-            this.identifyValidDate = XmlDateTimeFormatter.format(insuredPersonInfo.getIdentifyValidDate());
-            this.identifyValidEndDate = XmlDateTimeFormatter.format(insuredPersonInfo.getIdentifyValidEndDate());
+            this.identifyValidDate = insuredPersonInfo.getIdentifyValidDate();
+            this.identifyValidEndDate = insuredPersonInfo.getIdentifyValidEndDate();
             this.longTerm = insuredPersonInfo.getIdentifyValidEndDate() != null && insuredPersonInfo.getIdentifyValidEndDate().contains("9999") ? "1" : "0";
             this.insuredAddress = insuredPersonInfo.getAddr();
             this.insuredMobilePhone = insuredPersonInfo.getMobile();
@@ -1024,7 +1024,7 @@ public class SubmitRequest {
                 this.identifyType = "01";
                 this.identifyNumber = insuredPersonInfo.getIdentifyNumber();
                 this.insuredSex = insuredPersonInfo.getGender().equals("男") ? "1" : "2";
-                this.insuredBirthDate = XmlDateTimeFormatter.format(insuredPersonInfo.getIdentifyNumber().substring(6, 10) + "-" + insuredPersonInfo.getIdentifyNumber().substring(10, 12) + "-" + insuredPersonInfo.getIdentifyNumber().substring(12, 14));
+                this.insuredBirthDate = insuredPersonInfo.getIdentifyNumber().substring(6, 10) + "-" + insuredPersonInfo.getIdentifyNumber().substring(10, 12) + "-" + insuredPersonInfo.getIdentifyNumber().substring(12, 14);
                 this.relationWithHolder = "0";
                 this.carInsuredRelation = "1";
             }

+ 4 - 0
src/main/java/com/ydtech/modules/order/service/impl/ChengTaiOrderApiServiceImpl.java

@@ -391,6 +391,10 @@ public class ChengTaiOrderApiServiceImpl implements ChengTaiOrderApiService {
         info.setSyappoint(quoteRespVo.getSyappoint());
         insAreaCompanyRelatedInfoService.save(info);
         quoteRespVo.setCompanyId(insAreaCompany.getId());
+        quoteRespVo.setStartDateJq(this.autoConvertToNormalTime(quoteRespVo.getStartDateJq()));
+        quoteRespVo.setEndDateJq(this.autoConvertToNormalTime(quoteRespVo.getEndDateJq()));
+        quoteRespVo.setStartDateSy(this.autoConvertToNormalTime(quoteRespVo.getStartDateSy()));
+        quoteRespVo.setEndDateSy(this.autoConvertToNormalTime(quoteRespVo.getEndDateSy()));
         return HttpResult.ok("报价成功", quoteRespVo);
     }