作者 刘锟

update

@@ -66,9 +66,10 @@ class InquiryForwardLogic extends BaseLogic @@ -66,9 +66,10 @@ class InquiryForwardLogic extends BaseLogic
66 { 66 {
67 $lists = $this->model->lists($map, $page, $row, $order, $filed); 67 $lists = $this->model->lists($map, $page, $row, $order, $filed);
68 //统计各个状态询盘总数 68 //统计各个状态询盘总数
69 - $all_count = $un_count = $suc_count = $inv_count = 0;  
70 - if(isset($map['status'])){  
71 - switch ($map['status']){ 69 + $un_count = $suc_count = $inv_count = 0;
  70 + if (isset($map['status'])) {
  71 + $all_count = $lists['total'];
  72 + switch ($map['status']) {
72 case 1: 73 case 1:
73 $suc_count = $lists['total']; 74 $suc_count = $lists['total'];
74 break; 75 break;
@@ -78,7 +79,7 @@ class InquiryForwardLogic extends BaseLogic @@ -78,7 +79,7 @@ class InquiryForwardLogic extends BaseLogic
78 default: 79 default:
79 $un_count = $lists['total']; 80 $un_count = $lists['total'];
80 } 81 }
81 - }else{ 82 + } else {
82 $all_count = $this->model->counts($map); 83 $all_count = $this->model->counts($map);
83 $map['status'] = InquiryInfo::STATUS_INIT; 84 $map['status'] = InquiryInfo::STATUS_INIT;
84 $un_count = $this->model->counts($map); 85 $un_count = $this->model->counts($map);