|
@@ -263,7 +263,7 @@ class Lessonorder extends Backend
|
|
|
->where('order.slot_id',$lesson_order['slot_id'])->where('order.jointype',2)->where('order.order_status',0)->order('order.id asc')->select();
|
|
|
|
|
|
//有多少个空位
|
|
|
- $pay_number = Db::name('lesson_order')->where('slot_id',$lesson_order['slot_id'])->where('order.jointype',1)->where('order_status',10)->sum('usernumber');
|
|
|
+ $pay_number = Db::name('lesson_order')->where('slot_id',$lesson_order['slot_id'])->where('jointype',1)->where('order_status',10)->sum('usernumber');
|
|
|
$num_remain = $slot['num_max'] - $pay_number;
|
|
|
|
|
|
$coach_name = Db::name('coach')->where('id',$slot['coach_ids'])->value('nickname');
|