提交 e8f2548f 编写于 作者: lakernote's avatar lakernote

(bugfix)[整体](用户的部门不能为空)

上级 f39e9d96
......@@ -74,6 +74,10 @@ public class SysUserController {
@SaCheckPermission("user.update")
public Response saveOrUpdate(@RequestBody SysUser param) {
if (param.getDeptId() == null) {
return Response.error("500", "请选择部门");
}
if (param.getUserId() == null) {
// 只有超级管理员才能创建用户
if (StpUtil.getLoginIdAsLong() != 1L) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册