技师订单列表

This commit is contained in:
曹磊 2024-07-09 21:20:25 +08:00
parent 79cfdc9358
commit 9ba7adad05
1 changed files with 3 additions and 3 deletions

View File

@ -666,7 +666,7 @@
LEFT JOIN bl_user_package_detail bl ON bl.id = om.massage_id LEFT JOIN bl_user_package_detail bl ON bl.id = om.massage_id
where o.artificer_id = #{artificerId} where o.artificer_id = #{artificerId}
and o.old_orders_id is not null and o.old_orders_id is not null
and o1.status not in (4,11,15) and o.status not in (4,11,15)
<if test="type==1"> <if test="type==1">
and date_format(o.serve_time,'%Y-%m-%d %H:%i') >= date_format(DATE_ADD(now(), INTERVAL -12 HOUR),'%Y-%m-%d %H:%i') and date_format(o.serve_time,'%Y-%m-%d %H:%i') >= date_format(DATE_ADD(now(), INTERVAL -12 HOUR),'%Y-%m-%d %H:%i')
and date_format(o.serve_time,'%Y-%m-%d %H:%i') &lt;= date_format(DATE_ADD(now(), INTERVAL 24 HOUR),'%Y-%m-%d %H:%i') and date_format(o.serve_time,'%Y-%m-%d %H:%i') &lt;= date_format(DATE_ADD(now(), INTERVAL 24 HOUR),'%Y-%m-%d %H:%i')
@ -714,12 +714,12 @@
LEFT JOIN bl_user_package_detail bl ON bl.id = om.massage_id LEFT JOIN bl_user_package_detail bl ON bl.id = om.massage_id
where o.artificer_id = #{artificerId} where o.artificer_id = #{artificerId}
and o.parent_id = 0 and o.parent_id = 0
and o1.orders_id not in ( and o.orders_id not in (
select orders_id from orders select orders_id from orders
where old_orders_id is not null where old_orders_id is not null
and status != 4 and status != 4
) )
and o1.orders_id not in ( and o.orders_id not in (
select old_orders_id from orders select old_orders_id from orders
where old_orders_id is not null where old_orders_id is not null
and status != 4 and status != 4