| | |
| | | System.out.println("=======selectDtos======>" + selectDtos); |
| | | return selectDtos; |
| | | } |
| | | |
| | | |
| | | @PostMapping("/appUser/queryAppUserByCityCode") |
| | | public List<TAppUser> queryAppUserByCityCode(@RequestBody String cityCode){ |
| | | return appUserService.list(new QueryWrapper<TAppUser>() |
| | | .eq("state", 1) |
| | | .eq("cityCode", cityCode) |
| | | ); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据城市code获取用户的id集合 |
| | | * @param cityCode 城市code |
| | | * @return |
| | | */ |
| | | @PostMapping("/appUser/getAppUserIds") |
| | | public List<Integer> getAppUserIds(@RequestBody String cityCode){ |
| | | List<TAppUser> list = appUserService.list(new QueryWrapper<TAppUser>().eq("cityCode", cityCode).eq("state", 1)); |
| | | return list.stream().map(TAppUser::getId).collect(Collectors.toList()); |
| | | } |
| | | } |