修改状态
This commit is contained in:
parent
d3462828ed
commit
f0ad5f19bd
|
|
@ -1,6 +1,7 @@
|
|||
package com.sqx.modules.app.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.sqx.common.utils.PageUtils;
|
||||
|
|
@ -206,8 +207,9 @@ public class UserController {
|
|||
byId.setStatus(1);
|
||||
userService.upUserBlack(byId, 1);
|
||||
} else if (status.equals(2)) {
|
||||
byId.setStatus(2);
|
||||
userService.updateById(byId);
|
||||
userService.update(new LambdaUpdateWrapper<UserEntity>()
|
||||
.eq(UserEntity::getUserId, userId)
|
||||
.set(UserEntity::getStatus, 2));
|
||||
} else if (status.equals(0)) {
|
||||
userService.upUserBlack(byId, 0);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue