作者 刘锟

update

... ... @@ -66,9 +66,10 @@ 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']){
$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;
... ... @@ -78,7 +79,7 @@ class InquiryForwardLogic extends BaseLogic
default:
$un_count = $lists['total'];
}
}else{
} else {
$all_count = $this->model->counts($map);
$map['status'] = InquiryInfo::STATUS_INIT;
$un_count = $this->model->counts($map);
... ...