update 后管占桩订单页面

This commit is contained in:
Lemon
2023-09-11 09:21:55 +08:00
parent 660e666f93
commit 0764ebbc43
7 changed files with 106 additions and 30 deletions

View File

@@ -934,4 +934,33 @@
status = '1', pay_status = '2'
where occupy_code = #{occupyCode,jdbcType=VARCHAR}
</update>
<select id="getOrderPileOccupyList" resultType="com.jsowell.pile.vo.web.OccupyOrderVO">
SELECT
t1.id,
t1.occupy_code AS occupyCode,
t1.STATUS,
t1.member_id AS memberId,
t1.station_id AS stationId,
t2.station_name AS stationName,
t1.start_time AS startTime,
t1.end_time AS endTime,
t1.pay_status AS payStatus,
t1.order_amount AS orderAmount,
t1.pile_sn AS pileSn,
t1.connector_code AS connectorCode
FROM
order_pile_occupy t1
JOIN pile_station_info t2 ON t1.station_id = t2.id
AND t1.del_flag = '0'
<where>
<if test="occupyCode != null and occupyCode != ''"> and t1.occupy_code = #{occupyCode}</if>
<if test="memberId != null and memberId != ''"> and t1.member_id = #{memberId}</if>
<if test="stationId != null and stationId != ''"> and t1.station_id = #{stationId}</if>
<if test="startTime != null "> and t1.start_time = #{startTime}</if>
<if test="orderAmount != null "> and t1.order_amount = #{orderAmount}</if>
<if test="pileSn != null and pileSn != ''"> and t1.pile_sn = #{pileSn}</if>
<if test="pileConnectorCode != null and pileConnectorCode != ''"> and t1.pile_connector_code = #{pileConnectorCode}</if>
</where>
</select>
</mapper>