|
...
|
...
|
@@ -65,6 +65,16 @@ class InquiryForwardLogic extends BaseLogic |
|
|
|
public function getInquiryLists($map, $page, $row, $order = 'id', $filed = ['*'])
|
|
|
|
{
|
|
|
|
$lists = $this->model->lists($map, $page, $row, $order, $filed);
|
|
|
|
//获取各个状态询盘总数
|
|
|
|
unset($map['status']);
|
|
|
|
$query = $this->formatQuery($map);
|
|
|
|
$lists['count_stat'] = [
|
|
|
|
'all_count' => $query->count('id'),
|
|
|
|
'un_count' => $query->where('status', InquiryInfo::STATUS_INIT)->count('id'),
|
|
|
|
'suc_count' => $query->where('status', InquiryInfo::STATUS_FINISH)->count('id'),
|
|
|
|
'inv_count' => $query->where('status', InquiryInfo::STATUS_INVALID)->count('id'),
|
|
|
|
];
|
|
|
|
|
|
|
|
return $this->success($lists);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|