update 电单车

This commit is contained in:
Guoqs
2024-09-23 11:41:19 +08:00
parent 9f9bb44e74
commit 16630437fb
11 changed files with 72 additions and 14 deletions

View File

@@ -2989,4 +2989,21 @@
AND t1.create_time BETWEEN #{startTime,jdbcType=VARCHAR} AND DATE_ADD(#{endTime,jdbcType=VARCHAR}, INTERVAL 1 DAY)
order by t1.create_time
</select>
<select id="queryOrdersByPileConnectorCodeAndStatus" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from order_basic_info
where del_flag = '0'
and pile_connector_code = #{pileConnectorCode,jdbcType=VARCHAR}
<if test="orderStatus != null and orderStatus != ''">
and order_status = #{orderStatus,jdbcType=VARCHAR}
</if>
<if test="payStatus != null and payStatus != ''">
and pay_status = #{payStatus,jdbcType=VARCHAR}
</if>
order by create_time DESC
limit 20
</select>
</mapper>