| | |
| | | * 根据管理员id获取详情信息 |
| | | */ |
| | | @RequestMapping("/cityManager/getStoreById") |
| | | public CityManager getStoreById(@RequestParam Integer id){ |
| | | return cityManagerService.getOne(new QueryWrapper<CityManager>().eq("id",id)); |
| | | public CityManager getStoreById(@RequestParam Integer id) { |
| | | return cityManagerService.getOne(new QueryWrapper<CityManager>().eq("id", id)); |
| | | } |
| | | |
| | | /** |
| | | * 获取已有城市管理的省、市 |
| | | */ |
| | | @ResponseBody |
| | | @RequestMapping("/cityManager/listAll") |
| | | public List<CityManager> listAll(){ |
| | | public List<CityManager> listAll() { |
| | | return cityManagerService.listAll(); |
| | | } |
| | | |
| | | /** |
| | | * 选择省 展示市 |
| | | */ |
| | | @RequestMapping("/cityManager/getCity") |
| | | @ResponseBody |
| | | public List<CityManager> getCity(@RequestBody String province){ |
| | | public List<CityManager> getCity(@RequestBody String province) { |
| | | List<CityManager> province1 = cityManagerService.list(new QueryWrapper<CityManager>().eq("province", province)); |
| | | List<CityManager> distinctCities = province1.stream() |
| | | .collect(Collectors.collectingAndThen( |
| | |
| | | */ |
| | | @RequestMapping("/cityManager/getAccount") |
| | | @ResponseBody |
| | | public List<CityManager> getAccount(@RequestBody String city){ |
| | | return cityManagerService.list(new QueryWrapper<CityManager>().eq("city",city).ne("state",2).ne("state",3)); |
| | | public List<CityManager> getAccount(@RequestBody String city) { |
| | | return cityManagerService.list(new QueryWrapper<CityManager>().eq("city", city).ne("state", 2).ne("state", 3)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据id获取数据 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/cityManager/queryCityManagerById") |
| | | public CityManager queryCityManagerById(@RequestBody Integer id){ |
| | | public CityManager queryCityManagerById(@RequestBody Integer id) { |
| | | return cityManagerService.getById(id); |
| | | } |
| | | |