mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-12 19:29:52 +08:00
update 首页地图显示站点数量-->显示枪口数量
This commit is contained in:
@@ -68,7 +68,7 @@ import java.util.concurrent.TimeUnit;
|
|||||||
/**
|
/**
|
||||||
* 专用处理汇付支付相关
|
* 专用处理汇付支付相关
|
||||||
*/
|
*/
|
||||||
@ActiveProfiles("sit")
|
@ActiveProfiles("dev")
|
||||||
@SpringBootTest(classes = JsowellApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
@SpringBootTest(classes = JsowellApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||||
@RunWith(SpringRunner.class)
|
@RunWith(SpringRunner.class)
|
||||||
public class PaymentTestController {
|
public class PaymentTestController {
|
||||||
|
|||||||
@@ -23,4 +23,9 @@ public class StationMapVO {
|
|||||||
* 纬度
|
* 纬度
|
||||||
*/
|
*/
|
||||||
private String stationLat;
|
private String stationLat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 充电枪口数量
|
||||||
|
*/
|
||||||
|
private Integer connectorCount;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -760,15 +760,23 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getStationMapData" resultType="com.jsowell.pile.vo.web.StationMapVO">
|
<select id="getStationMapData" resultType="com.jsowell.pile.vo.web.StationMapVO">
|
||||||
select station_name as stationName,
|
select s.station_name as stationName,
|
||||||
station_lng as stationLng,
|
s.station_lng as stationLng,
|
||||||
station_lat as stationLat
|
s.station_lat as stationLat,
|
||||||
from pile_station_info
|
COALESCE(c.connector_count, 0) as connectorCount
|
||||||
where del_flag = '0'
|
from pile_station_info s
|
||||||
and station_lng is not null
|
left join (
|
||||||
and station_lat is not null
|
select p.station_id, count(*) as connector_count
|
||||||
and station_lng != ''
|
from pile_basic_info p
|
||||||
and station_lat != ''
|
inner join pile_connector_info c on p.sn = c.pile_sn and c.del_flag = '0'
|
||||||
|
where p.del_flag = '0'
|
||||||
|
group by p.station_id
|
||||||
|
) c on s.id = c.station_id
|
||||||
|
where s.del_flag = '0'
|
||||||
|
and s.station_lng is not null
|
||||||
|
and s.station_lat is not null
|
||||||
|
and s.station_lng != ''
|
||||||
|
and s.station_lat != ''
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getCityDeviceCount" resultType="com.jsowell.pile.vo.web.CityDeviceCountVO">
|
<select id="getCityDeviceCount" resultType="com.jsowell.pile.vo.web.CityDeviceCountVO">
|
||||||
|
|||||||
Reference in New Issue
Block a user