|
|
@@ -83,10 +83,12 @@ public class RuleAttrMappingVo {
|
|
|
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"));
|
|
|
+ if(insAreaCompany.getCompanyId().equals("ZMBX1000000")) {
|
|
|
+ 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"));
|
|
|
+ }
|
|
|
}
|
|
|
//是否新车
|
|
|
//使用注册日期算出自然月 然后判断是否是新旧车
|