作者 刘锟

update

@@ -65,13 +65,13 @@ class InquiryForwardLogic extends BaseLogic @@ -65,13 +65,13 @@ 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 - //获取各个状态询盘总数 68 + //统计各个状态询盘总数
69 unset($map['status']); 69 unset($map['status']);
70 $lists['count_stat'] = [ 70 $lists['count_stat'] = [
71 - 'all_count' => $this->formatQuery($map,new InquiryInfo())->count('id'),  
72 - 'un_count' => $this->formatQuery($map,new InquiryInfo())->where('status', InquiryInfo::STATUS_INIT)->count('id'),  
73 - 'suc_count' => $this->formatQuery($map,new InquiryInfo())->where('status', InquiryInfo::STATUS_FINISH)->count('id'),  
74 - 'inv_count' => $this->formatQuery($map,new InquiryInfo())->where('status', InquiryInfo::STATUS_INVALID)->count('id'), 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(),
75 ]; 75 ];
76 76
77 return $this->success($lists); 77 return $this->success($lists);