feat(credit): 添加企业ID字段支持

- 在多个信用实体类中添加companyId字段,包括CreditBreachOfTrust、CreditCaseFiling、CreditCompetitor等
- 更新对应的Mapper XML文件,添加基于companyId的查询条件
- 在各个参数类中添加companyId参数支持
- 为CreditJudicialImportParam添加缺失的Schema注解
- 实现基于企业ID的数据过滤功能,提升数据查询的准确性
This commit is contained in:
2026-01-05 13:01:53 +08:00
parent 2f39bd4e0b
commit bb3cf97cc9
55 changed files with 164 additions and 0 deletions

View File

@@ -61,6 +61,9 @@ public class CreditBreachOfTrust implements Serializable {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -61,6 +61,9 @@ public class CreditCaseFiling implements Serializable {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -50,6 +50,9 @@ public class CreditCompetitor implements Serializable {
@Schema(description = "所属省份")
private String province;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -61,6 +61,9 @@ public class CreditCourtAnnouncement implements Serializable {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -61,6 +61,9 @@ public class CreditCourtSession implements Serializable {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -44,6 +44,9 @@ public class CreditCustomer implements Serializable {
@Schema(description = "数据来源")
private String dataSource;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -61,6 +61,9 @@ public class CreditDeliveryNotice implements Serializable {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -71,6 +71,9 @@ public class CreditExternal implements Serializable {
@Schema(description = "关联产品/机构")
private String relatedProductsInstitutions;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -61,6 +61,9 @@ public class CreditFinalVersion implements Serializable {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -61,6 +61,9 @@ public class CreditGqdj implements Serializable {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -56,6 +56,9 @@ public class CreditJudgmentDebtor implements Serializable {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -61,6 +61,9 @@ public class CreditJudicialDocument implements Serializable {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -75,6 +75,9 @@ public class CreditJudiciary implements Serializable {
@Schema(description = "案件金额(元)")
private String caseAmount;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -61,6 +61,9 @@ public class CreditMediation implements Serializable {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -46,6 +46,9 @@ public class CreditRiskRelation implements Serializable {
@Schema(description = "风险关系")
private String riskRelation;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -44,6 +44,9 @@ public class CreditSupplier implements Serializable {
@Schema(description = "数据来源")
private String dataSource;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -75,6 +75,9 @@ public class CreditUser implements Serializable {
@Schema(description = "发布日期")
private String releaseDate;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -61,6 +61,9 @@ public class CreditXgxf implements Serializable {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -10,6 +10,9 @@
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.companyId != null">
AND a.company_id = #{param.companyId}
</if>
<if test="param.dataType != null">
AND a.data_type LIKE CONCAT('%', #{param.dataType}, '%')
</if>

View File

@@ -10,6 +10,9 @@
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.companyId != null">
AND a.company_id = #{param.companyId}
</if>
<if test="param.dataType != null">
AND a.data_type LIKE CONCAT('%', #{param.dataType}, '%')
</if>

View File

@@ -10,6 +10,9 @@
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.companyId != null">
AND a.company_id = #{param.companyId}
</if>
<if test="param.companyName != null">
AND a.company_name LIKE CONCAT('%', #{param.companyName}, '%')
</if>

View File

@@ -10,6 +10,9 @@
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.companyId != null">
AND a.company_id = #{param.companyId}
</if>
<if test="param.dataType != null">
AND a.data_type LIKE CONCAT('%', #{param.dataType}, '%')
</if>

View File

@@ -10,6 +10,9 @@
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.companyId != null">
AND a.company_id = #{param.companyId}
</if>
<if test="param.dataType != null">
AND a.data_type LIKE CONCAT('%', #{param.dataType}, '%')
</if>

View File

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

View File

@@ -10,6 +10,9 @@
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.companyId != null">
AND a.company_id = #{param.companyId}
</if>
<if test="param.dataType != null">
AND a.data_type LIKE CONCAT('%', #{param.dataType}, '%')
</if>

View File

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

View File

@@ -10,6 +10,9 @@
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.companyId != null">
AND a.company_id = #{param.companyId}
</if>
<if test="param.dataType != null">
AND a.data_type LIKE CONCAT('%', #{param.dataType}, '%')
</if>

View File

@@ -10,6 +10,9 @@
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.companyId != null">
AND a.company_id = #{param.companyId}
</if>
<if test="param.dataType != null">
AND a.data_type LIKE CONCAT('%', #{param.dataType}, '%')
</if>

View File

@@ -10,6 +10,9 @@
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.companyId != null">
AND a.company_id = #{param.companyId}
</if>
<if test="param.caseNumber != null">
AND a.case_number LIKE CONCAT('%', #{param.caseNumber}, '%')
</if>

View File

@@ -10,6 +10,9 @@
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.companyId != null">
AND a.company_id = #{param.companyId}
</if>
<if test="param.dataType != null">
AND a.data_type LIKE CONCAT('%', #{param.dataType}, '%')
</if>

View File

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

View File

@@ -10,6 +10,9 @@
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.companyId != null">
AND a.company_id = #{param.companyId}
</if>
<if test="param.dataType != null">
AND a.data_type LIKE CONCAT('%', #{param.dataType}, '%')
</if>

View File

@@ -10,6 +10,9 @@
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.companyId != null">
AND a.company_id = #{param.companyId}
</if>
<if test="param.mainBodyName != null">
AND a.main_body_name LIKE CONCAT('%', #{param.mainBodyName}, '%')
</if>

View File

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

View File

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

View File

@@ -10,6 +10,9 @@
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.companyId != null">
AND a.company_id = #{param.companyId}
</if>
<if test="param.dataType != null">
AND a.data_type LIKE CONCAT('%', #{param.dataType}, '%')
</if>

View File

@@ -58,6 +58,9 @@ public class CreditBreachOfTrustParam extends BaseParam {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -57,6 +57,9 @@ public class CreditCaseFilingParam extends BaseParam {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -48,6 +48,9 @@ public class CreditCompetitorParam extends BaseParam {
@Schema(description = "所属省份")
private String province;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -57,6 +57,9 @@ public class CreditCourtAnnouncementParam extends BaseParam {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -57,6 +57,9 @@ public class CreditCourtSessionParam extends BaseParam {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -43,6 +43,9 @@ public class CreditCustomerParam extends BaseParam {
@Schema(description = "数据来源")
private String dataSource;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -57,6 +57,9 @@ public class CreditDeliveryNoticeParam extends BaseParam {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -70,6 +70,9 @@ public class CreditExternalParam extends BaseParam {
@Schema(description = "关联产品/机构")
private String relatedProductsInstitutions;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -57,6 +57,9 @@ public class CreditFinalVersionParam extends BaseParam {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -57,6 +57,9 @@ public class CreditGqdjParam extends BaseParam {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -49,6 +49,9 @@ public class CreditJudgmentDebtorParam extends BaseParam {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -57,6 +57,9 @@ public class CreditJudicialDocumentParam extends BaseParam {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -1,6 +1,7 @@
package com.gxwebsoft.credit.param;
import cn.afterturn.easypoi.excel.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
@@ -44,4 +45,5 @@ public class CreditJudicialImportParam implements Serializable {
@Excel(name = "备注")
private String comments;
}

View File

@@ -78,6 +78,9 @@ public class CreditJudiciaryParam extends BaseParam {
@Schema(description = "备注")
private String comments;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "是否推荐")
@QueryField(type = QueryType.EQ)
private Integer recommend;

View File

@@ -60,6 +60,9 @@ public class CreditMediationParam extends BaseParam {
@Schema(description = "备注")
private String comments;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "是否推荐")
@QueryField(type = QueryType.EQ)
private Integer recommend;

View File

@@ -45,6 +45,9 @@ public class CreditRiskRelationParam extends BaseParam {
@Schema(description = "风险关系")
private String riskRelation;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -42,6 +42,9 @@ public class CreditSupplierParam extends BaseParam {
@Schema(description = "数据来源")
private String dataSource;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -73,6 +73,9 @@ public class CreditUserParam extends BaseParam {
@Schema(description = "发布日期")
private String releaseDate;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;

View File

@@ -57,6 +57,9 @@ public class CreditXgxfParam extends BaseParam {
@Schema(description = "数据状态")
private String dataStatus;
@Schema(description = "企业ID")
private Integer companyId;
@Schema(description = "备注")
private String comments;