Commit 2588c570 authored by hujun's avatar hujun

各种方

parent 50b475c7
...@@ -1504,22 +1504,22 @@ class OfficeOrderLogService ...@@ -1504,22 +1504,22 @@ class OfficeOrderLogService
public function searchBargainAllAgents($order_id) public function searchBargainAllAgents($order_id)
{ {
$orderModel = new OfficeOrderModel(); $orderModel = new OfficeOrderModel();
$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, $fields = "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,
c.user_pic,c.sex"; c.user_pic,c.sex";
$where_["order_id"] = $order_id; $where_["order_id"] = $order_id;
$result = $orderModel->selectOrderDetail($field, $where_); $result = $orderModel->selectOrderDetail($fields, $where_);
if (count($result) <= 0 || $result[0]["house_id"] <= 0 || $result[0]["user_id"] <= 0) { if (count($result) <= 0 || $result[0]["house_id"] <= 0 || $result[0]["user_id"] <= 0) {
return null; return null;
} }
$houseAgents = new OfficeGRoomToAgent(); $houseAgents = new OfficeGRoomToAgent();
$fields = "b.id,b.phone,b.name,a.type"; $field = "b.id,b.phone,b.name";
$where_house["a.house_id"] = $result[0]["house_id"]; $where_house["a.house_id"] = $result[0]["house_id"];
$where_house["a.type"] = ['in', '2,3']; $where_house["a.type"] = ['in', '2,3'];
$where_house["a.is_del"] = 0; $where_house["a.is_del"] = 0;
$where_house["b.status"] = 0; $where_house["b.status"] = 0;
$agent_house = $houseAgents->getAgentsByHouseId($fields, $where_house); $agent_house = $houseAgents->getAgentsByHouseId($fields.',a.type', $where_house);
$list = []; $list = [];
$key = 0; $key = 0;
......
...@@ -561,17 +561,17 @@ class OfficeBargain extends Basic ...@@ -561,17 +561,17 @@ class OfficeBargain extends Basic
return $this->response("101", "请求参数错误"); return $this->response("101", "请求参数错误");
} }
try { // try {
$order_service = new OfficeOrderLogService(); $order_service = new OfficeOrderLogService();
$list = $order_service->searchBargainAllAgents($params["order_id"]); $list = $order_service->searchBargainAllAgents($params["order_id"]);
if (count($list) > 0) { // if (count($list) > 0) {
return $this->response("200", "request success", $list); // return $this->response("200", "request success", $list);
} else { // } else {
return $this->response("200", "request null"); // return $this->response("200", "request null");
} // }
} catch (\Exception $e) { // } catch (\Exception $e) {
return $this->response("101", "request error,msg:" . $e); // return $this->response("101", "request error,msg:" . $e);
} // }
} }
/** /**
......
...@@ -1939,10 +1939,6 @@ class OfficePayLog extends Basic ...@@ -1939,10 +1939,6 @@ class OfficePayLog extends Basic
$data['code'] = 200; $data['code'] = 200;
$data['msg'] = ""; $data['msg'] = "";
$data['data'] = []; $data['data'] = [];
$pageNo = empty($this->params['pageNo']) ? 1 : $this->params['pageNo'];
$pageSize = empty($this->params['pageSize']) ? 15 : $this->params['pageSize'];
$refund = new OfficeORefundModel(); $refund = new OfficeORefundModel();
$m_house = new OfficeGRoom(); $m_house = new OfficeGRoom();
$m_store = new AStore(); $m_store = new AStore();
......
...@@ -1083,7 +1083,8 @@ Route::group('office_index', [ ...@@ -1083,7 +1083,8 @@ Route::group('office_index', [
'getPayLogData' => ['index/officePayLog/getPayLogData', ['method' => 'GET']], //收款各种详情 'getPayLogData' => ['index/officePayLog/getPayLogData', ['method' => 'GET']], //收款各种详情
'adjustmentList' => ['index/officePayLog/adjustmentList', ['method' => 'GET']], //调整列表 'adjustmentList' => ['index/officePayLog/adjustmentList', ['method' => 'GET']], //调整列表
'refundDetail' => ['index/officePayLog/refundDetail', ['method' => 'GET']], //退款详情 'refundDetail' => ['index/officePayLog/refundDetail', ['method' => 'GET']], //退款详情
'checkRefund' => ['index/officePayLog/checkRefund', ['method' => 'GET']], //退款审核 'checkRefund' => ['index/officePayLog/checkRefund', ['method' => 'POST']], //退款审核
'refundListExcel' => ['index/officePayLog/refundListExcel', ['method' => 'get']], //退款列表-导出excel
'delRefund' => ['index/officePayLog/delRefund', ['method' => 'POST']], //删除退款 'delRefund' => ['index/officePayLog/delRefund', ['method' => 'POST']], //删除退款
'refundList' => ['index/officePayLog/refundList', ['method' => 'get']], //退款列表-专员审核 'refundList' => ['index/officePayLog/refundList', ['method' => 'get']], //退款列表-专员审核
'reportListUndone/:check_status' => ['index/OfficeBargain/reportList', ['method' => 'get'], ['check_status' => 6]], //财务 成交报告-已撤销 'reportListUndone/:check_status' => ['index/OfficeBargain/reportList', ['method' => 'get'], ['check_status' => 6]], //财务 成交报告-已撤销
......
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