作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !1359
... ... @@ -65,12 +65,23 @@ class InquiryForwardLogic extends BaseLogic
public function getInquiryLists($map, $page, $row, $order = 'id', $filed = ['*'])
{
$lists = $this->model->lists($map, $page, $row, $order, $filed);
//获取各个状态询盘总数
//统计各个状态询盘总数
if (isset($map['status'])) {
unset($map['status']);
}
$all_count = $this->model->counts($map);
$map['status'] = InquiryInfo::STATUS_INIT;
$un_count = $this->model->counts($map);
$map['status'] = InquiryInfo::STATUS_FINISH;
$suc_count = $this->model->counts($map);
$map['status'] = InquiryInfo::STATUS_INVALID;
$inv_count = $this->model->counts($map);
$lists['count_stat'] = [
'all_count' => 0,
'un_count' => 0,
'suc_count' => 0,
'inv_count' => 0,
'all_count' => $all_count,
'un_count' => $un_count,
'suc_count' => $suc_count,
'inv_count' => $inv_count,
];
return $this->success($lists);
... ...