lizhen_gitee 3 months ago
parent
commit
102be8b14f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/admin/controller/Lessonorder.php

+ 1 - 1
application/admin/controller/Lessonorder.php

@@ -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');