Pre Merge pull request !582 from 光速蜗牛/master

This commit is contained in:
光速蜗牛 2026-03-19 02:58:06 +00:00 committed by Gitee
commit d6d2e27ede
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 29 additions and 29 deletions

View File

@ -97,7 +97,7 @@ public interface SysDeptMapper
* *
* @param deptIds 部门ID组 * @param deptIds 部门ID组
*/ */
public void updateDeptStatusNormal(Long[] deptIds); public void updateDeptStatusNormal(@Param("deptIds") Long[] deptIds);
/** /**
* 根据ID查询所有子部门 * 根据ID查询所有子部门

View File

@ -150,7 +150,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update id="updateDeptStatusNormal" parameterType="Long"> <update id="updateDeptStatusNormal" parameterType="Long">
update sys_dept set status = '0' where dept_id in update sys_dept set status = '0' where dept_id in
<foreach collection="array" item="deptId" open="(" separator="," close=")"> <foreach collection="deptIds" item="deptId" open="(" separator="," close=")">
#{deptId} #{deptId}
</foreach> </foreach>
</update> </update>