From f8143fe8addccd8ef25613c3fbea4cd2b2ad3ab8 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期五, 27 六月 2025 17:08:31 +0800
Subject: [PATCH] 修改

---
 multi-system/src/main/resources/mapper/system/CompanyCertificateMapper.xml |   35 ++++++++++++++++++-----------------
 1 files changed, 18 insertions(+), 17 deletions(-)

diff --git a/multi-system/src/main/resources/mapper/system/CompanyCertificateMapper.xml b/multi-system/src/main/resources/mapper/system/CompanyCertificateMapper.xml
index ced1ee9..e2fac32 100644
--- a/multi-system/src/main/resources/mapper/system/CompanyCertificateMapper.xml
+++ b/multi-system/src/main/resources/mapper/system/CompanyCertificateMapper.xml
@@ -47,27 +47,28 @@
 
     <select id="selectCompanyCertificateList" resultType="com.gkhy.exam.system.domain.CompanyCertificate">
         SELECT
-            `id`,
-            `company_id`,
-            `company_name`,
-            `certificate_name`,
-            `certificate_num`,
-            `effective_time`,
-            `file_name`,
-            `file_path`,
-            `del_flag`,
-            `create_by`,
-            `create_time`,
-            `update_by`,
-            `update_time`
+            cc.`id`,
+            cc.`company_id`,
+            sc.`name` as company_name,
+            cc.`certificate_name`,
+            cc.`certificate_num`,
+            cc.`effective_time`,
+            cc.`file_name`,
+            cc.`file_path`,
+            cc.`del_flag`,
+            cc.`create_by`,
+            cc.`create_time`,
+            cc.`update_by`,
+            cc.`update_time`
         FROM
-            company_certificate
+            company_certificate cc
+        left join sys_company sc on cc.company_id = sc.id
         WHERE
-            del_flag = 1
+            cc.del_flag = 1
         <if test="companyId!=null and companyId!=''">
-            and company_id = #{companyId}
+            and cc.company_id = #{companyId}
         </if>
         ORDER BY
-            create_time DESC
+            cc.create_time DESC
     </select>
 </mapper>

--
Gitblit v1.9.2