Commit d138c365 authored by clone's avatar clone

bug

parent 7684bcc6
<?php <?php
namespace app\api\controller;
/** /**
* Created by PhpStorm. * Created by PhpStorm.
* User : zw * User : zw
...@@ -6,7 +7,7 @@ ...@@ -6,7 +7,7 @@
* Time : 15:16 * Time : 15:16
* Intro: c端首页资源 月均价 上周成交量 * Intro: c端首页资源 月均价 上周成交量
*/ */
namespace app\api\controller;
use app\api\extend\Basic; use app\api\extend\Basic;
use app\model\GHouses; use app\model\GHouses;
......
...@@ -235,7 +235,7 @@ class Broker extends Basic ...@@ -235,7 +235,7 @@ class Broker extends Basic
header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Origin:*');
$params = $this->params; $params = $this->params;
/* $params = array( /* $params = array(
"user_id" => 8738 "user_id" => 828
);*/ );*/
if (!isset($params['user_id'])) { if (!isset($params['user_id'])) {
...@@ -291,8 +291,8 @@ class Broker extends Basic ...@@ -291,8 +291,8 @@ class Broker extends Basic
*/ */
public function userStateSearch(){ public function userStateSearch(){
$params = $this->params; $params = $this->params;
/* $params = array( /* $params = array(
"user_id" => 1, "user_id" => 828,
"keyword" => "asdfas" "keyword" => "asdfas"
);*/ );*/
if(!isset($params["user_id"]) || !isset($params["keyword"])){ if(!isset($params["user_id"]) || !isset($params["keyword"])){
......
...@@ -49,16 +49,16 @@ class OrderLog extends Basic ...@@ -49,16 +49,16 @@ class OrderLog extends Basic
return $this->response("101", "请求参数错误"); return $this->response("101", "请求参数错误");
} }
/* $params = array( /* $params = array(
"reception_id" => 1,//带看经纪人id "reception_id" => 10010,//带看经纪人id
"reception_name" => 1,//带看经纪人id "reception_name" => 1,//带看经纪人id
"report_id" => 1,//报备id "report_id" => 1,//报备id
"order_id" =>1, //关联order表id "order_id" => 1, //关联order表id
"order_no" =>"123123123123123", //订单no "order_no" => "123123123123123", //订单no
"march_in_remark" =>"有意向购买", //进场备注 "march_in_remark" => "有意向购买", //进场备注
"march_in_img" =>"123123", //备注图片 "march_in_img" => "123123", //备注图片
"march_in_area" =>"上海市虹口区中山公园", //进场地址 "march_in_area" => "上海市虹口区中山公园", //进场地址
);*/ );*/
// $params["reception_id"] = $this->agentName; // $params["reception_id"] = $this->agentName;
...@@ -118,7 +118,7 @@ class OrderLog extends Basic ...@@ -118,7 +118,7 @@ class OrderLog extends Basic
$remark = isset($params["remark"]) ? $params["remark"] : ""; $remark = isset($params["remark"]) ? $params["remark"] : "";
$transfer_img = isset($params["transfer_img"]) ? $params["transfer_img"] : ""; $transfer_img = isset($params["transfer_img"]) ? $params["transfer_img"] : "";
$is_ok = $this->service_->addCollectingBill($params["agent_id"],$params["agent_name"], $params["report_id"], $params["order_id"], $params["order_no"], $is_ok = $this->service_->addCollectingBill($params["agent_id"], $params["agent_name"], $params["report_id"], $params["order_id"], $params["order_no"],
$params["collecting_bill"], $params["house_number"], $params["industry_type"], $remark, $transfer_img); $params["collecting_bill"], $params["house_number"], $params["industry_type"], $remark, $transfer_img);
if ($is_ok > 0) { if ($is_ok > 0) {
...@@ -245,10 +245,10 @@ class OrderLog extends Basic ...@@ -245,10 +245,10 @@ class OrderLog extends Basic
if (!isset($params["order_id"])) { if (!isset($params["order_id"])) {
return $this->response("101", "请求参数错误"); return $this->response("101", "请求参数错误");
} }
/* $params = array( /* $params = array(
"order_id" => 53670, "order_id" => 53670,
);*/ );*/
$data = $this->service_->selectListByOrderNo($params["order_id"]); $data = $this->service_->selectListByOrderNo($params["order_id"]);
return $this->response("200", "request success", $data); return $this->response("200", "request success", $data);
} }
...@@ -291,11 +291,11 @@ class OrderLog extends Basic ...@@ -291,11 +291,11 @@ class OrderLog extends Basic
public function searchOrder() public function searchOrder()
{ {
$params = $this->params; $params = $this->params;
/* $params = array( /* $params = array(
"type" => 4, //0.客户电话 1.客户姓名 2.报备人电话 3.报备人姓名 4.商铺名称 5.商铺地址 "type" => 4, //0.客户电话 1.客户姓名 2.报备人电话 3.报备人姓名 4.商铺名称 5.商铺地址
"agent_id" => 10031, "agent_id" => 10031,
"search_keyword" => "小" "search_keyword" => "小"
);*/ );*/
if (!isset($params["type"]) || !isset($params["agent_id"]) || !isset($params["search_keyword"])) { if (!isset($params["type"]) || !isset($params["agent_id"]) || !isset($params["search_keyword"])) {
return $this->response("101", "请求参数错误"); return $this->response("101", "请求参数错误");
} }
...@@ -378,33 +378,33 @@ class OrderLog extends Basic ...@@ -378,33 +378,33 @@ class OrderLog extends Basic
* 搜索我的成交报告 * 搜索我的成交报告
* @return \think\Response * @return \think\Response
*/ */
public function searchBargainList() public function searchBargainList()
{ {
$params = $this->params; $params = $this->params;
/* $params = array( /* $params = array(
"submit_agent_id" => 1, "submit_agent_id" => 1,
"keyword" => "17717536291", "keyword" => "17717536291",
"page_no" => 1, "page_no" => 1,
"page_size" => 15 "page_size" => 15
);*/ );*/
if (!isset($params["submit_agent_id"]) || !isset($params["keyword"])) { if (!isset($params["submit_agent_id"]) || !isset($params["keyword"])) {
return $this->response("101", "请求参数错误"); return $this->response("101", "请求参数错误");
} }
try { try {
$result = $this->service_->getBargainList($params); $result = $this->service_->getBargainList($params);
if (count($result) > 0) { if (count($result) > 0) {
return $this->response("200", "request success", $result); return $this->response("200", "request success", $result);
} else { } else {
return $this->response("200", "request null"); return $this->response("200", "request null");
}
} catch (Exception $e) {
return $this->response("101", "request error,msg:" . $e);
} }
} catch (Exception $e) {
return $this->response("101", "request error,msg:" . $e);
} }
}
/** /**
* 搜索经纪人 * 搜索经纪人
* @return \think\Response * @return \think\Response
......
...@@ -87,7 +87,7 @@ class Report extends Basic ...@@ -87,7 +87,7 @@ class Report extends Basic
public function reportList() public function reportList()
{ {
/* $params = array( /* $params = array(
"agent_id" =>1, "agent_id" =>10013,
"type" => 1,//1表示全部 2表示进场 3 表示收款 4成交报告 "type" => 1,//1表示全部 2表示进场 3 表示收款 4成交报告
"page_no"=>1, "page_no"=>1,
"page_size"=>15 "page_size"=>15
......
...@@ -32,7 +32,7 @@ class Statement extends Basic ...@@ -32,7 +32,7 @@ class Statement extends Basic
header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Origin:*');
$params = $this->params; $params = $this->params;
/*$params = array( /*$params = array(
"agent_id" => 715, "agent_id" => 10015,
"time_start" => date("Y-m-d", time()), "time_start" => date("Y-m-d", time()),
"time_end" => date("Y-m-d", time()) . " 23:59:59", "time_end" => date("Y-m-d", time()) . " 23:59:59",
);*/ );*/
......
...@@ -320,7 +320,7 @@ class OrderLogService ...@@ -320,7 +320,7 @@ class OrderLogService
$reportData = $oReportModel->selectReportByUserId($field_report, [ "user_id" => $user_id ]); $reportData = $oReportModel->selectReportByUserId($field_report, [ "user_id" => $user_id ]);
if (count($reportData) <= 0) { if (count($reportData) <= 0) {
return [ "101", "报备记录未找到" ]; return null;
} }
$order_ids = $report_ids = ""; $order_ids = $report_ids = "";
......
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