| | |
| | | |
| | | // 根据开通城市 获取定价 |
| | | @GetMapping("/base/v1/mini-program/getPricingByCityId/{cityId}") |
| | | @XpClientCheck(checkToken = false, checkOtpToken = true) |
| | | public R<XpPricing> getPricingByCityId(@PathVariable("cityId") Long cityId) { |
| | | XpPricing pricing = xpPricingService.lambdaQuery().eq(XpPricing::getCityId, cityId).last("limit 1").one(); |
| | | return R.ok(pricing); |
| | | } |
| | | // 根据开通城市 获取定价 |
| | | @GetMapping("/inner/v1/getPricingByCid") |
| | | @GetMapping("/logan/inner/v1/getPricingByCid") |
| | | public R<XpPricing> getPricingByCid(@RequestParam Long cityId) { |
| | | XpPricing pricing = xpPricingService.lambdaQuery().eq(XpPricing::getCityId, cityId).last("limit 1").one(); |
| | | return R.ok(pricing); |
| | |
| | | |
| | | |
| | | @GetMapping("/base/v1/mini-program/pricing/rules/{openCityId}") |
| | | @XpClientCheck(checkToken = false, checkOtpToken = true) |
| | | @ApiOperation(value = "获取费用规则(弃用)", tags = {"小程序-根据开通城市获取费用规则(弃用)"}, response = String.class) |
| | | public R<?> getPricingRules(@PathVariable Long openCityId) { |
| | | XpPricing xpPricing = xpPricingService.getOne(new LambdaQueryWrapper<XpPricing>().eq(XpPricing::getCityId, openCityId).last("limit 1")); |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/base/v1/mini-program/pricing/getWaitTime") |
| | | @XpClientCheck(checkToken = false, checkOtpToken = true) |
| | | @ApiOperation(value = "获取等待时间(弃用)", tags = {"小程序-获取等待时间(弃用)"}, response = Integer.class) |
| | | public R<Integer> getWaitTime(@RequestBody LonLatDto dto) { |
| | | return R.ok(xpPricingService.getWaitTime(dto.getLongitude(), dto.getLatitude())); |
| | |
| | | * @param |
| | | * @return |
| | | */ |
| | | @PostMapping("/inner/updateXpGeoQueryEntity") |
| | | @PostMapping("/logan/inner/updateXpGeoQueryEntity") |
| | | public R<?> updateXpGeoQueryEntity(@RequestParam String orderId) { |
| | | xpGeoQueryEntityService.updateByOrderId(orderId); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/inner/deleteXpGeoQueryEntity") |
| | | @PostMapping("/logan/inner/deleteXpGeoQueryEntity") |
| | | public R<?> deleteXpGeoQueryEntity(@RequestParam String orderId){ |
| | | xpGeoQueryEntityService.deleteXpGeoQueryEntity(orderId); |
| | | return R.ok(); |