|
|
@@ -167,8 +167,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deliverySendTimeStart != null and deliverySendTimeEnd != null and deliverySendTimeStart != '' and deliverySendTimeEnd!= ''">
|
|
|
and a.delivery_send_time between CONCAT(#{deliverySendTimeStart}, ' 00:00:00') and CONCAT(#{deliverySendTimeEnd}, ' 23:59:59')
|
|
|
</if>
|
|
|
- <if test="payTimeStart != null and payTimeEnd != null and payTimeStart!='' and payTimeEnd!=''">
|
|
|
- and a.pay_time between CONCAT(#{payTimeStart}, ' 00:00:00') and CONCAT(#{payTimeEnd}, ' 23:59:59')
|
|
|
+ <if test="payStartTime != null and payEndTime != null and payStartTime!='' and payEndTime!=''">
|
|
|
+ and a.pay_time between CONCAT(#{payStartTime}, ' 00:00:00') and CONCAT(#{payEndTime}, ' 23:59:59')
|
|
|
</if>
|
|
|
<if test="finishTimeStart != null and finishTimeEnd != null and finishTimeStart != '' and finishTimeEnd!=''">
|
|
|
and a.finish_time between CONCAT(#{finishTimeStart}, ' 00:00:00') and CONCAT(#{finishTimeEnd}, ' 23:59:59')
|
|
|
@@ -457,4 +457,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND create_time < DATE_SUB(NOW(), INTERVAL 1800 MINUTE)
|
|
|
]]>
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="selectOrderCodeMapByOrderIds" resultType="java.util.HashMap">
|
|
|
+ select
|
|
|
+ order_id,
|
|
|
+ order_code
|
|
|
+ from live_order
|
|
|
+ where order_id in
|
|
|
+ <foreach collection="orderIds" item="id" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|