xiangpei
2025-02-17 4cd71c0be46a461432989ae7c5d6d56d9e7bbbed
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>