新增 查询占桩订单详情接口

This commit is contained in:
Lemon
2023-08-19 10:17:09 +08:00
parent 7b1b6e8405
commit 85a5ee66d8
5 changed files with 91 additions and 3 deletions

View File

@@ -866,4 +866,24 @@
and connector_code = #{connectorCode,jdbcType=VARCHAR}
order by create_time DESC
</select>
<select id="getOccupyOrderDetail" resultType="com.jsowell.pile.vo.uniapp.OccupyOrderDetailVO">
SELECT
t1.occupy_code AS occupyCode,
t1.STATUS AS orderStatus,
t1.station_id AS stationId,
t2.station_name AS stationName,
t2.merchant_id AS merchantId,
t3.merchant_name AS merchantName,
t1.start_time AS startTime,
t1.end_time AS endTime,
t1.pay_status AS payStatus,
t1.order_amount AS orderAmount
FROM
order_pile_occupy t1
LEFT JOIN pile_station_info t2 ON t1.station_id = t2.id
LEFT JOIN pile_merchant_info t3 ON t2.merchant_id = t3.id
WHERE
t1.occupy_code = #{occupyCode,jdbcType=VARCHAR}
</select>
</mapper>