update 查询站点列表接口

This commit is contained in:
Guoqs
2024-05-15 11:32:08 +08:00
parent fb8f69ab9e
commit 659818ed43
2 changed files with 373 additions and 7532 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -309,13 +309,6 @@
where id = #{id}
</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
t1.id as id,
@@ -340,6 +333,10 @@
t1.match_cars as matchCars,
t1.station_lng as stationLng,
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.business_hours as businessHours,
t3.organization_code as organizationCode,
@@ -410,7 +407,19 @@
t3.organization_code,
t1.public_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">
<include refid="selectPileStationInfoVo"/>