| | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | import java.util.stream.Collectors; |
| | | import java.util.stream.Stream; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | |
| | | @Autowired |
| | | private ShopAuthenticationHftxService shopAuthenticationHftxService; |
| | | |
| | | |
| | | @PostMapping("/getShopIdsByUserIds") |
| | | public R<List<Long>> getShopIdsByUserIds(@RequestBody List<Long> userIds) |
| | | { |
| | | // 店铺ids |
| | | List<Long> list = shopService.list(new QueryWrapper<Shop>() |
| | | .in("belong_user_id", userIds) |
| | | .eq("del_flag", 0)) |
| | | .stream().map(Shop::getShopId).collect(Collectors.toList()); |
| | | return R.ok(list); |
| | | } |
| | | |
| | | /** |
| | | * 企业微信H5登录 |