Commit f380f349 authored by hujun's avatar hujun

提交收款人姓名

parent 24ebd577
...@@ -79,7 +79,7 @@ class OrderLog extends Basic ...@@ -79,7 +79,7 @@ class OrderLog extends Basic
$is_ok = $this->o_march_in_model->addMarchIn($params); $is_ok = $this->o_march_in_model->addMarchIn($params);
if ($is_ok > 0) { if ($is_ok > 0) {
$pushMarchIn = new PushMessageService(); $pushMarchIn = new PushMessageService();
$pushMarchIn->pushMarchInMessage($params["report_id"], 1, $params["report_id"]); //推送 $pushMarchIn->pushMarchInMessage($params["report_id"], 1, $this->agentId); //推送
return $this->response("200", "request success", []); return $this->response("200", "request success", []);
} else { } else {
return $this->response("101", "request faild"); return $this->response("101", "request faild");
...@@ -127,7 +127,7 @@ class OrderLog extends Basic ...@@ -127,7 +127,7 @@ class OrderLog extends Basic
$oImgModel->addImgAll($insert_id, 1, $march_in_img); $oImgModel->addImgAll($insert_id, 1, $march_in_img);
$pushMarchIn = new PushMessageService(); $pushMarchIn = new PushMessageService();
$pushMarchIn->pushMarchInMessage($params["report_id"], 1, $params["report_id"]); //推送 $pushMarchIn->pushMarchInMessage($params["report_id"], 1, $this->agentId); //推送
//评价经纪人 //评价经纪人
$push_client = new PushClientService(); $push_client = new PushClientService();
......
...@@ -83,7 +83,7 @@ class PushMessageService ...@@ -83,7 +83,7 @@ class PushMessageService
{ {
$report = new OReportModel(); $report = new OReportModel();
$field = 'house_title,user_name,report_store_id,report_agent_id,a.user_id,b.house_id,b.id as order_id'; $field = 'house_title,user_name,report_store_id,report_agent_id,a.user_id,b.house_id,b.id as order_id,a.report_agent_name';
$report_data = $report->getReportOrder($field, [ 'a.id' => $report_id ]); $report_data = $report->getReportOrder($field, [ 'a.id' => $report_id ]);
$agent = new AAgents(); $agent = new AAgents();
...@@ -92,7 +92,8 @@ class PushMessageService ...@@ -92,7 +92,8 @@ class PushMessageService
$data['message'] = "客户{$report_data['user_name']}进场【{$report_data['house_title']}】商铺"; $data['message'] = "客户{$report_data['user_name']}进场【{$report_data['house_title']}】商铺";
$push_type = 5; $push_type = 5;
} else { } else {
$data['message'] = "【{$report_data['house_title']}】商铺收款"; $operation_name = $agent->getAgentsById($operation_id,'name');
$data['message'] = "{$operation_name} 提交【{$report_data['house_title']}】商铺收款";
$m_user = new Users(); $m_user = new Users();
$client_agent = $m_user->getUserByWhereValue('agent_id', ['id'=>$report_data['user_id']]); $client_agent = $m_user->getUserByWhereValue('agent_id', ['id'=>$report_data['user_id']]);
......
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