fuliqi
2025-02-19 bde7a755b6ec136aab38b44c94fcc0efb9240b26
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>