| | |
| | | private TokenService tokenService; |
| | | |
| | | |
| | | |
| | | @PostMapping("/getDetailById") |
| | | public R<Shop> getDetailById(@RequestParam("id") Long id){ |
| | | Shop byId = shopService.getById(id); |
| | |
| | | Shop one = shopService.getOne(new LambdaQueryWrapper<Shop>().eq(Shop::getPhone, phone).eq(Shop::getDelFlag, 0).eq(Shop::getStatus, 1)); |
| | | return R.ok(one); |
| | | } |
| | | |
| | | @PostMapping("/getShopByUserIds") |
| | | public R<List<Shop>> getShopByUserIds(@RequestBody List<Long> userIds){ |
| | | List<Shop> list = shopService.list(new LambdaQueryWrapper<Shop>().in(Shop::getAppUserId, userIds)); |
| | | return R.ok(list); |
| | | } |
| | | |
| | | } |
| | | |