| | |
| | | @PostMapping(value = "/chargingOrder") |
| | | @ApiOperation(value = "充电桩订单列表", tags = {"管理后台-订单管理"}) |
| | | public AjaxResult<TCharingOrderVO> chargingOrder(@RequestBody ChargingOrderQuery dto) { |
| | | List<Long> data = appUserClient.getUserIdsByPhone(dto.getPhone()).getData(); |
| | | dto.setUserIds(data); |
| | | TCharingOrderVO res = chargingOrderService.chargingOrder(dto); |
| | | return AjaxResult.success(res); |
| | | } |
| | |
| | | return chargingOrderService.paymentChargingOrder(addChargingOrder); |
| | | } |
| | | |
| | | @ResponseBody |
| | | @GetMapping(value = "/confirmIcbcPayment") |
| | | @ApiOperation(value = "主动确认工行充电支付结果", tags = {"小程序-扫一扫"}) |
| | | public AjaxResult confirmIcbcPayment(@RequestParam("orderCode") String orderCode) { |
| | | return chargingOrderService.confirmIcbcPayment(orderCode); |
| | | } |
| | | |
| | | @RequiresPermissions(value = {"/chargingPileOrder", "/paymentOrder/refund"}, logical = Logical.AND) |
| | | @PostMapping("/icbc/fund/payment-query") |
| | | @ApiOperation(value = "管理后台查询工行支付订单", tags = {"后台-充电桩订单"}) |
| | |
| | | |
| | | @ResponseBody |
| | | @GetMapping("/simulation/current") |
| | | @ApiOperation(value = "查询当前枪可模拟结算的工行订单", tags = {"小程序-模拟充电"}) |
| | | @ApiOperation(value = "查询当前枪可模拟结算的已支付订单", tags = {"小程序-模拟充电"}) |
| | | public AjaxResult<ChargingSimulationVO> getCurrentSimulationOrder(@RequestParam("gunId") Integer gunId) { |
| | | return AjaxResult.success(chargingOrderService.getCurrentSimulationOrder(gunId)); |
| | | } |