Commit 4a3fd39e authored by clone's avatar clone

bug

parent de82cf7c
...@@ -236,12 +236,12 @@ class OrderLog extends Basic ...@@ -236,12 +236,12 @@ class OrderLog extends Basic
public function selectReportAll() public function selectReportAll()
{ {
$params = $this->params; $params = $this->params;
/* if (!isset($params["order_id"])) { if (!isset($params["order_id"])) {
return $this->response("101", "请求参数错误"); return $this->response("101", "请求参数错误");
}*/ }
$params = array( /* $params = array(
"order_id" => 53630, "order_id" => 53630,
); );*/
$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);
} }
......
...@@ -190,12 +190,12 @@ class Shop extends Basic ...@@ -190,12 +190,12 @@ class Shop extends Basic
public function getShopDetail() public function getShopDetail()
{ {
/* $params = array( $params = array(
"id" => 5, "id" => 5,
"site_area" => 1, //1.c端 3.b端 "site_area" => 1, //1.c端 3.b端
"user_id" => 2 //if c端 用户登录后传入user_id "user_id" => 2 //if c端 用户登录后传入user_id
);*/ );
$params = $this->params; //$params = $this->params;
$conditions = []; $conditions = [];
if (empty($params['id'])) { if (empty($params['id'])) {
...@@ -247,7 +247,9 @@ class Shop extends Basic ...@@ -247,7 +247,9 @@ class Shop extends Basic
if (count($attResult) > 0) if (count($attResult) > 0)
$result ["attention"] = $attResult[0]["id"]; $result ["attention"] = $attResult[0]["id"];
} }
$verify = new VerifyService();
$agentId = $verify->getPanpartyAgentsByHouseId($params["id"]);
$result["panParty"] = $agentId;
return $this->response("200", 'request success', $result); return $this->response("200", 'request success', $result);
} }
......
...@@ -288,20 +288,8 @@ class OrderLogService ...@@ -288,20 +288,8 @@ class OrderLogService
private function convertFollowUp($item) private function convertFollowUp($item)
{ {
// $field_follow_up = "id,user_type,decision_maker,industry_type,area_requirement,price_requirement,province,city, // $field_follow_up = "id,user_type,decision_maker,industry_type,area_requirement,price_requirement,province,city,
// district,business_area,explain,explain_img,create_time"; // district,business_area,explain,explain_img,create_time";
/* `user_type` tinyint(2) DEFAULT NULL COMMENT '用户类型 1 A类成交意愿较强 2 B类 中等 3 C类较弱 ',
`decision_maker` varchar(80) DEFAULT '' COMMENT '第一决策人',
`industry_type` tinyint(2) DEFAULT NULL COMMENT '租商铺做什么, 1轻餐饮 2重餐饮 3百货零售 4服装 5亲子教育 6休闲娱乐',
`area_requirement` tinyint(2) DEFAULT NULL COMMENT '面积要求 1 30平米内 2 30-60平米 3 60-100平米 4 100平米上',
`price_requirement` tinyint(2) DEFAULT NULL COMMENT '对价格的要求 1.月租金10000元以内 2.月租金10000-30000元 3.月租金30000元以上',
`province` varchar(125) DEFAULT '' COMMENT '省',
`city` varchar(125) DEFAULT '' COMMENT '市',
`district` varchar(125) DEFAULT '' COMMENT '区',
`business_area` varchar(125) DEFAULT '' COMMENT '商圈',
`other_area` varchar(255) DEFAULT '' COMMENT '其他地址',
`explain` varchar(255) DEFAULT '' COMMENT '其他说明',*/
switch ($item["user_type"]) { switch ($item["user_type"]) {
case 1: case 1:
$item["user_type"] = "A类(成交意愿较强)"; $item["user_type"] = "A类(成交意愿较强)";
......
...@@ -78,7 +78,7 @@ class VerifyService ...@@ -78,7 +78,7 @@ class VerifyService
} }
/** /**
* 获取我的盘方 * 获取我的盘方 楼盘
* @param $agent_id * @param $agent_id
* @return false|null|\PDOStatement|string|\think\Collection * @return false|null|\PDOStatement|string|\think\Collection
*/ */
...@@ -101,4 +101,14 @@ class VerifyService ...@@ -101,4 +101,14 @@ class VerifyService
} }
return null; return null;
} }
/**
* 获取楼盘的盘方经纪人id
* @param $house_id
* @return false|\PDOStatement|string|\think\Collection
*/
public function getPanpartyAgentsByHouseId($house_id){
$houseToAgentModel = new GHousesToAgents();
return $houseToAgentModel->getHousesAgents($house_id);
}
} }
\ No newline at end of file
...@@ -76,7 +76,7 @@ class AppChat extends Basic ...@@ -76,7 +76,7 @@ class AppChat extends Basic
public function userChat() public function userChat()
{ {
/* $params = array( /* $params = array(
"user_id" => 10, "user_id" => 118,
"mobile" => "15821506182", "mobile" => "15821506182",
"source" => 1 //1经纪人 2用户 "source" => 1 //1经纪人 2用户
);*/ );*/
......
...@@ -160,6 +160,11 @@ class GHousesToAgents extends BaseModel ...@@ -160,6 +160,11 @@ class GHousesToAgents extends BaseModel
return $result; return $result;
} }
public function getAgentsByHouseId($houseId){
}
/** /**
* 楼盘对应的经纪人信息 * 楼盘对应的经纪人信息
* *
......
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