|
@@ -300,11 +300,11 @@ public class UserController extends BaseController {
|
|
|
@GetMapping(value = "/changeLock/{userId}/{lockFlag}")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "userId", value = "userId", paramType = "path", dataType = "long", required = true),
|
|
|
- @ApiImplicitParam(name = "lockFlag", value = "锁定状态 0-正常,9-锁定", paramType = "path", dataType = "int", required = true)
|
|
|
+ @ApiImplicitParam(name = "lockFlag", value = "锁定状态 0-正常,1-锁定", paramType = "path", dataType = "int", required = true)
|
|
|
})
|
|
|
@ApiOperation(value = "启用/冻结", notes = "传入lockFlag")
|
|
|
public HttpResponseResult<Boolean> changeLock(@PathVariable("userId") Long userId, @PathVariable("lockFlag") Integer lockFlag) {
|
|
|
- if (userId == null && lockFlag != 0 && lockFlag != 9) {
|
|
|
+ if (userId == null && lockFlag != 0 && lockFlag != 1) {
|
|
|
return failed("参数校验异常");
|
|
|
}
|
|
|
SysUser sysUser = sysUserService.queryUserInfo(userId);
|