From 61f0357bef6d6aea12a8c6ecad97db57ee4149fe Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期四, 25 九月 2025 08:35:39 +0800
Subject: [PATCH] 修改
---
multi-system/src/main/resources/mapper/system/InternalAuditCheckMapper.xml | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/multi-system/src/main/resources/mapper/system/InternalAuditCheckMapper.xml b/multi-system/src/main/resources/mapper/system/InternalAuditCheckMapper.xml
index 39d7b5d..9e9637b 100644
--- a/multi-system/src/main/resources/mapper/system/InternalAuditCheckMapper.xml
+++ b/multi-system/src/main/resources/mapper/system/InternalAuditCheckMapper.xml
@@ -17,17 +17,20 @@
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
+ <result column="dept_name" jdbcType="VARCHAR" property="deptName" />
</resultMap>
<select id="selectInternalAuditCheckList" parameterType="int" resultMap="BaseResultMap">
select
- id, company_id, dept_id, audit_id, audit_date, caluse_num, caluse_content, check_record, inconsistent, del_flag, create_by, create_time, update_by, update_time
- from internal_audit_check
- where del_flag = 0
+ a.id, a.company_id, a.dept_id, b.dept_name,a.audit_id, a.audit_date, a.caluse_num, a.caluse_content, a.check_record, a.inconsistent, a.del_flag, a.create_by, a.create_time, a.update_by, a.update_time
+ from internal_audit_check a
+ left join sys_dept b on a.dept_id = b.dept_id
+
+ where a.del_flag = 0
<if test="companyId != null">
- and company_id = #{companyId}
+ and a.company_id = #{companyId}
</if>
- order by create_time desc
+ order by a.create_time desc
</select>
--
Gitblit v1.9.2