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