소스 검색

修改税源问题

wks 2 년 전
부모
커밋
7497065a27
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/main/java/com/ydtech/modules/protocol/service/impl/TaxSourceServiceImpl.java

+ 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();
                 }