|
|
|
@ -128,6 +128,19 @@ public class SysDeptController extends BaseController
|
|
|
|
return toAjax(deptService.updateDept(dept));
|
|
|
|
return toAjax(deptService.updateDept(dept));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 保存部门排序
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Log(title = "保存部门排序", businessType = BusinessType.UPDATE)
|
|
|
|
|
|
|
|
@RequiresPermissions("system:dept:edit")
|
|
|
|
|
|
|
|
@PostMapping("/updateSort")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public AjaxResult updateSort(@RequestParam String[] deptIds, @RequestParam String[] orderNums)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
deptService.updateDeptSort(deptIds, orderNums);
|
|
|
|
|
|
|
|
return success();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 删除
|
|
|
|
* 删除
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@ -187,15 +200,4 @@ public class SysDeptController extends BaseController
|
|
|
|
List<Ztree> ztrees = deptService.selectDeptTreeExcludeChild(dept);
|
|
|
|
List<Ztree> ztrees = deptService.selectDeptTreeExcludeChild(dept);
|
|
|
|
return ztrees;
|
|
|
|
return ztrees;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 保存部门排序
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@PostMapping("/updateSort")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public AjaxResult updateSort(@RequestParam String[] deptIds, @RequestParam String[] orderNums)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
deptService.updateDeptSort(deptIds, orderNums);
|
|
|
|
|
|
|
|
return success();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|