From 3cc8d1cc3662d88fe7f3666fb1f99e1b19411424 Mon Sep 17 00:00:00 2001 From: heheng <475597332@qq.com> Date: 星期一, 14 七月 2025 16:59:58 +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