正在显示
1 个修改的文件
包含
15 行增加
和
0 行删除
| @@ -66,6 +66,19 @@ class InquiryForwardLogic extends BaseLogic | @@ -66,6 +66,19 @@ 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']){ | ||
| 72 | + case 1: | ||
| 73 | + $suc_count = $lists['total']; | ||
| 74 | + break; | ||
| 75 | + case 2: | ||
| 76 | + $inv_count = $lists['total']; | ||
| 77 | + break; | ||
| 78 | + default: | ||
| 79 | + $un_count = $lists['total']; | ||
| 80 | + } | ||
| 81 | + }else{ | ||
| 69 | $all_count = $this->model->counts($map); | 82 | $all_count = $this->model->counts($map); |
| 70 | $map['status'] = InquiryInfo::STATUS_INIT; | 83 | $map['status'] = InquiryInfo::STATUS_INIT; |
| 71 | $un_count = $this->model->counts($map); | 84 | $un_count = $this->model->counts($map); |
| @@ -73,6 +86,8 @@ class InquiryForwardLogic extends BaseLogic | @@ -73,6 +86,8 @@ class InquiryForwardLogic extends BaseLogic | ||
| 73 | $suc_count = $this->model->counts($map); | 86 | $suc_count = $this->model->counts($map); |
| 74 | $map['status'] = InquiryInfo::STATUS_INVALID; | 87 | $map['status'] = InquiryInfo::STATUS_INVALID; |
| 75 | $inv_count = $this->model->counts($map); | 88 | $inv_count = $this->model->counts($map); |
| 89 | + } | ||
| 90 | + | ||
| 76 | $lists['count_stat'] = [ | 91 | $lists['count_stat'] = [ |
| 77 | 'all_count' => $all_count, | 92 | 'all_count' => $all_count, |
| 78 | 'un_count' => $un_count, | 93 | 'un_count' => $un_count, |
-
请 注册 或 登录 后发表评论