|
...
|
...
|
@@ -66,6 +66,19 @@ class InquiryForwardLogic extends BaseLogic |
|
|
|
{
|
|
|
|
$lists = $this->model->lists($map, $page, $row, $order, $filed);
|
|
|
|
//统计各个状态询盘总数
|
|
|
|
$all_count = $un_count = $suc_count = $inv_count = 0;
|
|
|
|
if(isset($map['status'])){
|
|
|
|
switch ($map['status']){
|
|
|
|
case 1:
|
|
|
|
$suc_count = $lists['total'];
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
$inv_count = $lists['total'];
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
$un_count = $lists['total'];
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
$all_count = $this->model->counts($map);
|
|
|
|
$map['status'] = InquiryInfo::STATUS_INIT;
|
|
|
|
$un_count = $this->model->counts($map);
|
|
...
|
...
|
@@ -73,6 +86,8 @@ class InquiryForwardLogic extends BaseLogic |
|
|
|
$suc_count = $this->model->counts($map);
|
|
|
|
$map['status'] = InquiryInfo::STATUS_INVALID;
|
|
|
|
$inv_count = $this->model->counts($map);
|
|
|
|
}
|
|
|
|
|
|
|
|
$lists['count_stat'] = [
|
|
|
|
'all_count' => $all_count,
|
|
|
|
'un_count' => $un_count,
|
...
|
...
|
|