|
@@ -181,9 +181,9 @@ public class UserController extends BaseController {
|
|
|
@PostMapping("/user")
|
|
@PostMapping("/user")
|
|
|
@ApiOperation("无公司的用户")
|
|
@ApiOperation("无公司的用户")
|
|
|
public List<User> user(Long companyId) {
|
|
public List<User> user(Long companyId) {
|
|
|
- List<User> users = userRepo.findAllByCompanyIdIsNull();
|
|
|
|
|
|
|
+ List<User> users = userRepo.findAllByCompanyIdIsNullAndDelFalse();
|
|
|
if (ObjectUtil.isNotEmpty(companyId)) {
|
|
if (ObjectUtil.isNotEmpty(companyId)) {
|
|
|
- users.addAll(userRepo.findAllByCompanyId(companyId));
|
|
|
|
|
|
|
+ users.addAll(userRepo.findAllByCompanyIdAndDelFalse(companyId));
|
|
|
}
|
|
}
|
|
|
return users;
|
|
return users;
|
|
|
}
|
|
}
|