|
|
@@ -3,10 +3,7 @@ package com.kym.admin.controller;
|
|
|
import com.kym.common.R;
|
|
|
import com.kym.entity.admin.queryParams.StatQueryParam;
|
|
|
import com.kym.service.miniapp.ChargeOrderService;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.ModelAttribute;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
|
* @author skyline
|
|
|
@@ -34,4 +31,15 @@ public class StatController {
|
|
|
var res = chargeOrderService.stationStat(params);
|
|
|
return R.success(res);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 站点实时数据
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping({"/stationTodayStat/{stationId}", "/stationTodayStat"})
|
|
|
+ R stationTodayStat(@PathVariable(required = false) String stationId) {
|
|
|
+ var res = chargeOrderService.stationTodayStat(stationId);
|
|
|
+ return R.success(res);
|
|
|
+ }
|
|
|
}
|