mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-21 07:39:55 +08:00
update 查询站点列表接口
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -309,13 +309,6 @@
|
|||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<delete id="deletePileStationInfoByIds" parameterType="String">
|
|
||||||
delete from pile_station_info where id in
|
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
||||||
#{id}
|
|
||||||
</foreach>
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
<select id="queryStationInfos" parameterType="com.jsowell.pile.dto.QueryStationDTO" resultType="com.jsowell.pile.vo.web.PileStationVO">
|
<select id="queryStationInfos" parameterType="com.jsowell.pile.dto.QueryStationDTO" resultType="com.jsowell.pile.vo.web.PileStationVO">
|
||||||
SELECT
|
SELECT
|
||||||
t1.id as id,
|
t1.id as id,
|
||||||
@@ -340,6 +333,10 @@
|
|||||||
t1.match_cars as matchCars,
|
t1.match_cars as matchCars,
|
||||||
t1.station_lng as stationLng,
|
t1.station_lng as stationLng,
|
||||||
t1.station_lat as stationLat,
|
t1.station_lat as stationLat,
|
||||||
|
<if test="stationDTO.stationLng != null and stationDTO.stationLng != ''">
|
||||||
|
st_distance_sphere (POINT (#{stationDTO.stationLng} , #{stationDTO.stationLat}),POINT ( t1.station_lng, t1.station_lat )) distance,
|
||||||
|
IF(t1.station_lng IS NULL OR t1.station_lat IS NULL, 1, 0) AS is_missing,
|
||||||
|
</if>
|
||||||
t1.construction,
|
t1.construction,
|
||||||
t1.business_hours as businessHours,
|
t1.business_hours as businessHours,
|
||||||
t3.organization_code as organizationCode,
|
t3.organization_code as organizationCode,
|
||||||
@@ -410,7 +407,19 @@
|
|||||||
t3.organization_code,
|
t3.organization_code,
|
||||||
t1.public_flag,
|
t1.public_flag,
|
||||||
t1.open_flag
|
t1.open_flag
|
||||||
</select>
|
<if test="stationDTO.stationLng != null and stationDTO.stationLng != ''">
|
||||||
|
ORDER BY
|
||||||
|
is_missing ASC,
|
||||||
|
distance ASC
|
||||||
|
</if>
|
||||||
|
</select>`
|
||||||
|
|
||||||
|
<delete id="deletePileStationInfoByIds" parameterType="String">
|
||||||
|
delete from pile_station_info where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
<select id="selectStationListByMerchantId" resultMap="PileStationInfoResult">
|
<select id="selectStationListByMerchantId" resultMap="PileStationInfoResult">
|
||||||
<include refid="selectPileStationInfoVo"/>
|
<include refid="selectPileStationInfoVo"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user