Commit a72aaed3 by YANGYANG

批量删除提交

parent b3b85d6b
...@@ -187,10 +187,10 @@ public class UsersController { ...@@ -187,10 +187,10 @@ public class UsersController {
@ApiOperation(value = "批量删除用户") @ApiOperation(value = "批量删除用户")
@PostMapping("/deleteUsersBySfzhms") @PostMapping("/deleteUsersBySfzhms")
public MapRestResult deleteUsersByIds(@RequestBody String[] Sfzhms) { public MapRestResult deleteUsersByIds(@RequestBody String[] Sfzhms) {
QueryWrapper<Users> wrapper = new QueryWrapper<>();
boolean result = false; boolean result = false;
for (String sfzhm : Sfzhms) { for (String sfzhm : Sfzhms) {
wrapper.eq("sfzhm",sfzhm); QueryWrapper<Users> wrapper = new QueryWrapper<>();
wrapper.eq("sfzhm",sfzhm);
// 查询 // 查询
Users user = usersService.getOne(wrapper); Users user = usersService.getOne(wrapper);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment