bifrons преди 2 години
родител
ревизия
c51f66a315
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/java/com/ydtech/modules/protocol/service/impl/TaxSourceServiceImpl.java

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

@@ -342,7 +342,7 @@ public class TaxSourceServiceImpl extends ServiceImpl<TaxSourceMapper, TaxSource
         List<TaxSourceDto> taxSource =
                 taxSourceDtoList.stream().filter(x -> x.getLicense().equals(firstTwoPlates)).collect(Collectors.toList());
         if (!taxSource.isEmpty()) {
-            resultId = taxSourceDtoList.get(0).getAgreementId();
+            resultId = taxSource.get(0).getAgreementId();
         }
 
         boolean isExclude = false;