|
|
@@ -93,7 +93,18 @@ public class FsUserController extends BaseController
|
|
|
}
|
|
|
return R.ok().put("data", list);
|
|
|
}
|
|
|
-
|
|
|
+ //@PreAuthorize("@ss.hasPermi('users:user:updateStatus')")
|
|
|
+ @PostMapping("/updateStatus")
|
|
|
+ @ApiOperation("批量启用会员")
|
|
|
+ public R updateStatus(@RequestBody Map<String,Object> map) {
|
|
|
+ Long userId = Long.parseLong(map.get("userId").toString());
|
|
|
+ int status = Integer.parseInt(map.get("status").toString());
|
|
|
+ int i = fsUserService.updateStatus(userId, status);
|
|
|
+ if (i>0){
|
|
|
+ return R.ok();
|
|
|
+ }
|
|
|
+ return R.error().put("message", "操作失败");
|
|
|
+ }
|
|
|
@PreAuthorize("@ss.hasPermi('his:user:list')")
|
|
|
@GetMapping("/userList")
|
|
|
public TableDataInfo userList(FsUserParam fsUser)
|