合并分支 'akun' 到 'master'
Akun 查看合并请求 !1353
正在显示
1 个修改的文件
包含
10 行增加
和
0 行删除
| @@ -65,6 +65,16 @@ class InquiryForwardLogic extends BaseLogic | @@ -65,6 +65,16 @@ class InquiryForwardLogic extends BaseLogic | ||
| 65 | public function getInquiryLists($map, $page, $row, $order = 'id', $filed = ['*']) | 65 | public function getInquiryLists($map, $page, $row, $order = 'id', $filed = ['*']) |
| 66 | { | 66 | { |
| 67 | $lists = $this->model->lists($map, $page, $row, $order, $filed); | 67 | $lists = $this->model->lists($map, $page, $row, $order, $filed); |
| 68 | + //获取各个状态询盘总数 | ||
| 69 | + unset($map['status']); | ||
| 70 | + $query = $this->formatQuery($map); | ||
| 71 | + $lists['count_stat'] = [ | ||
| 72 | + 'all_count' => $query->count('id'), | ||
| 73 | + 'un_count' => $query->where('status', InquiryInfo::STATUS_INIT)->count('id'), | ||
| 74 | + 'suc_count' => $query->where('status', InquiryInfo::STATUS_FINISH)->count('id'), | ||
| 75 | + 'inv_count' => $query->where('status', InquiryInfo::STATUS_INVALID)->count('id'), | ||
| 76 | + ]; | ||
| 77 | + | ||
| 68 | return $this->success($lists); | 78 | return $this->success($lists); |
| 69 | } | 79 | } |
| 70 | 80 |
-
请 注册 或 登录 后发表评论