Commit d138c365 authored by clone's avatar clone

bug

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