| | |
| | | */ |
| | | @GetMapping("/selectPhoneByShopId") |
| | | @ApiOperation(value = "查询指定门店手机号", tags = {"小程序-首页-门店详情"}) |
| | | public R<List<Phone>> getPhoneByShopId(@ApiParam("门店id") @RequestParam Integer shopId) { |
| | | return R.ok(phoneService.list(new LambdaQueryWrapper<Phone>() |
| | | public R<Phone> getPhoneByShopId(@ApiParam("门店id") @RequestParam Integer shopId) { |
| | | Phone list = phoneService.getOne(new LambdaQueryWrapper<Phone>() |
| | | .eq(Phone::getType, PhoneType.SHOP.getCode()) |
| | | .eq(Phone::getShopId, shopId))); |
| | | .eq(Phone::getShopId, shopId)); |
| | | return R.ok(list); |
| | | } |
| | | |
| | | |