Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
d138c365
Commit
d138c365
authored
Apr 11, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
7684bcc6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
50 additions
and
49 deletions
+50
-49
Index.php
application/api/controller/Index.php
+2
-1
Broker.php
application/api_broker/controller/Broker.php
+3
-3
OrderLog.php
application/api_broker/controller/OrderLog.php
+42
-42
Report.php
application/api_broker/controller/Report.php
+1
-1
Statement.php
application/api_broker/controller/Statement.php
+1
-1
OrderLogService.php
application/api_broker/service/OrderLogService.php
+1
-1
No files found.
application/api/controller/Index.php
View file @
d138c365
<?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
;
...
...
application/api_broker/controller/Broker.php
View file @
d138c365
...
...
@@ -235,7 +235,7 @@ class Broker extends Basic
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
/* $params = array(
"user_id" => 8
73
8
"user_id" => 8
2
8
);*/
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"
])){
...
...
application/api_broker/controller/OrderLog.php
View file @
d138c365
...
...
@@ -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
...
...
application/api_broker/controller/Report.php
View file @
d138c365
...
...
@@ -87,7 +87,7 @@ class Report extends Basic
public
function
reportList
()
{
/* $params = array(
"agent_id" =>1,
"agent_id" =>1
0013
,
"type" => 1,//1表示全部 2表示进场 3 表示收款 4成交报告
"page_no"=>1,
"page_size"=>15
...
...
application/api_broker/controller/Statement.php
View file @
d138c365
...
...
@@ -32,7 +32,7 @@ class Statement extends Basic
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
/*$params = array(
"agent_id" =>
7
15,
"agent_id" =>
100
15,
"time_start" => date("Y-m-d", time()),
"time_end" => date("Y-m-d", time()) . " 23:59:59",
);*/
...
...
application/api_broker/service/OrderLogService.php
View file @
d138c365
...
...
@@ -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
=
""
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment