From bde7a755b6ec136aab38b44c94fcc0efb9240b26 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期三, 19 二月 2025 11:53:52 +0800 Subject: [PATCH] 项目编辑判断开工状态 --- system/src/main/resources/mapper/system/SysDeptMapper.xml | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/system/src/main/resources/mapper/system/SysDeptMapper.xml b/system/src/main/resources/mapper/system/SysDeptMapper.xml index e0faa04..b21db8d 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> -- Gitblit v1.8.0