合并分支 'akun' 到 'master'
Akun 查看合并请求 !1354
正在显示
1 个修改的文件
包含
4 行增加
和
6 行删除
| @@ -66,13 +66,11 @@ class InquiryForwardLogic extends BaseLogic | @@ -66,13 +66,11 @@ 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']); | ||
| 70 | - $query = $this->formatQuery($map); | ||
| 71 | $lists['count_stat'] = [ | 69 | $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'), | 70 | + 'all_count' => 0, |
| 71 | + 'un_count' => 0, | ||
| 72 | + 'suc_count' => 0, | ||
| 73 | + 'inv_count' => 0, | ||
| 76 | ]; | 74 | ]; |
| 77 | 75 | ||
| 78 | return $this->success($lists); | 76 | return $this->success($lists); |
-
请 注册 或 登录 后发表评论