From e32ac074e0cdc07b7551155e2e1c24684857f2b7 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期三, 03 十二月 2025 15:12:19 +0800
Subject: [PATCH] 修改内审
---
multi-system/src/main/resources/mapper/system/CompanyCertificateMapper.xml | 39 ++++++++++++++++++++++-----------------
1 files changed, 22 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..af45afa 100644
--- a/multi-system/src/main/resources/mapper/system/CompanyCertificateMapper.xml
+++ b/multi-system/src/main/resources/mapper/system/CompanyCertificateMapper.xml
@@ -28,6 +28,9 @@
<if test="delFlag != null and delFlag != ''" >
del_flag = #{delFlag},
</if>
+ <if test="getTime != null" >
+ get_time = #{getTime},
+ </if>
<if test="createBy != null" >
create_by = #{createBy},
</if>
@@ -47,27 +50,29 @@
<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`,
+ cc.get_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