| | |
| | | } |
| | | // 根据开通城市 获取定价 |
| | | @GetMapping("/logan/inner/v1/getPricingByCid") |
| | | public R<XpPricing> getPricingByCid(@RequestParam Long cityId) { |
| | | XpPricing pricing = xpPricingService.lambdaQuery().eq(XpPricing::getCityId, cityId).last("limit 1").one(); |
| | | public R<XpPricing> getPricingByCid(@RequestParam Long cityId,@RequestParam(required = false) String vehicleModelId) { |
| | | LambdaQueryWrapper<XpPricing> queryWrapper = new LambdaQueryWrapper<>(); |
| | | queryWrapper.eq(XpPricing::getCityId, cityId); |
| | | if(null != vehicleModelId){ |
| | | queryWrapper.eq(XpPricing::getVehicleModel, vehicleModelId); |
| | | } |
| | | XpPricing pricing = xpPricingService.getOne(queryWrapper); |
| | | |
| | | return R.ok(pricing); |
| | | } |
| | | |
| | | |
| | | |
| | | @GetMapping("/base/v1/mini-program/pricing/rules/{openCityId}") |
| | | @XpClientCheck(checkToken = false, checkOtpToken = true) |
| | | @ApiOperation(value = "获取费用规则(弃用)", tags = {"小程序-根据开通城市获取费用规则(弃用)"}, response = String.class) |