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