Commit 5f2ee689 by 吴迪

修改成手机查询个人信息

parent f28c5bff
...@@ -2,6 +2,9 @@ package io.office.modules.manage.controller; ...@@ -2,6 +2,9 @@ package io.office.modules.manage.controller;
import java.util.Arrays; import java.util.Arrays;
import java.util.Map; import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.office.modules.app.annotation.Login; import io.office.modules.app.annotation.Login;
import io.office.modules.sys.controller.AbstractController; import io.office.modules.sys.controller.AbstractController;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -91,7 +94,10 @@ public class MemberController extends AbstractController { ...@@ -91,7 +94,10 @@ public class MemberController extends AbstractController {
// @RequiresPermissions("manage:member:info") // @RequiresPermissions("manage:member:info")
public R info(){ public R info(){
Long memberUserId = getMemberUserId(); Long memberUserId = getMemberUserId();
MemberEntity member = memberService.getById(memberUserId);
QueryWrapper<MemberEntity> queryWrapper = new QueryWrapper<MemberEntity>();
queryWrapper.eq("phone",memberUserId);
MemberEntity member = memberService.getOne(queryWrapper);
return R.ok().put("data", member); return R.ok().put("data", member);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment