|
@@ -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
|
}
|