785834757 пре 1 месец
родитељ
комит
c28e3819dc

+ 11 - 0
src/main/java/com/ydtech/modules/fee/dto/vo/RuleAttrMappingVo.java

@@ -77,6 +77,17 @@ public class RuleAttrMappingVo {
         ruleAttrMappingVoList.add(new RuleAttrMappingVo("RegistrationDate", carInfo.getRegisterDate()));
         //是否过户
         ruleAttrMappingVoList.add(new RuleAttrMappingVo("TransferVehicle", carInfo.isTransferFlag() ? "1" : "0"));
+        //中煤需要判断 初登日期是否等于发证日期  并且 发证日期距离现在不满365天
+        String issueDateStr = carInfo.getIssueDate();
+        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
+        LocalDate issueDate = LocalDate.parse(issueDateStr,formatter);
+        LocalDate today = LocalDate.now();
+        //过滤单交
+        if(!carInfo.getRegisterDate().equals(carInfo.getIssueDate()) && ChronoUnit.DAYS.between(issueDate, today) <= 365 && !insAreaCompany.getProductid().equals("0330")){
+            ruleAttrMappingVoList.removeIf(item -> "TransferVehicle".equals(item.getAttrCode()));
+            //如果满足条件的话 直接设置成 过户车
+            ruleAttrMappingVoList.add(new RuleAttrMappingVo("TransferVehicle", "1"));
+        }
         //是否新车
         //使用注册日期算出自然月 然后判断是否是新旧车
         LocalDate registrationDate = LocalDate.parse(carInfo.getRegisterDate());

+ 1 - 1
src/main/java/com/ydtech/modules/ins/model/vo/CarInfoVo.java

@@ -34,7 +34,7 @@ public class CarInfoVo {
     @ApiModelProperty(value = "行业车型编码")
     private String ciModelCode;
 
-    @NotNull(message = "整备质量不能为空")
+//    @NotNull(message = "整备质量不能为空")
     @Range(message = "整备质量必须为整数")
     @ApiModelProperty(value = "整备质量")
     private String completeKerbMass;

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

@@ -140,6 +140,12 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
         // 账号信息
         PtlAgreementAttribution ptlAgreementAttribution = ptlAgreementAttributionService.getById(agreementId);
 
+        quoteInfoVo.getKindList().forEach(item->{
+            if(item.getKindCode().equals("D4")){
+                item.setAmount(item.getUnitAmount());
+            }
+        });
+
         CrawlerQuoteRequest crawlerQuoteRequest = new CrawlerQuoteRequest();
         BeanUtils.copyProperties(quoteInfoVo, crawlerQuoteRequest);
         crawlerQuoteRequest.setAgreementId(agreementId);

+ 1 - 1
src/main/java/com/ydtech/modules/protocol/service/impl/PtlAgreementServiceImpl.java

@@ -1236,7 +1236,7 @@ public class PtlAgreementServiceImpl extends ServiceImpl<PtlAgreementMapper, Ptl
         }
         BeanUtils.copyProperties(agreementSaveDto, ptlAgreement);
         proxyObject.verifyLogin(ptlAgreement, agreementSaveDto, attribution,
-                "1".equals(ptlAgreement.getValidStatus()));
+                true);
         return true;
     }