From 144e2cf02a6ecc5f417a91b52a9f1fc81a365621 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期五, 14 十一月 2025 15:55:56 +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