提交 c5d7c685 编写于 作者: N nrd

优化判断条件的代码

上级 7381286b
......@@ -87,7 +87,7 @@ public class UserController {
}
PageData<User> userList = userService.queryAllUser(number, size);
Map<String, Object> result = new HashMap<>();
if (userList == null) {
if (userList.getList().size() == 0) {
result.put("code", -1);
result.put("msg", "用户数据为空!");
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册