新增 宁夏交投 相关service方法

This commit is contained in:
Lemon
2023-11-14 14:06:50 +08:00
parent 7b0b094211
commit 9d79c635ec
10 changed files with 108 additions and 21 deletions

View File

@@ -1217,17 +1217,25 @@
and t1.pay_mode = '4'
</select>
<select id="getOrderInfoByLicensePlateNumber" resultType="com.jsowell.pile.vo.uniapp.OrderVO">
<select id="getOrderInfoByNXJT" resultType="com.jsowell.pile.vo.uniapp.OrderVO">
SELECT
t1.charge_start_time AS startTime,
t1.station_id AS stationId,
t2.station_name AS stationName,
t1.plate_number as licensePlateNumber,
t1.order_amount AS orderAmount
FROM
order_basic_info t1
JOIN pile_station_info t2 ON t1.station_id = t2.id
AND t1.del_flag = '0'
where
t1.plate_number = #{licensePlateNumber,jdbcType=VARCHAR}
WHERE t1.del_flag = '0'
<if test="licensePlateNumber != null and licensePlateNumber != ''">
AND t1.plate_number = #{licensePlateNumber,jdbcType=VARCHAR}
</if>
<if test="startTime != null and startTime != ''">
AND t1.create_time <![CDATA[ >= ]]> #{startTime,jdbcType=VARCHAR}
</if>
<if test="endTime != null and endTime != ''">
AND t1.create_time <![CDATA[ <= ]]> #{endTime,jdbcType=VARCHAR}
</if>
</select>
</mapper>