mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update 查询用户常去站点方法
This commit is contained in:
@@ -3119,22 +3119,4 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="queryUserFrequentedStation" resultType="com.jsowell.pile.domain.UserFrequentedStationInfo">
|
||||
SELECT
|
||||
t1.station_id AS stationId,
|
||||
t2.station_name AS stationName,
|
||||
COUNT(t1.id) AS chargeNum
|
||||
FROM
|
||||
order_basic_info t1
|
||||
JOIN
|
||||
pile_station_info t2 ON t1.station_id = t2.id
|
||||
WHERE
|
||||
t1.member_id = #{memberId}
|
||||
AND t1.create_time BETWEEN #{startTime} AND #{endTime}
|
||||
GROUP BY
|
||||
t1.station_id, t2.station_name
|
||||
ORDER BY
|
||||
chargeNum DESC;
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -706,4 +706,22 @@
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="queryUserFrequentedStation" resultType="com.jsowell.pile.domain.UserFrequentedStationInfo">
|
||||
SELECT
|
||||
t1.station_id AS stationId,
|
||||
t2.station_name AS stationName,
|
||||
COUNT(t1.id) AS chargeNum
|
||||
FROM
|
||||
order_basic_info t1
|
||||
JOIN
|
||||
pile_station_info t2 ON t1.station_id = t2.id
|
||||
WHERE
|
||||
t1.member_id = #{memberId}
|
||||
AND t1.create_time BETWEEN #{startTime} AND #{endTime}
|
||||
GROUP BY
|
||||
t1.station_id, t2.station_name
|
||||
ORDER BY
|
||||
chargeNum DESC;
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user