修复内容
This commit is contained in:
@@ -1069,6 +1069,7 @@ class OrderLogic extends LogicBase
|
||||
case 'delivery':
|
||||
$where[] = ['pay_status', '=', 1];
|
||||
$where[] = ['order_status', '=', 1];
|
||||
$where[] = ['refund_status', '=', 0];
|
||||
break;
|
||||
case 'finish':
|
||||
$where[] = ['pay_status', '=', 1];
|
||||
@@ -1133,10 +1134,10 @@ class OrderLogic extends LogicBase
|
||||
$list['goods_name']=$goods['name'];
|
||||
$list['goods_price']=$goods['min_price'];
|
||||
$number=Db::name('order_exe')->where('order_sn',$list['order_sn'])->where('staff_status',3)->count(); //查询订单服务次数
|
||||
$list['ordercs']=$number;
|
||||
$list['ordercs'] = Db::name('order_exe')->where('order_sn',$list['order_sn'])->where('staff_status','<>',3)->count(); //已预约
|
||||
$list['orderyjfw']= $list['number']-$number;
|
||||
$list['orderdaifw'] = Db::name('order_exe')->where('order_sn',$list['order_sn'])->where('staff_status',0)->count(); //待服务数量
|
||||
$list['orderfwzhon'] = Db::name('order_exe')->where('order_sn',$list['order_sn'])->where('staff_status',1)->count(); //服务中数量
|
||||
$list['orderdaifw'] = $list['number']-$number; //待预约数量
|
||||
$list['orderfwzhon'] = Db::name('order_exe')->where('order_sn',$list['order_sn'])->where('status',3)->count(); //暂停中数量
|
||||
$list['orderyiwanchen'] = Db::name('order_exe')->where('order_sn',$list['order_sn'])->where('staff_status',3)->count(); //服务已完成
|
||||
$list['showBubble']=false;
|
||||
$list['more']="更多";
|
||||
@@ -1492,13 +1493,12 @@ class OrderLogic extends LogicBase
|
||||
break;
|
||||
}
|
||||
|
||||
$count =$order->where('order_sn',$order_sn)
|
||||
->count();
|
||||
$count =$order->where($where)->count();
|
||||
|
||||
$lists = $order->where('order_sn',$order_sn)
|
||||
->where($where)
|
||||
->page($page, $size)
|
||||
->order('autotime asc')
|
||||
->orderRaw('CASE WHEN staff_status = 3 THEN 1 ELSE 0 END, autotime ASC')
|
||||
->select();
|
||||
|
||||
foreach ($lists as $list){
|
||||
@@ -1518,8 +1518,6 @@ class OrderLogic extends LogicBase
|
||||
}
|
||||
|
||||
$list['autotime']=date("Y-m-d",$list['autotime']);
|
||||
|
||||
|
||||
}
|
||||
$data = [
|
||||
'list' => $lists,
|
||||
|
||||
Reference in New Issue
Block a user