Commit c80caaaf authored by hujun's avatar hujun

site_id

parent 8e377ccb
...@@ -1640,7 +1640,7 @@ class OrderLogService ...@@ -1640,7 +1640,7 @@ class OrderLogService
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException * @throws \think\exception\DbException
*/ */
public function searchBargainAllAgents($order_id) public function searchBargainAllAgents($order_id, $site_id)
{ {
$orderModel = new OrderModel(); $orderModel = new OrderModel();
$field = "a.id,a.order_no,a.house_id,a.house_title,b.id as report_id,b.user_id,c.user_nick,c.user_phone, $field = "a.id,a.order_no,a.house_id,a.house_title,b.id as report_id,b.user_id,c.user_nick,c.user_phone,
...@@ -1681,6 +1681,7 @@ class OrderLogService ...@@ -1681,6 +1681,7 @@ class OrderLogService
} }
$userModel = new Users(); $userModel = new Users();
$where_user['c.site_id'] = $site_id;
$where_user["a.id"] = $result[0]["user_id"]; $where_user["a.id"] = $result[0]["user_id"];
$where_user["b.status"] = 0; $where_user["b.status"] = 0;
$user_data = $userModel->getAgentUser($field, $where_user); $user_data = $userModel->getAgentUser($field, $where_user);
......
...@@ -1812,7 +1812,7 @@ class Finance extends Basic ...@@ -1812,7 +1812,7 @@ class Finance extends Basic
try { try {
$order_service = new OrderLogService(); $order_service = new OrderLogService();
$list = $order_service->searchBargainAllAgents($params["order_id"]); $list = $order_service->searchBargainAllAgents($params["order_id"], $this->siteId);
if (count($list) > 0) { if (count($list) > 0) {
return $this->response("200", "request success", $list); return $this->response("200", "request success", $list);
} else { } else {
......
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