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>