评分账号清除接口

main 38
hshansha 2 months ago
parent f1e837790a
commit fe7e670174

@ -223,6 +223,21 @@ public class SysUserController extends BaseController
return toAjax(userService.deleteUserByIds(userIds)); return toAjax(userService.deleteUserByIds(userIds));
} }
/**
* id
*/
@PreAuthorize("@ss.hasPermi('system:user:remove')")
@Log(title = "用户管理", businessType = BusinessType.DELETE)
@DeleteMapping("/pcIds/{pcIds}")
public AjaxResult removeBypcIds(@PathVariable Long[] pcIds)
{
if (ArrayUtils.contains(pcIds, getUserId()))
{
return error("当前用户不能删除");
}
return toAjax(userService.deleteUserByPcIds(pcIds));
}
/** /**
* *
*/ */

@ -203,4 +203,6 @@ public interface ISysUserService
* @return * @return
*/ */
public String importUser(List<SysUser> userList, Boolean isUpdateSupport, String operName); public String importUser(List<SysUser> userList, Boolean isUpdateSupport, String operName);
int deleteUserByPcIds(Long[] pcIds);
} }

@ -237,5 +237,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{userId} #{userId}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteUserByPcIds" parameterType="Long">
update sys_user set del_flag = '2' where pc_id in
<foreach collection="array" item="pcId" open="(" separator="," close=")">
#{pcId}
</foreach>
</delete>
</mapper> </mapper>
Loading…
Cancel
Save