|
@@ -531,6 +531,13 @@
|
|
<if test="businessId != null and businessId != ''">
|
|
<if test="businessId != null and businessId != ''">
|
|
AND g.business_id = #{businessId}
|
|
AND g.business_id = #{businessId}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="serviceCheck != null and serviceCheck != '' and serviceCheck == 1">
|
|
|
|
+ AND UNIX_TIMESTAMP(NOW()) >= og.service_start_time
|
|
|
|
+ AND UNIX_TIMESTAMP(NOW()) <= og.service_end_time
|
|
|
|
+ </if>
|
|
|
|
+ <if test="serviceCheck != null and serviceCheck != '' and serviceCheck == 2">
|
|
|
|
+ AND UNIX_TIMESTAMP(NOW()) > og.service_end_time
|
|
|
|
+ </if>
|
|
UNION
|
|
UNION
|
|
SELECT
|
|
SELECT
|
|
g.*,
|
|
g.*,
|
|
@@ -572,6 +579,13 @@
|
|
</if>
|
|
</if>
|
|
<if test="businessId != null and businessId != ''">
|
|
<if test="businessId != null and businessId != ''">
|
|
AND g.business_id = #{businessId}
|
|
AND g.business_id = #{businessId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="serviceCheck != null and serviceCheck != '' and serviceCheck == 1">
|
|
|
|
+ AND UNIX_TIMESTAMP(NOW()) >= og.service_start_time
|
|
|
|
+ AND UNIX_TIMESTAMP(NOW()) <= og.service_end_time
|
|
|
|
+ </if>
|
|
|
|
+ <if test="serviceCheck != null and serviceCheck != '' and serviceCheck == 2">
|
|
|
|
+ AND UNIX_TIMESTAMP(NOW()) > og.service_end_time
|
|
</if>
|
|
</if>
|
|
)un ORDER BY un.order_create_time DESC
|
|
)un ORDER BY un.order_create_time DESC
|
|
|
|
|