| | |
| | | |
| | | @PostMapping("/appUser/queryAppUserByIds") |
| | | @ResponseBody |
| | | public List<TAppUser> queryAppUserByIds(@RequestBody UserDetailsOfSearch search){ |
| | | LambdaQueryWrapper<TAppUser> tAppUserLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | public List<TStudent> queryAppUserByIds(@RequestBody UserDetailsOfSearch search){ |
| | | LambdaQueryWrapper<TStudent> tAppUserLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | if(ToolUtil.isNotEmpty(search.getIdCard())){ |
| | | tAppUserLambdaQueryWrapper.eq(TAppUser::getIdCard, search.getIdCard()); |
| | | tAppUserLambdaQueryWrapper.eq(TStudent::getIdCard, search.getIdCard()); |
| | | } |
| | | if(ToolUtil.isNotEmpty(search.getPhone())){ |
| | | tAppUserLambdaQueryWrapper.eq(TAppUser::getPhone, search.getPhone()); |
| | | tAppUserLambdaQueryWrapper.eq(TStudent::getPhone, search.getPhone()); |
| | | } |
| | | if(ToolUtil.isNotEmpty(search.getName())){ |
| | | tAppUserLambdaQueryWrapper.eq(TAppUser::getName, search.getName()); |
| | | tAppUserLambdaQueryWrapper.eq(TStudent::getName, search.getName()); |
| | | } |
| | | tAppUserLambdaQueryWrapper.in(TAppUser::getId,search.getUseIds()); |
| | | return appUserService.list(tAppUserLambdaQueryWrapper); |
| | | tAppUserLambdaQueryWrapper.in(TStudent::getId,search.getUseIds()); |
| | | return studentService.list(tAppUserLambdaQueryWrapper); |
| | | } |
| | | } |