作者 郭盛
1 个管道 的构建 通过 耗费 1 秒

修改订单数量

@@ -305,11 +305,11 @@ class User extends Api @@ -305,11 +305,11 @@ class User extends Api
305 ->count(); 305 ->count();
306 $data['finish'] = Db::name('order') 306 $data['finish'] = Db::name('order')
307 ->where('user_id',$user_id) 307 ->where('user_id',$user_id)
308 - ->where('finish_status',2) 308 + ->where('finish_status',5)
309 ->count(); 309 ->count();
310 $data['after'] = Db::name('order') 310 $data['after'] = Db::name('order')
311 ->where('user_id',$user_id) 311 ->where('user_id',$user_id)
312 - ->where('finish_status',3) 312 + ->where('finish_status',4)
313 // ->where('is_complaint',1) 313 // ->where('is_complaint',1)
314 ->count(); 314 ->count();
315 }else{ 315 }else{
@@ -343,26 +343,22 @@ class User extends Api @@ -343,26 +343,22 @@ class User extends Api
343 $data['summarize'] = Db::name('order') 343 $data['summarize'] = Db::name('order')
344 ->where('teacher_id',$teacher['id']) 344 ->where('teacher_id',$teacher['id'])
345 ->where('finish_status',2) 345 ->where('finish_status',2)
346 - ->where('is_summarize',2)  
347 ->count(); 346 ->count();
348 //结算中 347 //结算中
349 $data['jiesuan'] = Db::name('order') 348 $data['jiesuan'] = Db::name('order')
350 ->where('teacher_id',$teacher['id']) 349 ->where('teacher_id',$teacher['id'])
351 - ->where('finish_status',2)  
352 - ->where('is_summarize',1)  
353 - ->where('order_status',2) 350 + ->where('finish_status',3)
354 ->count(); 351 ->count();
355 //已完成 352 //已完成
356 $data['finish'] = Db::name('order') 353 $data['finish'] = Db::name('order')
357 ->where('teacher_id',$teacher['id']) 354 ->where('teacher_id',$teacher['id'])
358 - ->where('finish_status',2)  
359 - ->where('is_summarize',1) 355 + ->where('finish_status',5)
360 ->where('order_status',1) 356 ->where('order_status',1)
361 ->count(); 357 ->count();
362 //售后 358 //售后
363 $data['after'] = Db::name('order') 359 $data['after'] = Db::name('order')
364 ->where('teacher_id',$teacher['id']) 360 ->where('teacher_id',$teacher['id'])
365 - ->where('finish_status',3) 361 + ->where('finish_status',4)
366 // ->where('is_complaint',['=',1],['=',3],'or') 362 // ->where('is_complaint',['=',1],['=',3],'or')
367 ->count(); 363 ->count();
368 } 364 }
@@ -397,11 +393,11 @@ class User extends Api @@ -397,11 +393,11 @@ class User extends Api
397 ->count(); 393 ->count();
398 $data['finish'] = Db::name('order') 394 $data['finish'] = Db::name('order')
399 ->where('user_id',$user_id) 395 ->where('user_id',$user_id)
400 - ->where('finish_status',2) 396 + ->where('finish_status',5)
401 ->count(); 397 ->count();
402 $data['after'] = Db::name('order') 398 $data['after'] = Db::name('order')
403 ->where('user_id',$user_id) 399 ->where('user_id',$user_id)
404 - ->where('finish_status',3) 400 + ->where('finish_status',4)
405 ->count(); 401 ->count();
406 $this->success('success',$data); 402 $this->success('success',$data);
407 } 403 }
@@ -9579,7 +9579,7 @@ @@ -9579,7 +9579,7 @@
9579 9579
9580 <div class="row mt0 footer"> 9580 <div class="row mt0 footer">
9581 <div class="col-md-6" align="left"> 9581 <div class="col-md-6" align="left">
9582 - Generated on 2020-03-20 16:48:31 </div> 9582 + Generated on 2020-03-20 17:52:12 </div>
9583 <div class="col-md-6" align="right"> 9583 <div class="col-md-6" align="right">
9584 <a href="https://www.fastadmin.net" target="_blank">FastAdmin</a> 9584 <a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
9585 </div> 9585 </div>