From e36524de3aeb3f20392b4b614c9f16ce3c9c0e85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Tue, 20 Jan 2026 01:41:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(credit):=20=E6=B7=BB=E5=8A=A0=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=9C=9F=E5=AE=9E=E5=A7=93=E5=90=8D=E5=85=B3=E8=81=94?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在多个实体类中添加 realName 字段用于显示用户真实姓名 - 更新 XML 映射文件以关联查询 sys_user 表中的真实姓名 - 统一为所有信用相关实体添加真实姓名查询支持 - 修复了多个实体缺少 TableField 注解导入的问题 - 实现了跨库关联查询以获取用户的完整信息 --- .../gxwebsoft/credit/entity/CreditAdministrativeLicense.java | 4 ++++ .../java/com/gxwebsoft/credit/entity/CreditBankruptcy.java | 5 +++++ src/main/java/com/gxwebsoft/credit/entity/CreditBranch.java | 5 +++++ .../com/gxwebsoft/credit/entity/CreditBreachOfTrust.java | 4 ++++ .../java/com/gxwebsoft/credit/entity/CreditCaseFiling.java | 4 ++++ src/main/java/com/gxwebsoft/credit/entity/CreditCompany.java | 5 +++++ .../java/com/gxwebsoft/credit/entity/CreditCompetitor.java | 4 ++++ .../com/gxwebsoft/credit/entity/CreditCourtAnnouncement.java | 4 ++++ .../java/com/gxwebsoft/credit/entity/CreditCourtSession.java | 4 ++++ .../java/com/gxwebsoft/credit/entity/CreditCustomer.java | 4 ++++ .../com/gxwebsoft/credit/entity/CreditDeliveryNotice.java | 4 ++++ .../java/com/gxwebsoft/credit/entity/CreditExternal.java | 4 ++++ .../java/com/gxwebsoft/credit/entity/CreditFinalVersion.java | 4 ++++ src/main/java/com/gxwebsoft/credit/entity/CreditGqdj.java | 4 ++++ .../gxwebsoft/credit/entity/CreditHistoricalLegalPerson.java | 5 +++++ .../com/gxwebsoft/credit/entity/CreditJudgmentDebtor.java | 4 ++++ .../com/gxwebsoft/credit/entity/CreditJudicialDocument.java | 4 ++++ .../java/com/gxwebsoft/credit/entity/CreditJudiciary.java | 4 ++++ .../java/com/gxwebsoft/credit/entity/CreditMediation.java | 4 ++++ .../com/gxwebsoft/credit/entity/CreditNearbyCompany.java | 5 +++++ src/main/java/com/gxwebsoft/credit/entity/CreditPatent.java | 5 +++++ .../java/com/gxwebsoft/credit/entity/CreditRiskRelation.java | 4 ++++ .../java/com/gxwebsoft/credit/entity/CreditSupplier.java | 4 ++++ .../gxwebsoft/credit/entity/CreditSuspectedRelationship.java | 5 +++++ src/main/java/com/gxwebsoft/credit/entity/CreditUser.java | 4 ++++ src/main/java/com/gxwebsoft/credit/entity/CreditXgxf.java | 4 ++++ .../credit/mapper/xml/CreditAdministrativeLicenseMapper.xml | 3 ++- .../gxwebsoft/credit/mapper/xml/CreditBankruptcyMapper.xml | 3 ++- .../com/gxwebsoft/credit/mapper/xml/CreditBranchMapper.xml | 3 ++- .../credit/mapper/xml/CreditBreachOfTrustMapper.xml | 3 ++- .../gxwebsoft/credit/mapper/xml/CreditCaseFilingMapper.xml | 3 ++- .../com/gxwebsoft/credit/mapper/xml/CreditCompanyMapper.xml | 3 ++- .../gxwebsoft/credit/mapper/xml/CreditCompetitorMapper.xml | 3 ++- .../credit/mapper/xml/CreditCourtAnnouncementMapper.xml | 3 ++- .../gxwebsoft/credit/mapper/xml/CreditCourtSessionMapper.xml | 3 ++- .../com/gxwebsoft/credit/mapper/xml/CreditCustomerMapper.xml | 3 ++- .../credit/mapper/xml/CreditDeliveryNoticeMapper.xml | 3 ++- .../com/gxwebsoft/credit/mapper/xml/CreditExternalMapper.xml | 3 ++- .../gxwebsoft/credit/mapper/xml/CreditFinalVersionMapper.xml | 3 ++- .../com/gxwebsoft/credit/mapper/xml/CreditGqdjMapper.xml | 3 ++- .../credit/mapper/xml/CreditHistoricalLegalPersonMapper.xml | 3 ++- .../credit/mapper/xml/CreditJudgmentDebtorMapper.xml | 3 ++- .../credit/mapper/xml/CreditJudicialDocumentMapper.xml | 3 ++- .../gxwebsoft/credit/mapper/xml/CreditJudiciaryMapper.xml | 3 ++- .../gxwebsoft/credit/mapper/xml/CreditMediationMapper.xml | 3 ++- .../credit/mapper/xml/CreditNearbyCompanyMapper.xml | 3 ++- .../com/gxwebsoft/credit/mapper/xml/CreditPatentMapper.xml | 3 ++- .../gxwebsoft/credit/mapper/xml/CreditRiskRelationMapper.xml | 3 ++- .../com/gxwebsoft/credit/mapper/xml/CreditSupplierMapper.xml | 3 ++- .../credit/mapper/xml/CreditSuspectedRelationshipMapper.xml | 3 ++- .../com/gxwebsoft/credit/mapper/xml/CreditUserMapper.xml | 3 ++- .../com/gxwebsoft/credit/mapper/xml/CreditXgxfMapper.xml | 3 ++- 52 files changed, 163 insertions(+), 26 deletions(-) diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditAdministrativeLicense.java b/src/main/java/com/gxwebsoft/credit/entity/CreditAdministrativeLicense.java index 9801f64..4c67b28 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditAdministrativeLicense.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditAdministrativeLicense.java @@ -81,6 +81,10 @@ public class CreditAdministrativeLicense implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditBankruptcy.java b/src/main/java/com/gxwebsoft/credit/entity/CreditBankruptcy.java index 8467904..150eb5c 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditBankruptcy.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditBankruptcy.java @@ -1,6 +1,7 @@ package com.gxwebsoft.credit.entity; import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.fasterxml.jackson.annotation.JsonFormat; @@ -67,6 +68,10 @@ public class CreditBankruptcy implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditBranch.java b/src/main/java/com/gxwebsoft/credit/entity/CreditBranch.java index 2a155b3..649a281 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditBranch.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditBranch.java @@ -1,6 +1,7 @@ package com.gxwebsoft.credit.entity; import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.fasterxml.jackson.annotation.JsonFormat; @@ -67,6 +68,10 @@ public class CreditBranch implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditBreachOfTrust.java b/src/main/java/com/gxwebsoft/credit/entity/CreditBreachOfTrust.java index 779ec2e..2cbf748 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditBreachOfTrust.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditBreachOfTrust.java @@ -93,6 +93,10 @@ public class CreditBreachOfTrust implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditCaseFiling.java b/src/main/java/com/gxwebsoft/credit/entity/CreditCaseFiling.java index a3f358d..4887fc5 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditCaseFiling.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditCaseFiling.java @@ -90,6 +90,10 @@ public class CreditCaseFiling implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditCompany.java b/src/main/java/com/gxwebsoft/credit/entity/CreditCompany.java index ad3e78e..bd2dc9a 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditCompany.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditCompany.java @@ -1,6 +1,7 @@ package com.gxwebsoft.credit.entity; import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.fasterxml.jackson.annotation.JsonFormat; @@ -200,6 +201,10 @@ public class CreditCompany implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditCompetitor.java b/src/main/java/com/gxwebsoft/credit/entity/CreditCompetitor.java index 4ad813b..c65c132 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditCompetitor.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditCompetitor.java @@ -84,6 +84,10 @@ public class CreditCompetitor implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditCourtAnnouncement.java b/src/main/java/com/gxwebsoft/credit/entity/CreditCourtAnnouncement.java index 4d81f5b..4aec378 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditCourtAnnouncement.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditCourtAnnouncement.java @@ -89,6 +89,10 @@ public class CreditCourtAnnouncement implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditCourtSession.java b/src/main/java/com/gxwebsoft/credit/entity/CreditCourtSession.java index e5badd2..2ceb2cb 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditCourtSession.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditCourtSession.java @@ -90,6 +90,10 @@ public class CreditCourtSession implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditCustomer.java b/src/main/java/com/gxwebsoft/credit/entity/CreditCustomer.java index c049f2b..fee36a2 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditCustomer.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditCustomer.java @@ -74,6 +74,10 @@ public class CreditCustomer implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditDeliveryNotice.java b/src/main/java/com/gxwebsoft/credit/entity/CreditDeliveryNotice.java index eda574e..d29c563 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditDeliveryNotice.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditDeliveryNotice.java @@ -90,6 +90,10 @@ public class CreditDeliveryNotice implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditExternal.java b/src/main/java/com/gxwebsoft/credit/entity/CreditExternal.java index fc660a1..7ee87d3 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditExternal.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditExternal.java @@ -101,6 +101,10 @@ public class CreditExternal implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditFinalVersion.java b/src/main/java/com/gxwebsoft/credit/entity/CreditFinalVersion.java index 97643a4..3797b12 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditFinalVersion.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditFinalVersion.java @@ -83,6 +83,10 @@ public class CreditFinalVersion implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditGqdj.java b/src/main/java/com/gxwebsoft/credit/entity/CreditGqdj.java index ceb7781..cb1907b 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditGqdj.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditGqdj.java @@ -89,6 +89,10 @@ public class CreditGqdj implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditHistoricalLegalPerson.java b/src/main/java/com/gxwebsoft/credit/entity/CreditHistoricalLegalPerson.java index 87d499a..b8c6431 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditHistoricalLegalPerson.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditHistoricalLegalPerson.java @@ -1,6 +1,7 @@ package com.gxwebsoft.credit.entity; import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.fasterxml.jackson.annotation.JsonFormat; @@ -61,6 +62,10 @@ public class CreditHistoricalLegalPerson implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditJudgmentDebtor.java b/src/main/java/com/gxwebsoft/credit/entity/CreditJudgmentDebtor.java index 6501da7..2ee5976 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditJudgmentDebtor.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditJudgmentDebtor.java @@ -84,6 +84,10 @@ public class CreditJudgmentDebtor implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditJudicialDocument.java b/src/main/java/com/gxwebsoft/credit/entity/CreditJudicialDocument.java index 45a1157..69867c6 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditJudicialDocument.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditJudicialDocument.java @@ -93,6 +93,10 @@ public class CreditJudicialDocument implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditJudiciary.java b/src/main/java/com/gxwebsoft/credit/entity/CreditJudiciary.java index 6e7f54d..1a7739a 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditJudiciary.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditJudiciary.java @@ -109,6 +109,10 @@ public class CreditJudiciary implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditMediation.java b/src/main/java/com/gxwebsoft/credit/entity/CreditMediation.java index 65e73b5..4780fa9 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditMediation.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditMediation.java @@ -90,6 +90,10 @@ public class CreditMediation implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditNearbyCompany.java b/src/main/java/com/gxwebsoft/credit/entity/CreditNearbyCompany.java index b3972b8..8db323b 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditNearbyCompany.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditNearbyCompany.java @@ -1,6 +1,7 @@ package com.gxwebsoft.credit.entity; import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.fasterxml.jackson.annotation.JsonFormat; @@ -208,6 +209,10 @@ public class CreditNearbyCompany implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditPatent.java b/src/main/java/com/gxwebsoft/credit/entity/CreditPatent.java index 309cd38..b432792 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditPatent.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditPatent.java @@ -1,6 +1,7 @@ package com.gxwebsoft.credit.entity; import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.fasterxml.jackson.annotation.JsonFormat; @@ -79,6 +80,10 @@ public class CreditPatent implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditRiskRelation.java b/src/main/java/com/gxwebsoft/credit/entity/CreditRiskRelation.java index 9d56761..762036e 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditRiskRelation.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditRiskRelation.java @@ -73,6 +73,10 @@ public class CreditRiskRelation implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditSupplier.java b/src/main/java/com/gxwebsoft/credit/entity/CreditSupplier.java index 787081c..879b91d 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditSupplier.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditSupplier.java @@ -74,6 +74,10 @@ public class CreditSupplier implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditSuspectedRelationship.java b/src/main/java/com/gxwebsoft/credit/entity/CreditSuspectedRelationship.java index d27739e..b041204 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditSuspectedRelationship.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditSuspectedRelationship.java @@ -1,6 +1,7 @@ package com.gxwebsoft.credit.entity; import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.fasterxml.jackson.annotation.JsonFormat; @@ -76,6 +77,10 @@ public class CreditSuspectedRelationship implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditUser.java b/src/main/java/com/gxwebsoft/credit/entity/CreditUser.java index 891fbd4..f1ee7cc 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditUser.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditUser.java @@ -101,6 +101,10 @@ public class CreditUser implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditXgxf.java b/src/main/java/com/gxwebsoft/credit/entity/CreditXgxf.java index b957f4c..c954207 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditXgxf.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditXgxf.java @@ -92,6 +92,10 @@ public class CreditXgxf implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "真实姓名") + @TableField(exist = false) + private String realName; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditAdministrativeLicenseMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditAdministrativeLicenseMapper.xml index fc34b76..06b34f9 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditAdministrativeLicenseMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditAdministrativeLicenseMapper.xml @@ -4,9 +4,10 @@ - SELECT a.* + SELECT a.*, u.real_name AS realName FROM credit_administrative_license a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditBankruptcyMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditBankruptcyMapper.xml index 9daa686..1b7ff9a 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditBankruptcyMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditBankruptcyMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, u.real_name AS realName FROM credit_bankruptcy a + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditBranchMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditBranchMapper.xml index 61609ad..e263bda 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditBranchMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditBranchMapper.xml @@ -4,9 +4,10 @@ - SELECT a.* + SELECT a.*, u.real_name AS realName FROM credit_branch a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditBreachOfTrustMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditBreachOfTrustMapper.xml index fde1526..cd222e5 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditBreachOfTrustMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditBreachOfTrustMapper.xml @@ -4,9 +4,10 @@ - SELECT a.*, b.name AS companyName + SELECT a.*, b.name AS companyName, u.real_name AS realName FROM credit_breach_of_trust a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCaseFilingMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCaseFilingMapper.xml index 513edb2..6ed7eec 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCaseFilingMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCaseFilingMapper.xml @@ -4,9 +4,10 @@ - SELECT a.*, b.name AS companyName + SELECT a.*, b.name AS companyName, u.real_name AS realName FROM credit_case_filing a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCompanyMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCompanyMapper.xml index a9e1c0c..ef07f47 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCompanyMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCompanyMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, u.real_name AS realName FROM credit_company a + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCompetitorMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCompetitorMapper.xml index 951c299..a4d898c 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCompetitorMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCompetitorMapper.xml @@ -4,9 +4,10 @@ - SELECT a.*, b.name AS mainCompanyName + SELECT a.*, b.name AS mainCompanyName, u.real_name AS realName FROM credit_competitor a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCourtAnnouncementMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCourtAnnouncementMapper.xml index fcadd3f..618a725 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCourtAnnouncementMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCourtAnnouncementMapper.xml @@ -4,9 +4,10 @@ - SELECT a.*, b.name AS companyName + SELECT a.*, b.name AS companyName, u.real_name AS realName FROM credit_court_announcement a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCourtSessionMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCourtSessionMapper.xml index 5e96e61..5e5669e 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCourtSessionMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCourtSessionMapper.xml @@ -4,9 +4,10 @@ - SELECT a.*, b.name AS companyName + SELECT a.*, b.name AS companyName, u.real_name AS realName FROM credit_court_session a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCustomerMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCustomerMapper.xml index bcda081..ea7e284 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCustomerMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCustomerMapper.xml @@ -4,9 +4,10 @@ - SELECT a.*, b.name AS companyName + SELECT a.*, b.name AS companyName, u.real_name AS realName FROM credit_customer a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditDeliveryNoticeMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditDeliveryNoticeMapper.xml index c26d4cb..256cd0c 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditDeliveryNoticeMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditDeliveryNoticeMapper.xml @@ -4,9 +4,10 @@ - SELECT a.*, b.name AS companyName + SELECT a.*, b.name AS companyName, u.real_name AS realName FROM credit_delivery_notice a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditExternalMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditExternalMapper.xml index dc1df00..d022413 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditExternalMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditExternalMapper.xml @@ -4,9 +4,10 @@ - SELECT a.*, b.name AS companyName + SELECT a.*, b.name AS companyName, u.real_name AS realName FROM credit_external a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditFinalVersionMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditFinalVersionMapper.xml index add9c97..ce9df51 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditFinalVersionMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditFinalVersionMapper.xml @@ -4,9 +4,10 @@ - SELECT a.*, b.name AS companyName + SELECT a.*, b.name AS companyName, u.real_name AS realName FROM credit_final_version a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditGqdjMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditGqdjMapper.xml index 6b775c0..6e13551 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditGqdjMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditGqdjMapper.xml @@ -4,9 +4,10 @@ - SELECT a.*, b.name AS companyName + SELECT a.*, b.name AS companyName, u.real_name AS realName FROM credit_gqdj a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditHistoricalLegalPersonMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditHistoricalLegalPersonMapper.xml index 729cbf7..bc5113f 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditHistoricalLegalPersonMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditHistoricalLegalPersonMapper.xml @@ -4,9 +4,10 @@ - SELECT a.* + SELECT a.*, u.real_name AS realName FROM credit_historical_legal_person a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditJudgmentDebtorMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditJudgmentDebtorMapper.xml index 63a3979..3eb5d06 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditJudgmentDebtorMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditJudgmentDebtorMapper.xml @@ -4,9 +4,10 @@ - SELECT a.*, b.name AS companyName + SELECT a.*, b.name AS companyName, u.real_name AS realName FROM credit_judgment_debtor a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditJudicialDocumentMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditJudicialDocumentMapper.xml index dddac94..e7a57bd 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditJudicialDocumentMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditJudicialDocumentMapper.xml @@ -4,9 +4,10 @@ - SELECT a.*, b.name AS companyName + SELECT a.*, b.name AS companyName, u.real_name AS realName FROM credit_judicial_document a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditJudiciaryMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditJudiciaryMapper.xml index 7a6d83f..f6348ed 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditJudiciaryMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditJudiciaryMapper.xml @@ -4,9 +4,10 @@ - SELECT a.*, b.name AS companyName + SELECT a.*, b.name AS companyName, u.real_name AS realName FROM credit_judiciary a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditMediationMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditMediationMapper.xml index 3052dbe..002d107 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditMediationMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditMediationMapper.xml @@ -4,9 +4,10 @@ - SELECT a.*, b.name AS companyName + SELECT a.*, b.name AS companyName, u.real_name AS realName FROM credit_mediation a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditNearbyCompanyMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditNearbyCompanyMapper.xml index a7f16b1..b338412 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditNearbyCompanyMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditNearbyCompanyMapper.xml @@ -4,9 +4,10 @@ - SELECT a.* + SELECT a.*, u.real_name AS realName FROM credit_nearby_company a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditPatentMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditPatentMapper.xml index 1fbee90..245e362 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditPatentMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditPatentMapper.xml @@ -4,9 +4,10 @@ - SELECT a.* + SELECT a.*, u.real_name AS realName FROM credit_patent a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditRiskRelationMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditRiskRelationMapper.xml index 20002e7..c726a7e 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditRiskRelationMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditRiskRelationMapper.xml @@ -4,9 +4,10 @@ - SELECT a.*, b.name AS companyName + SELECT a.*, b.name AS companyName, u.real_name AS realName FROM credit_risk_relation a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditSupplierMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditSupplierMapper.xml index 51c81b3..61fd12e 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditSupplierMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditSupplierMapper.xml @@ -4,9 +4,10 @@ - SELECT a.*, b.name AS companyName + SELECT a.*, b.name AS companyName, u.real_name AS realName FROM credit_supplier a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditSuspectedRelationshipMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditSuspectedRelationshipMapper.xml index fbb20f2..43e841a 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditSuspectedRelationshipMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditSuspectedRelationshipMapper.xml @@ -4,9 +4,10 @@ - SELECT a.* + SELECT a.*, u.real_name AS realName FROM credit_suspected_relationship a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditUserMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditUserMapper.xml index 37d2a60..b7d4114 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditUserMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditUserMapper.xml @@ -4,9 +4,10 @@ - SELECT a.*, b.name AS companyName + SELECT a.*, b.name AS companyName, u.real_name AS realName FROM credit_user a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id} diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditXgxfMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditXgxfMapper.xml index be1e288..c233a23 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditXgxfMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditXgxfMapper.xml @@ -4,9 +4,10 @@ - SELECT a.*, b.name AS companyName + SELECT a.*, b.name AS companyName, u.real_name AS realName FROM credit_xgxf a LEFT JOIN credit_company b ON a.company_id = b.id + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id AND a.id = #{param.id}