Ver Fonte

修改税源问题

wks há 2 anos atrás
pai
commit
d1f4fb746b

+ 4 - 0
src/main/java/com/ydtech/modules/protocol/service/impl/TaxSourceServiceImpl.java

@@ -339,6 +339,10 @@ public class TaxSourceServiceImpl extends ServiceImpl<TaxSourceMapper, TaxSource
                 baseMapper.selectList(new LambdaQueryWrapper<TaxSourceDto>().eq(TaxSourceDto::getInsCompanyId,
                         companyId));
 
+        if(taxSourceDtoList.isEmpty()){
+            return resultId;
+        }
+
         List<TaxSourceDto> taxSource =
                 taxSourceDtoList.stream().filter(x -> x.getLicense().equals(firstTwoPlates)).collect(Collectors.toList());
         if (!taxSource.isEmpty()) {