正在显示
1 个修改的文件
包含
11 行增加
和
5 行删除
| @@ -66,12 +66,18 @@ class InquiryForwardLogic extends BaseLogic | @@ -66,12 +66,18 @@ 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 | - unset($map['status']); | 69 | + $all_count = $this->model->counts($map); |
| 70 | + $map['status'] = InquiryInfo::STATUS_INIT; | ||
| 71 | + $un_count = $this->model->counts($map); | ||
| 72 | + $map['status'] = InquiryInfo::STATUS_FINISH; | ||
| 73 | + $suc_count = $this->model->counts($map); | ||
| 74 | + $map['status'] = InquiryInfo::STATUS_INVALID; | ||
| 75 | + $inv_count = $this->model->counts($map); | ||
| 70 | $lists['count_stat'] = [ | 76 | $lists['count_stat'] = [ |
| 71 | - 'all_count' => $this->formatQuery($map,new InquiryInfo())->count(), | ||
| 72 | - 'un_count' => $this->formatQuery($map,new InquiryInfo())->where('status', InquiryInfo::STATUS_INIT)->count(), | ||
| 73 | - 'suc_count' => $this->formatQuery($map,new InquiryInfo())->where('status', InquiryInfo::STATUS_FINISH)->count(), | ||
| 74 | - 'inv_count' => $this->formatQuery($map,new InquiryInfo())->where('status', InquiryInfo::STATUS_INVALID)->count(), | 77 | + 'all_count' => $all_count, |
| 78 | + 'un_count' => $un_count, | ||
| 79 | + 'suc_count' => $suc_count, | ||
| 80 | + 'inv_count' => $inv_count, | ||
| 75 | ]; | 81 | ]; |
| 76 | 82 | ||
| 77 | return $this->success($lists); | 83 | return $this->success($lists); |
-
请 注册 或 登录 后发表评论