Commit d43e22b2 authored by zw's avatar zw

客户动态商铺标题显示前三个

parent b5a788e2
...@@ -517,8 +517,8 @@ class OrderLogService ...@@ -517,8 +517,8 @@ class OrderLogService
//报备 //报备
foreach ($reportData as $k => $v) { foreach ($reportData as $k => $v) {
$v["step_name"] = "report"; $v["step_name"] = "report";
$house_title = substr($v['house_title'],0,2)."***"; $house_title = mb_substr($v['house_title'],0,3,'utf-8')."***";
$v["step"] = "报备【" . $house_title . "】"; $v["step"] = "报备【" . $house_title . "】";
$result[$sort++] = $v; $result[$sort++] = $v;
$order_ids .= $v["order_id"] . ","; $order_ids .= $v["order_id"] . ",";
...@@ -539,11 +539,12 @@ class OrderLogService ...@@ -539,11 +539,12 @@ class OrderLogService
if (count($marchInData) > 0) { if (count($marchInData) > 0) {
foreach ($marchInData as $k => $v) { foreach ($marchInData as $k => $v) {
$v["step_name"] = "march_in"; $v["step_name"] = "march_in";
$house_title = substr($v['house_title'],0,2)."***"; $house_title = mb_substr($v['house_title'],0,3,'utf-8')."***";
$v["step"] = "进场【" . $house_title . "】"; $v["step"] = "进场【" . $house_title . "】";
$result[$sort++] = $v; $result[$sort++] = $v;
} }
} }
//跟进 //跟进
$field_follow_up = "a.id,a.agent_id,a.agent_name,a.user_type,a.decision_maker,a.industry_type,a.area_requirement,a.price_requirement,a.province,a.city, $field_follow_up = "a.id,a.agent_id,a.agent_name,a.user_type,a.decision_maker,a.industry_type,a.area_requirement,a.price_requirement,a.province,a.city,
a.district,a.business_area,a.explain,a.explain_img,a.create_time,b.name,b.img,c.store_name"; a.district,a.business_area,a.explain,a.explain_img,a.create_time,b.name,b.img,c.store_name";
...@@ -567,7 +568,7 @@ class OrderLogService ...@@ -567,7 +568,7 @@ class OrderLogService
if (count($payLogData) > 0) { if (count($payLogData) > 0) {
foreach ($payLogData as $k => $v) { foreach ($payLogData as $k => $v) {
$v["step_name"] = "pay_log"; $v["step_name"] = "pay_log";
$house_title = substr($v['house_title'],0,2)."***"; $house_title = mb_substr($v['house_title'],0,3,'utf-8')."***";
$v["step"] = "收款【" . $house_title . "】"; $v["step"] = "收款【" . $house_title . "】";
$result[$sort++] = $v; $result[$sort++] = $v;
} }
...@@ -581,7 +582,7 @@ class OrderLogService ...@@ -581,7 +582,7 @@ class OrderLogService
if (count($refundData) > 0) { if (count($refundData) > 0) {
foreach ($refundData as $k => $v) { foreach ($refundData as $k => $v) {
$v["step_name"] = "refund"; $v["step_name"] = "refund";
$house_title = substr($v['house_title'],0,2)."***"; $house_title = mb_substr($v['house_title'],0,3,'utf-8')."***";
$v["step"] = "退款【" . $house_title . "】"; $v["step"] = "退款【" . $house_title . "】";
$result[$sort++] = $v; $result[$sort++] = $v;
} }
...@@ -593,12 +594,13 @@ class OrderLogService ...@@ -593,12 +594,13 @@ class OrderLogService
if (count($bargainData) > 0) { if (count($bargainData) > 0) {
foreach ($bargainData as $k => $v) { foreach ($bargainData as $k => $v) {
$v["step_name"] = "bargain"; $v["step_name"] = "bargain";
$house_title = substr($v['house_title'],0,2)."***"; $house_title = mb_substr($v['house_title'],0,3,'utf-8')."***";
$v["step"] = "成交报告【" . $house_title . "】"; $v["step"] = "成交报告【" . $house_title . "】";
$result[$sort++] = $v; $result[$sort++] = $v;
} }
} }
dump($result);
exit;
return $this->sortByTime($result); return $this->sortByTime($result);
} }
......
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