自动化立体仓库 - WMS系统
1
zhangc
2025-02-07 aa2d520a06c371e76ef26c78d426a01fca76a2fc
src/main/java/com/zy/system/controller/RoleController.java
@@ -78,7 +78,7 @@
    @ManagerAuth(memo = "角色编辑")
    public R edit(Role role) {
        if (Cools.isEmpty(role)){
            return R.error();
            return R.error("参数缺失");
        }
        if (null == role.getId()){
            roleService.insert(role);
@@ -99,7 +99,7 @@
    @ManagerAuth(memo = "角色修改")
    public R update(Role role){
        if (Cools.isEmpty(role) || null==role.getId()){
            return R.error();
            return R.error("参数缺失");
        }
        roleService.updateById(role);
        return R.ok();
@@ -109,7 +109,7 @@
    @ManagerAuth(memo = "角色删除")
    public R delete(Integer[] ids){
        if (Cools.isEmpty(ids)){
            return R.error();
            return R.error("参数缺失");
        }
        roleService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();