|
...
|
...
|
@@ -66,20 +66,9 @@ class InquiryForwardLogic extends BaseLogic |
|
|
|
{
|
|
|
|
$lists = $this->model->lists($map, $page, $row, $order, $filed);
|
|
|
|
//统计各个状态询盘总数
|
|
|
|
$un_count = $suc_count = $inv_count = 0;
|
|
|
|
if (isset($map['status'])) {
|
|
|
|
$all_count = $lists['total'];
|
|
|
|
switch ($map['status']) {
|
|
|
|
case 1:
|
|
|
|
$suc_count = $lists['total'];
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
$inv_count = $lists['total'];
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
$un_count = $lists['total'];
|
|
|
|
unset($map['status']);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$all_count = $this->model->counts($map);
|
|
|
|
$map['status'] = InquiryInfo::STATUS_INIT;
|
|
|
|
$un_count = $this->model->counts($map);
|
|
...
|
...
|
@@ -87,7 +76,6 @@ 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,
|
...
|
...
|
|