Commit 547922c1 by 吴迪

【新增】修改文件

parent 4f6afa21
......@@ -37,7 +37,6 @@ public class UserFunctionBindingController extends AbstractController {
@RequestMapping("/authApi/find")
public R find(){
Object[] functionids = null;
Integer id=getMemberUser().getId().intValue();
if(id==null){
//未登录
......@@ -52,7 +51,7 @@ public class UserFunctionBindingController extends AbstractController {
@RequestMapping("/authApi/update")
// @RequiresPermissions("manage:userfunctionbinding:update")
public R update(@RequestBody Integer[] functionids){
Integer id=getUserId().intValue();
Integer id=getMemberUser().getId().intValue();
if(id==null){
return R.error("用户信息有误");
}
......@@ -68,7 +67,7 @@ public class UserFunctionBindingController extends AbstractController {
//遍历插入数据
for (int functionid : functionids) {
UserFunctionBindingEntity ufb=new UserFunctionBindingEntity();
ufb.setUserId(getUserId().intValue());
ufb.setUserId(getMemberUser().getId().intValue());
ufb.setFuncId(functionid);
userFunctionBindingService.save(ufb);
}
......
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