feat(credit): 添加企业ID字段支持精确查询

- 在CreditNearbyCompany实体中新增companyId字段
- 更新CreditNearbyCompanyMapper.xml添加公司ID查询条件
- 在CreditNearbyCompanyParam参数类中添加companyId查询字段
- 实现基于企业ID的精确筛选功能
This commit is contained in:
2026-01-15 22:42:07 +08:00
parent 45828ad95c
commit e810136fbb
3 changed files with 10 additions and 0 deletions

View File

@@ -75,6 +75,9 @@ public class CreditNearbyCompany implements Serializable {
@Schema(description = "所属区县") @Schema(description = "所属区县")
private String region; private String region;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "纳税人识别号") @Schema(description = "纳税人识别号")
private String taxpayerCode; private String taxpayerCode;

View File

@@ -13,6 +13,9 @@
<if test="param.name != null"> <if test="param.name != null">
AND a.name LIKE CONCAT('%', #{param.name}, '%') AND a.name LIKE CONCAT('%', #{param.name}, '%')
</if> </if>
<if test="param.name != null">
AND a.company_id = #{param.companyId}
</if>
<if test="param.registrationStatus != null"> <if test="param.registrationStatus != null">
AND a.registration_status LIKE CONCAT('%', #{param.registrationStatus}, '%') AND a.registration_status LIKE CONCAT('%', #{param.registrationStatus}, '%')
</if> </if>

View File

@@ -73,6 +73,10 @@ public class CreditNearbyCompanyParam extends BaseParam {
@Schema(description = "所属区县") @Schema(description = "所属区县")
private String region; private String region;
@Schema(description = "企业ID")
@QueryField(type = QueryType.EQ)
private Integer companyId;
@Schema(description = "纳税人识别号") @Schema(description = "纳税人识别号")
private String taxpayerCode; private String taxpayerCode;