Commit a5854bdf authored by zhuwei's avatar zhuwei

业绩排行榜-成交单数接口加成交报告ID

parent d2b2d295
......@@ -885,10 +885,11 @@ class PerformanceService
if (!$params)
return [ "code" => 101, "date" => "传入的参数错误" ];
$field = "a.id,a.create_time,a.trade_type,a.scale_fee,a.agent_id,c.internal_address,d.user_phone,d.user_name,b.id as order_id";
$field = "a.id,a.father_id,a.create_time,a.trade_type,a.scale_fee,a.agent_id,c.internal_address,d.user_phone,d.user_name,b.id as order_id";
$m_bargain = new OBargainModel();
$list = $m_bargain->getBargainSumList($field, $params, $page_size, $page_no, $request_source_type);
foreach ($list as $key => $val) {
$list[$key]['bargain_id'] = $val["father_id"] == 0 ? $val["id"] : $val["father_id"];//成交报告ID
$list[$key]["internal_address"] = $val["internal_address"] ? $val["internal_address"] : '';
$list[$key]["user_name"] = $val["user_name"] ? $val["user_name"] : '';
$list[$key]["user_phone"] = preg_replace('/(\d{3})\d{4}(\d{4})/', '$1****$2', $val["user_phone"]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment