| | |
| | | import com.ruoyi.common.core.dto.ChargingPercentProvinceDto; |
| | | import com.ruoyi.common.core.web.domain.AjaxResult; |
| | | import com.ruoyi.order.api.dto.ChargingStatisticeDTO; |
| | | import com.ruoyi.order.api.dto.DeviceStartChargingDTO; |
| | | import com.ruoyi.order.api.factory.ChargingOrderFallbackFactory; |
| | | import com.ruoyi.order.api.model.AddTripartitePlatformOrder; |
| | | import com.ruoyi.order.api.model.ChargingListQuery; |
| | |
| | | */ |
| | | @PostMapping(value = "/t-charging-order/getOrderByCode/{code}") |
| | | R<TChargingOrder> getOrderByCode(@PathVariable("code") String code); |
| | | |
| | | /** |
| | | * 根据订单编号前缀将握手 VIN 写入对应订单表 |
| | | */ |
| | | @PostMapping(value = "/t-charging-order/updateHandshakeVin") |
| | | R<Boolean> updateHandshakeVin(@RequestParam("orderCode") String orderCode, |
| | | @RequestParam("vin") String vin); |
| | | |
| | | |
| | | /** |
| | |
| | | R<BigDecimal> getSumDegreeBySiteIds(@RequestParam("siteIds") List<Integer> SiteIds); |
| | | |
| | | /** |
| | | * 充电桩大屏 获取站点集合中累计充电量(已结束+已支付订单口径, 与 large-screen/summary 一致) |
| | | */ |
| | | @GetMapping("/t-charging-order/getLargeScreenTotalCapacity") |
| | | R<BigDecimal> getLargeScreenTotalCapacity(@RequestParam("siteIds") List<Integer> siteIds); |
| | | |
| | | /** |
| | | * 查询指定站点中实际发生过充电的用户ID |
| | | */ |
| | | @PostMapping("/t-charging-order/getAppUserIdsBySiteIds") |
| | | R<List<Long>> getAppUserIdsBySiteIds(@RequestBody List<Integer> siteIds); |
| | | |
| | | @PostMapping("/t-vin-charging-order/inner/charging-status") |
| | | R<List<VinChargingStatusVO>> getChargingVinStatus(@RequestBody List<Long> vinIds); |
| | | |
| | | |
| | | // /** |
| | |
| | | */ |
| | | @PostMapping("/t-charging-order/addChargingOrder") |
| | | R<Long> addChargingOrder(@RequestBody TChargingOrder chargingOrder); |
| | | |
| | | /** |
| | | * 设备主动发起充电(刷卡/VIN码)鉴权建单 |
| | | * @param dto 启动鉴权请求(桩编码、枪编号、启动方式、账户、卡密码) |
| | | * @return 鉴权结果(含订单编号与失败原因) |
| | | */ |
| | | @PostMapping("/t-charging-order/inner/device-start-charging") |
| | | R<DeviceStartChargingVO> deviceStartCharging(@RequestBody DeviceStartChargingDTO dto); |
| | | |
| | | /** |
| | | * 统计公司名下进行中的充电订单数(三表合计,状态 2=启动中/3=充电中/4=停止中, |
| | | * 账户模式切换:分配→共享 前校验使用) |
| | | * |
| | | * @param companyId 所属公司ID |
| | | * @return 进行中订单数 |
| | | */ |
| | | @PostMapping("/t-charging-order/inner/count-active-by-company") |
| | | R<Integer> countActiveByCompany(@RequestParam("companyId") Integer companyId); |
| | | } |