|
@@ -24,13 +24,19 @@ public class UserController {
|
|
|
|
|
|
|
|
private final static UsageBufferedLogger logger = BufferedLoggerManager.getLogger(UsageBufferedLogger.class);
|
|
private final static UsageBufferedLogger logger = BufferedLoggerManager.getLogger(UsageBufferedLogger.class);
|
|
|
|
|
|
|
|
- @RequestMapping(value = "/{uu}", method = RequestMethod.DELETE)
|
|
|
|
|
- public ResponseEntity<String> removeUser(@PathVariable("uu") Long uu)throws UnsupportedEncodingException {
|
|
|
|
|
- if (uu == null) {
|
|
|
|
|
|
|
+ @RequestMapping(value = "/{uus}", method = RequestMethod.DELETE)
|
|
|
|
|
+ public ResponseEntity<String> removeUser(@PathVariable("uus") Long... uus)throws UnsupportedEncodingException {
|
|
|
|
|
+ if (uus == null) {
|
|
|
return new ResponseEntity<String>(HttpStatus.NOT_MODIFIED);
|
|
return new ResponseEntity<String>(HttpStatus.NOT_MODIFIED);
|
|
|
}
|
|
}
|
|
|
- userService.removeUser(uu);
|
|
|
|
|
- logger.log("用户信息", "删除用户,UU:" + uu);
|
|
|
|
|
|
|
+ for (Long uu : uus) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ userService.removeUser(uu);
|
|
|
|
|
+ logger.log("用户信息", "删除用户,UU:" + uu);
|
|
|
|
|
+ } catch (RuntimeException e){
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
return new ResponseEntity<String>(HttpStatus.OK);
|
|
return new ResponseEntity<String>(HttpStatus.OK);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|