Răsfoiți Sursa

修改代码

bifrons 2 ani în urmă
părinte
comite
ac2b23038f

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

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

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

@@ -365,7 +365,8 @@ public class TaxSourceServiceImpl extends ServiceImpl<TaxSourceMapper, TaxSource
 
         // 税源
         TaxSourceDto taxSourceDtos =
-                taxSourceDtoList.stream().filter(x -> x.getIsTaxSource().equals("1")).collect(Collectors.toList()).get(0);
+                taxSourceDtoList.stream().filter(x -> x.getIsTaxSource() == 1).collect(Collectors.toList()).get(0);
+
         if (!isExclude && (Float.parseFloat(volume) >= 1) && (taxSourceDtos != null)) {
             resultId = taxSourceDtos.getAgreementId();
         }
@@ -378,4 +379,9 @@ public class TaxSourceServiceImpl extends ServiceImpl<TaxSourceMapper, TaxSource
         return resultId;
     }
 
+    public static void main(String[] args) {
+        System.out.println("".contains("0330034002"));
+
+    }
+
 }