Explorar o código

人保部分代码得提交

dongxin hai 8 meses
pai
achega
4bf0e92994

+ 1 - 1
commons/src/main/java/com/jzg/commons/entity/dto/AgreementCopyParam.java

@@ -15,7 +15,7 @@ public class AgreementCopyParam {
     @Schema(description = "协议id")
     private String id;
 
-    @NotEmpty(message = "费用id不能为空")
+//    @NotEmpty(message = "费用id不能为空")
     @Schema(description = "费用id数组")
     private List<String> costIds;
 }

+ 0 - 1
tenant/insurance/quotation-renbao/src/main/java/com/jzg/quotation/renbao/crawler/entity/dto/PrpCinsuredsDTO.java

@@ -536,7 +536,6 @@ public class PrpCinsuredsDTO implements Serializable {
         this.postcCode = "";
     }
 
-    @NoArgsConstructor
     @Data
     public static class PrpDGCstTaxPayerDTO {
         @JsonProperty("taxPayerType")

+ 5 - 5
tenant/insurance/quotation-summary/src/main/java/com/jzg/quotation/summary/aop/aspect/QuoteVerificationAspect.java

@@ -201,12 +201,12 @@ public class QuoteVerificationAspect {
                                      InsOrdersAccidentalDriving insOrdersAccidentalDriving, InsOrders insOrders) {
         //获取所有费用属性
         List<PtlAgreementUndwrtRulesAttr> undwrtRulesAttrList = orgClient.list().getData();
-        HttpResult comparenew = orgClient.compareNewCar(insOrdersCarInfo.getRegisterDate().format(DateTimeFormatter.ofPattern("yyyy-MM-dd")), insOrders.getCompanyId(), insOrdersCarInfo.getVehicleUseCode());
+//        HttpResult comparenew = orgClient.compareNewCar(insOrdersCarInfo.getRegisterDate().format(DateTimeFormatter.ofPattern("yyyy-MM-dd")), insOrders.getCompanyId(), insOrdersCarInfo.getVehicleUseCode());
         boolean isNewCar = false;
-        if(comparenew.getCode()== 200) {
-            // 新旧车判断
-             isNewCar = comparenew.getData().equals("true") ? true : false;
-        }
+//        if(comparenew.getCode()== 200) {
+//            // 新旧车判断
+//             isNewCar = comparenew.getData().equals("true") ? true : false;
+//        }
         //获取所有费用属性关联
         List<RuleAttrMappingVo> ruleAttrMappingVoList = RuleAttrMappingVo.getRuleAttrMappingVoList(insOrdersOther,insOrdersCarInfo,
                 riskList, insOrdersCarUserInfos, kindList, insOrdersCosts, insOrdersAccidentalDriving, isNewCar);

+ 3 - 0
tenant/organization/src/main/java/com/jzg/organization/service/impl/PtlAgreementServiceImpl.java

@@ -338,6 +338,9 @@ public class PtlAgreementServiceImpl extends ServiceImpl<PtlAgreementMapper, Ptl
         save(newAgreement);
 
         List<String> costIds = param.getCostIds();
+        if(CollUtil.isEmpty(costIds)){
+            return;
+        }
         List<PtlAgreementCost> costList = agreementCostService.listByIds(costIds);
         if(CollUtil.isEmpty(costList)){
             return;