|
|
@@ -2,14 +2,16 @@ package com.kym.admin.controller;
|
|
|
|
|
|
import com.kym.common.R;
|
|
|
import com.kym.common.annotation.SysLog;
|
|
|
+import com.kym.entity.admin.Station;
|
|
|
import com.kym.service.admin.StationService;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import static com.baomidou.mybatisplus.core.toolkit.ObjectUtils.isNotNull;
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
* 充电站信息 前端控制器
|
|
|
@@ -38,6 +40,14 @@ public class StationController {
|
|
|
return R.success(response);
|
|
|
}
|
|
|
|
|
|
+ // TODO: 2023-09-01 充电站列表(站点id,站点名称,站点编号,站点类型,充电桩数量,站点状态)
|
|
|
+
|
|
|
+ @GetMapping("listStation")
|
|
|
+ R listStation(@RequestParam(required = false) String stationName) {
|
|
|
+ var res = stationService.lambdaQuery().like(isNotNull(stationName), Station::getStationName, stationName).orderByDesc(Station::getStationId).list();
|
|
|
+ return R.success(res);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 拉取EN+充电站信息数据并更新本地服务器数据
|
|
|
*
|