Commit 4cf84e26 authored by hujun's avatar hujun

修改成交报告推送

parent b774da51
...@@ -132,11 +132,12 @@ class OrderLogService ...@@ -132,11 +132,12 @@ class OrderLogService
array_push($agent_arr,[$commission_val["agent_id"]]); array_push($agent_arr,[$commission_val["agent_id"]]);
} }
if ($father_id > 0) { //修改楼盘 if ($father_id > 0) { //修改楼盘
$houseNumUpdateService = new HouseNumUpdateService();
$houseNumUpdateService->updateHouseNumByBargain($order_id);
$push_message = new PushMessageService(); $push_message = new PushMessageService();
$push_message->pushBargainMessage($agent_arr, $report_id); //推送 $push_message->pushBargainMessage($agent_arr, $report_id); //推送
$houseNumUpdateService = new HouseNumUpdateService();
$houseNumUpdateService->updateHouseNumByBargain($order_id);
} }
//todo if bill_arr not null, save database table //todo if bill_arr not null, save database table
if (!empty($bargain_arr)) { if (!empty($bargain_arr)) {
......
...@@ -102,7 +102,7 @@ class PushMessageService ...@@ -102,7 +102,7 @@ class PushMessageService
$report_data = $report->getReportOrder($field, [ 'a.id' => $report_id ]); $report_data = $report->getReportOrder($field, [ 'a.id' => $report_id ]);
$store = new AStore(); $store = new AStore();
$store_name = $store->getStoreKeyById('store_name'); $store_name = $store->getStoreKeyById('store_name',$report_data['report_store_id']);
$content = "恭喜【{$store_name}】店【{$report_data['report_agent_name']}】成交【{$report_data['house_title']}】商铺一套"; $content = "恭喜【{$store_name}】店【{$report_data['report_agent_name']}】成交【{$report_data['house_title']}】商铺一套";
......
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