diff --git a/src/main/java/com/gxwebsoft/credit/controller/CreditJudicialDocumentController.java b/src/main/java/com/gxwebsoft/credit/controller/CreditJudicialDocumentController.java index 2b62709..d60733a 100644 --- a/src/main/java/com/gxwebsoft/credit/controller/CreditJudicialDocumentController.java +++ b/src/main/java/com/gxwebsoft/credit/controller/CreditJudicialDocumentController.java @@ -145,13 +145,13 @@ public class CreditJudicialDocumentController extends BaseController { } /** - * 根据企业名称匹配企业并更新 companyId(匹配 CreditCompany.name / CreditCompany.matchName) + * 根据“当事人/第三人”文本中包含的企业名称匹配企业并更新 companyId(匹配 CreditCompany.name / CreditCompany.matchName) * *

默认仅更新 companyId=0 的记录;如需覆盖更新,传 onlyNull=false。

*/ @PreAuthorize("hasAuthority('credit:creditJudicialDocument:update')") @OperationLog - @Operation(summary = "根据企业名称匹配并更新companyId") + @Operation(summary = "根据当事人字段包含企业名称匹配并更新companyId") @PostMapping("/company-id/refresh") public ApiResult> refreshCompanyIdByCompanyName( @RequestParam(value = "onlyNull", required = false, defaultValue = "true") Boolean onlyNull, @@ -160,7 +160,7 @@ public class CreditJudicialDocumentController extends BaseController { User loginUser = getLoginUser(); Integer currentTenantId = loginUser != null ? loginUser.getTenantId() : null; - BatchImportSupport.CompanyIdRefreshStats stats = batchImportSupport.refreshCompanyIdByCompanyName( + BatchImportSupport.CompanyIdRefreshStats stats = batchImportSupport.refreshCompanyIdByCompanyNameContainedInText( creditJudicialDocumentService, creditCompanyService, currentTenantId, @@ -168,13 +168,14 @@ public class CreditJudicialDocumentController extends BaseController { limit, CreditJudicialDocument::getId, CreditJudicialDocument::setId, - CreditJudicialDocument::getAppellee, CreditJudicialDocument::getCompanyId, CreditJudicialDocument::setCompanyId, CreditJudicialDocument::getHasData, CreditJudicialDocument::setHasData, CreditJudicialDocument::getTenantId, - CreditJudicialDocument::new + CreditJudicialDocument::new, + // 需求:otherPartiesThirdParty 字段包含企业名称时,回填 companyId + CreditJudicialDocument::getOtherPartiesThirdParty ); if (!stats.anyDataRead) {