bifrons преди 2 години
родител
ревизия
6cee81c8d2

+ 1 - 1
src/main/java/com/ydtech/modules/protocol/entity/dto/TaxSourceDto.java

@@ -19,7 +19,7 @@ public class TaxSourceDto {
 
     private String insCompanyName;
 
-    private int isTaxSource;
+    private String isTaxSource;
 
     private String insuranceRepertoire;
 

+ 3 - 5
src/main/java/com/ydtech/modules/protocol/service/impl/TaxSourceServiceImpl.java

@@ -365,12 +365,14 @@ public class TaxSourceServiceImpl extends ServiceImpl<TaxSourceMapper, TaxSource
 
         // 税源
         TaxSourceDto taxSourceDtos =
-                taxSourceDtoList.stream().filter(x -> x.getIsTaxSource() == 1).collect(Collectors.toList()).get(0);
+                taxSourceDtoList.stream().filter(x -> x.getIsTaxSource().equals("1")).collect(Collectors.toList()).get(0);
 
         if (!isExclude && (Float.parseFloat(volume) >= 1) && (taxSourceDtos != null)) {
             resultId = taxSourceDtos.getAgreementId();
         }
 
+        System.out.println(taxSourceDtos.getInsuranceRepertoire() + "   " + productid);
+
         // 不包含险种 随机其他保险公司
         if (taxSourceDtos != null && taxSourceDtos.getAgreementId().equals(resultId) && taxSourceDtos.getInsuranceRepertoire().contains(productid)) {
             resultId = taxSourceDtos.getBanishAgreementId();
@@ -379,9 +381,5 @@ public class TaxSourceServiceImpl extends ServiceImpl<TaxSourceMapper, TaxSource
         return resultId;
     }
 
-    public static void main(String[] args) {
-        System.out.println("".contains("0330034002"));
-
-    }
 
 }