wks пре 2 година
родитељ
комит
7497065a27

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

@@ -349,9 +349,11 @@ public class TaxSourceServiceImpl extends ServiceImpl<TaxSourceMapper,TaxSourceD
                 }
             } else {
                 //查找配置的默认项
+                String substring = license.substring(0, 2);
+
                 TaxSourceDto taxSourceDefaultDto = baseMapper.selectOne(new LambdaQueryWrapper<TaxSourceDto>()
                         .eq(TaxSourceDto::getInsCompanyId, companyId)
-                        .likeRight(TaxSourceDto::getLicense, license));
+                        .eq(TaxSourceDto::getLicense, substring));
                 if (taxSourceDefaultDto != null) {
                     resultId = taxSourceDefaultDto.getAgreementId();
                 }