diff --git a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/controller/XhpcStatisticsController.java b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/controller/XhpcStatisticsController.java index 30bf2ec3..154bbc13 100644 --- a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/controller/XhpcStatisticsController.java +++ b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/controller/XhpcStatisticsController.java @@ -206,6 +206,22 @@ public class XhpcStatisticsController extends BaseController { return xhpcStatisticsService.getTerminalList(chargingStationId, userId, type); } + /** + * 订单来源(第三方、支付宝、微信、运营商),权限划分 + * @param chargingStationId 电站id + * @param userId 用户id + * @param type 1 平台 2 运营商 3流量方 + * @return + */ + @GetMapping("/getSourceList") + public AjaxResult getSourceList(Long chargingStationId, @RequestParam("userId") Long userId, @RequestParam("type") Integer type) { + if (type == null || type == 3) { + return AjaxResult.success(); + } + return xhpcStatisticsService.getTerminalList(chargingStationId, userId, type); + } + + // -------- 导出数据 ------------