From 3ed457d7d6b6cfbb7630df923cfb19f3e2b08bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Mon, 5 Jan 2026 15:21:59 +0800 Subject: [PATCH] =?UTF-8?q?feat(credit):=20=E6=B7=BB=E5=8A=A0=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=90=8D=E7=A7=B0=E5=85=B3=E8=81=94=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在多个实体类中添加companyName字段用于显示企业名称 - 为CreditBreachOfTrust、CreditCaseFiling等实体添加TableField注解 - 修改CreditCompetitor实体的字段名称为mainCompanyName - 在各个Mapper.xml文件中添加LEFT JOIN关联查询企业名称 - 更新查询SQL语句以包含企业名称字段 - 添加必要的TableField导入依赖 --- .../com/gxwebsoft/credit/entity/CreditBreachOfTrust.java | 4 ++++ .../java/com/gxwebsoft/credit/entity/CreditCaseFiling.java | 4 ++++ .../java/com/gxwebsoft/credit/entity/CreditCompetitor.java | 7 ++++++- .../gxwebsoft/credit/entity/CreditCourtAnnouncement.java | 4 ++++ .../com/gxwebsoft/credit/entity/CreditCourtSession.java | 4 ++++ .../java/com/gxwebsoft/credit/entity/CreditCustomer.java | 5 +++++ .../com/gxwebsoft/credit/entity/CreditDeliveryNotice.java | 4 ++++ .../java/com/gxwebsoft/credit/entity/CreditExternal.java | 5 +++++ .../com/gxwebsoft/credit/entity/CreditFinalVersion.java | 4 ++++ src/main/java/com/gxwebsoft/credit/entity/CreditGqdj.java | 4 ++++ .../com/gxwebsoft/credit/entity/CreditJudgmentDebtor.java | 5 +++++ .../gxwebsoft/credit/entity/CreditJudicialDocument.java | 4 ++++ .../java/com/gxwebsoft/credit/entity/CreditJudiciary.java | 5 +++++ .../java/com/gxwebsoft/credit/entity/CreditMediation.java | 4 ++++ .../com/gxwebsoft/credit/entity/CreditRiskRelation.java | 5 +++++ .../java/com/gxwebsoft/credit/entity/CreditSupplier.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/CreditBreachOfTrustMapper.xml | 3 ++- .../gxwebsoft/credit/mapper/xml/CreditCaseFilingMapper.xml | 3 ++- .../gxwebsoft/credit/mapper/xml/CreditCompetitorMapper.xml | 3 ++- .../credit/mapper/xml/CreditCourtAnnouncementMapper.xml | 3 ++- .../credit/mapper/xml/CreditCourtSessionMapper.xml | 3 ++- .../gxwebsoft/credit/mapper/xml/CreditCustomerMapper.xml | 3 ++- .../credit/mapper/xml/CreditDeliveryNoticeMapper.xml | 3 ++- .../gxwebsoft/credit/mapper/xml/CreditExternalMapper.xml | 3 ++- .../credit/mapper/xml/CreditFinalVersionMapper.xml | 3 ++- .../com/gxwebsoft/credit/mapper/xml/CreditGqdjMapper.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/CreditRiskRelationMapper.xml | 3 ++- .../gxwebsoft/credit/mapper/xml/CreditSupplierMapper.xml | 3 ++- .../com/gxwebsoft/credit/mapper/xml/CreditUserMapper.xml | 3 ++- .../com/gxwebsoft/credit/mapper/xml/CreditXgxfMapper.xml | 3 ++- 36 files changed, 116 insertions(+), 19 deletions(-) diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditBreachOfTrust.java b/src/main/java/com/gxwebsoft/credit/entity/CreditBreachOfTrust.java index 9b43da2..54c83c4 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditBreachOfTrust.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditBreachOfTrust.java @@ -64,6 +64,10 @@ public class CreditBreachOfTrust implements Serializable { @Schema(description = "企业ID") private Integer companyId; + @Schema(description = "企业名称") + @TableField(exist = false) + private String companyName; + @Schema(description = "备注") private String comments; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditCaseFiling.java b/src/main/java/com/gxwebsoft/credit/entity/CreditCaseFiling.java index ec21311..f6113e1 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditCaseFiling.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditCaseFiling.java @@ -64,6 +64,10 @@ public class CreditCaseFiling implements Serializable { @Schema(description = "企业ID") private Integer companyId; + @Schema(description = "企业名称") + @TableField(exist = false) + private String companyName; + @Schema(description = "备注") private String comments; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditCompetitor.java b/src/main/java/com/gxwebsoft/credit/entity/CreditCompetitor.java index f913528..6839404 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditCompetitor.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditCompetitor.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; @@ -50,9 +51,13 @@ public class CreditCompetitor implements Serializable { @Schema(description = "所属省份") private String province; - @Schema(description = "企业ID") + @Schema(description = "企业ID") private Integer companyId; + @Schema(description = "所属企业名称") + @TableField(exist = false) + private String mainCompanyName; + @Schema(description = "备注") private String comments; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditCourtAnnouncement.java b/src/main/java/com/gxwebsoft/credit/entity/CreditCourtAnnouncement.java index 8ce1043..61324b4 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditCourtAnnouncement.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditCourtAnnouncement.java @@ -64,6 +64,10 @@ public class CreditCourtAnnouncement implements Serializable { @Schema(description = "企业ID") private Integer companyId; + @Schema(description = "企业名称") + @TableField(exist = false) + private String companyName; + @Schema(description = "备注") private String comments; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditCourtSession.java b/src/main/java/com/gxwebsoft/credit/entity/CreditCourtSession.java index 8e4dbd0..47462d6 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditCourtSession.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditCourtSession.java @@ -64,6 +64,10 @@ public class CreditCourtSession implements Serializable { @Schema(description = "企业ID") private Integer companyId; + @Schema(description = "企业名称") + @TableField(exist = false) + private String companyName; + @Schema(description = "备注") private String comments; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditCustomer.java b/src/main/java/com/gxwebsoft/credit/entity/CreditCustomer.java index e3a4471..5a31403 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditCustomer.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditCustomer.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; @@ -47,6 +48,10 @@ public class CreditCustomer implements Serializable { @Schema(description = "企业ID") private Integer companyId; + @Schema(description = "企业名称") + @TableField(exist = false) + private String companyName; + @Schema(description = "备注") private String comments; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditDeliveryNotice.java b/src/main/java/com/gxwebsoft/credit/entity/CreditDeliveryNotice.java index 85bffa2..ff9615a 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditDeliveryNotice.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditDeliveryNotice.java @@ -64,6 +64,10 @@ public class CreditDeliveryNotice implements Serializable { @Schema(description = "企业ID") private Integer companyId; + @Schema(description = "企业名称") + @TableField(exist = false) + private String companyName; + @Schema(description = "备注") private String comments; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditExternal.java b/src/main/java/com/gxwebsoft/credit/entity/CreditExternal.java index 5a9e53c..900843c 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditExternal.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditExternal.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; @@ -74,6 +75,10 @@ public class CreditExternal implements Serializable { @Schema(description = "企业ID") private Integer companyId; + @Schema(description = "企业名称") + @TableField(exist = false) + private String companyName; + @Schema(description = "备注") private String comments; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditFinalVersion.java b/src/main/java/com/gxwebsoft/credit/entity/CreditFinalVersion.java index 8bfa176..48a2704 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditFinalVersion.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditFinalVersion.java @@ -64,6 +64,10 @@ public class CreditFinalVersion implements Serializable { @Schema(description = "企业ID") private Integer companyId; + @Schema(description = "企业名称") + @TableField(exist = false) + private String companyName; + @Schema(description = "备注") private String comments; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditGqdj.java b/src/main/java/com/gxwebsoft/credit/entity/CreditGqdj.java index 62c0133..5c361be 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditGqdj.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditGqdj.java @@ -64,6 +64,10 @@ public class CreditGqdj implements Serializable { @Schema(description = "企业ID") private Integer companyId; + @Schema(description = "企业名称") + @TableField(exist = false) + private String companyName; + @Schema(description = "备注") private String comments; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditJudgmentDebtor.java b/src/main/java/com/gxwebsoft/credit/entity/CreditJudgmentDebtor.java index 8cb6171..f705a3f 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditJudgmentDebtor.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditJudgmentDebtor.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; @@ -59,6 +60,10 @@ public class CreditJudgmentDebtor implements Serializable { @Schema(description = "企业ID") private Integer companyId; + @Schema(description = "企业名称") + @TableField(exist = false) + private String companyName; + @Schema(description = "备注") private String comments; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditJudicialDocument.java b/src/main/java/com/gxwebsoft/credit/entity/CreditJudicialDocument.java index bb8afd4..7895698 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditJudicialDocument.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditJudicialDocument.java @@ -64,6 +64,10 @@ public class CreditJudicialDocument implements Serializable { @Schema(description = "企业ID") private Integer companyId; + @Schema(description = "企业名称") + @TableField(exist = false) + private String companyName; + @Schema(description = "备注") private String comments; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditJudiciary.java b/src/main/java/com/gxwebsoft/credit/entity/CreditJudiciary.java index 6b27f92..55b806c 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditJudiciary.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditJudiciary.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; @@ -78,6 +79,10 @@ public class CreditJudiciary implements Serializable { @Schema(description = "企业ID") private Integer companyId; + @Schema(description = "企业名称") + @TableField(exist = false) + private String companyName; + @Schema(description = "备注") private String comments; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditMediation.java b/src/main/java/com/gxwebsoft/credit/entity/CreditMediation.java index 417b38a..4f370d6 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditMediation.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditMediation.java @@ -64,6 +64,10 @@ public class CreditMediation implements Serializable { @Schema(description = "企业ID") private Integer companyId; + @Schema(description = "企业名称") + @TableField(exist = false) + private String companyName; + @Schema(description = "备注") private String comments; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditRiskRelation.java b/src/main/java/com/gxwebsoft/credit/entity/CreditRiskRelation.java index ece5aa4..9d56761 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditRiskRelation.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditRiskRelation.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; @@ -49,6 +50,10 @@ public class CreditRiskRelation implements Serializable { @Schema(description = "企业ID") private Integer companyId; + @Schema(description = "企业名称") + @TableField(exist = false) + private String companyName; + @Schema(description = "备注") private String comments; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditSupplier.java b/src/main/java/com/gxwebsoft/credit/entity/CreditSupplier.java index ee32965..55b191c 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditSupplier.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditSupplier.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; @@ -47,6 +48,10 @@ public class CreditSupplier implements Serializable { @Schema(description = "企业ID") private Integer companyId; + @Schema(description = "企业名称") + @TableField(exist = false) + private String companyName; + @Schema(description = "备注") private String comments; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditUser.java b/src/main/java/com/gxwebsoft/credit/entity/CreditUser.java index a6353f4..891fbd4 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditUser.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditUser.java @@ -78,6 +78,10 @@ public class CreditUser implements Serializable { @Schema(description = "企业ID") private Integer companyId; + @Schema(description = "企业名称") + @TableField(exist = false) + private String companyName; + @Schema(description = "备注") private String comments; diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditXgxf.java b/src/main/java/com/gxwebsoft/credit/entity/CreditXgxf.java index e54b471..eef782f 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditXgxf.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditXgxf.java @@ -64,6 +64,10 @@ public class CreditXgxf implements Serializable { @Schema(description = "企业ID") private Integer companyId; + @Schema(description = "企业名称") + @TableField(exist = false) + private String companyName; + @Schema(description = "备注") private String comments; 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 208fa8c..8bdc719 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditBreachOfTrustMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditBreachOfTrustMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, b.name AS companyName FROM credit_breach_of_trust a + LEFT JOIN credit_company b ON a.company_id = b.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 6b0cb00..11aabae 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCaseFilingMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCaseFilingMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, b.name AS companyName FROM credit_case_filing a + LEFT JOIN credit_company b ON a.company_id = b.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 12e6347..6ca9552 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCompetitorMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCompetitorMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, b.name AS mainCompanyName FROM credit_competitor a + LEFT JOIN credit_company b ON a.company_id = b.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 9a58a71..4b105ad 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCourtAnnouncementMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCourtAnnouncementMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, b.name AS companyName FROM credit_court_announcement a + LEFT JOIN credit_company b ON a.company_id = b.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 74c41f6..fdc0d8a 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCourtSessionMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCourtSessionMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, b.name AS companyName FROM credit_court_session a + LEFT JOIN credit_company b ON a.company_id = b.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 a6bb145..6806a5d 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCustomerMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditCustomerMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, b.name AS companyName FROM credit_customer a + LEFT JOIN credit_company b ON a.company_id = b.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 1716e82..324e7fd 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditDeliveryNoticeMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditDeliveryNoticeMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, b.name AS companyName FROM credit_delivery_notice a + LEFT JOIN credit_company b ON a.company_id = b.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 34aa058..29624e9 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditExternalMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditExternalMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, b.name AS companyName FROM credit_external a + LEFT JOIN credit_company b ON a.company_id = b.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 698e8fe..defd553 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditFinalVersionMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditFinalVersionMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, b.name AS companyName FROM credit_final_version a + LEFT JOIN credit_company b ON a.company_id = b.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 58e6c69..22d06a9 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditGqdjMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditGqdjMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, b.name AS companyName FROM credit_gqdj a + LEFT JOIN credit_company b ON a.company_id = b.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 1e666ec..a802c25 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditJudgmentDebtorMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditJudgmentDebtorMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, b.name AS companyName FROM credit_judgment_debtor a + LEFT JOIN credit_company b ON a.company_id = b.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 8471058..4dc62b0 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditJudicialDocumentMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditJudicialDocumentMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, b.name AS companyName FROM credit_judicial_document a + LEFT JOIN credit_company b ON a.company_id = b.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 befb11a..48ab759 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditJudiciaryMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditJudiciaryMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, b.name AS companyName FROM credit_judiciary a + LEFT JOIN credit_company b ON a.company_id = b.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 e6462a4..6529280 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditMediationMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditMediationMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, b.name AS companyName FROM credit_mediation a + LEFT JOIN credit_company b ON a.company_id = b.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 d35415d..2caae1a 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditRiskRelationMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditRiskRelationMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, b.name AS companyName FROM credit_risk_relation a + LEFT JOIN credit_company b ON a.company_id = b.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 ebfb765..ab964a6 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditSupplierMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditSupplierMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, b.name AS companyName FROM credit_supplier a + LEFT JOIN credit_company b ON a.company_id = b.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 6ed3ba1..b9d4463 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditUserMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditUserMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, b.name AS companyName FROM credit_user a + LEFT JOIN credit_company b ON a.company_id = b.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 bf58bd2..c08524e 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditXgxfMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditXgxfMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, b.name AS companyName FROM credit_xgxf a + LEFT JOIN credit_company b ON a.company_id = b.id AND a.id = #{param.id}