From 17e9ad4bbbbd0129e8da4dc0cfeee0028d7121e0 Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期一, 24 二月 2025 17:40:23 +0800 Subject: [PATCH] 资金类型和重点分类多选 --- system/src/main/resources/mapper/system/SysDeptMapper.xml | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/system/src/main/resources/mapper/system/SysDeptMapper.xml b/system/src/main/resources/mapper/system/SysDeptMapper.xml index e0faa04..8de6205 100644 --- a/system/src/main/resources/mapper/system/SysDeptMapper.xml +++ b/system/src/main/resources/mapper/system/SysDeptMapper.xml @@ -100,6 +100,10 @@ where SU.user_id = #{userId} </select> + <select id="selectByName" parameterType="string" resultType="long"> + SELECT dept_id FROM sys_dept WHERE dept_name = #{name} and del_flag = '0' limit 1 + </select> + <insert id="insertDept" parameterType="SysDept"> insert into sys_dept( <if test="deptId != null and deptId != 0">dept_id,</if> @@ -131,9 +135,9 @@ <update id="updateDept" parameterType="SysDept"> update sys_dept <set> - <if test="parentId != null and parentId != 0">parent_id = #{parentId},</if> + <if test="parentId != null">parent_id = #{parentId},</if> <if test="deptName != null and deptName != ''">dept_name = #{deptName},</if> - <if test="ancestors != null and ancestors != ''">ancestors = #{ancestors},</if> + <if test="ancestors != null">ancestors = #{ancestors},</if> <if test="orderNum != null">order_num = #{orderNum},</if> <if test="leader != null">leader = #{leader},</if> <if test="phone != null">phone = #{phone},</if> -- Gitblit v1.8.0