update 判断逻辑删除

This commit is contained in:
Guoqs
2024-06-18 10:04:06 +08:00
parent 41d297b755
commit 3c59a82a51

View File

@@ -2506,9 +2506,9 @@
t3.total_used_electricity as chargingDegree,
t4.open_id as openId
FROM order_basic_info t1
JOIN pile_station_info t2 ON t1.station_id = t2.id
join order_detail t3 on t1.order_code = t3.order_code
join member_basic_info t4 on t1.member_id = t4.member_id
JOIN pile_station_info t2 ON t1.station_id = t2.id and t1.del_flag = '0'
join order_detail t3 on t1.order_code = t3.order_code and t3.del_flag = '0'
join member_basic_info t4 on t1.member_id = t4.member_id and t4.del_flag = '0'
where t1.del_flag = '0'
and t1.order_code = #{orderCode,jdbcType=VARCHAR}
</select>