提交roll注册
This commit is contained in:
+5
-1
@@ -115,7 +115,11 @@ public class TtUserController extends BaseController {
|
||||
|
||||
@DeleteMapping("/{userIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] userIds) {
|
||||
return toAjax(userService.removeByIds(Arrays.asList(userIds)));
|
||||
// 直接从数据库物理删除,避免逻辑删除后手机号被唯一索引占用无法重新注册
|
||||
for (Long userId : userIds) {
|
||||
ttUserMapper.removeByUserId(userId.intValue());
|
||||
}
|
||||
return toAjax(userIds.length);
|
||||
}
|
||||
|
||||
@GetMapping("/online/list")
|
||||
|
||||
Reference in New Issue
Block a user