ZQN
2024-06-21 6acee0d1d79a05f7a3a3c386e9df02e9a741f544
project-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -43,7 +43,9 @@
         AND status = #{status}
      </if>
      <!-- 数据范围过滤 -->
      ${params.dataScope}
      <if test="params != null and params.dataScope != null">
         AND ${params.dataScope}
      </if>
      order by d.parent_id, d.order_num
    </select>
@@ -156,4 +158,7 @@
      update sys_dept set del_flag = '2' where dept_id = #{deptId}
   </delete>
   <select id="getApplyDeptIdsByLoginUserId" resultType="Long">
      select dept_id from sys_user_dept where user_id = #{userId}
   </select>
</mapper>