feat(credit): 添加企业ID字段支持精确查询
- 在CreditNearbyCompany实体中新增companyId字段 - 更新CreditNearbyCompanyMapper.xml添加公司ID查询条件 - 在CreditNearbyCompanyParam参数类中添加companyId查询字段 - 实现基于企业ID的精确筛选功能
This commit is contained in:
@@ -75,6 +75,9 @@ public class CreditNearbyCompany implements Serializable {
|
||||
@Schema(description = "所属区县")
|
||||
private String region;
|
||||
|
||||
@Schema(description = "企业ID")
|
||||
private Integer companyId;
|
||||
|
||||
@Schema(description = "纳税人识别号")
|
||||
private String taxpayerCode;
|
||||
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
<if test="param.name != null">
|
||||
AND a.name LIKE CONCAT('%', #{param.name}, '%')
|
||||
</if>
|
||||
<if test="param.name != null">
|
||||
AND a.company_id = #{param.companyId}
|
||||
</if>
|
||||
<if test="param.registrationStatus != null">
|
||||
AND a.registration_status LIKE CONCAT('%', #{param.registrationStatus}, '%')
|
||||
</if>
|
||||
|
||||
@@ -73,6 +73,10 @@ public class CreditNearbyCompanyParam extends BaseParam {
|
||||
@Schema(description = "所属区县")
|
||||
private String region;
|
||||
|
||||
@Schema(description = "企业ID")
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer companyId;
|
||||
|
||||
@Schema(description = "纳税人识别号")
|
||||
private String taxpayerCode;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user