Răsfoiți Sursa

修改非车返回保单号设置

wks 2 ani în urmă
părinte
comite
8502a07b8c

+ 5 - 1
src/main/java/com/ydtech/modules/fnc/service/impl/InsPlyIncomeServiceImpl.java

@@ -330,6 +330,10 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
     }
 
     private String setNoPolicyno(com.ydtech.modules.fnc.entity.InsAreaCompany insAreaCompany) {
+        if (insAreaCompany.getJypremium() == null || insAreaCompany.getJypremium().compareTo(BigDecimal.ZERO) == 0) {  // 非车跟单费
+            return null;
+        }
+
         String crossInsurance = insAreaCompany.getCrossInsurance();
 
         if (StringUtils.isEmpty(crossInsurance)) {
@@ -342,7 +346,7 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
             return null;
         }
 
-        if (PtlApiType.PTL_API_2.getCode() == insAreaCompany.getApiType()) {
+        if (ObjectUtils.isEmpty(insAreaCompany.getApiType()) || PtlApiType.PTL_API_2.getCode() == insAreaCompany.getApiType()) {
             List<CrawlerVerifyPaymentResponse.DrivingInsurancesDTO> drivingInsurancesDTOS = objects.toJavaList(CrawlerVerifyPaymentResponse.DrivingInsurancesDTO.class);
             return drivingInsurancesDTOS.get(0).getApplication();
         }