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
6961c476
Commit
6961c476
authored
Apr 08, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
b52e4a4d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
14 deletions
+18
-14
OrderLog.php
application/api_broker/controller/OrderLog.php
+4
-4
Report.php
application/api_broker/controller/Report.php
+4
-3
OrderLogService.php
application/api_broker/service/OrderLogService.php
+1
-3
ReportService.php
application/api_broker/service/ReportService.php
+6
-3
OrderModel.php
application/model/OrderModel.php
+3
-1
No files found.
application/api_broker/controller/OrderLog.php
View file @
6961c476
...
...
@@ -285,11 +285,11 @@ class OrderLog extends Basic
public
function
searchOrder
()
{
$params
=
$this
->
params
;
/*
$params = array(
$params
=
array
(
"type"
=>
4
,
//0.客户电话 1.客户姓名 2.报备人电话 3.报备人姓名 4.商铺名称 5.商铺地址
"agent_id" =>
8735
,
"search_keyword" => "
郑州
"
);
*/
"agent_id"
=>
1
,
"search_keyword"
=>
"
福气
"
);
if
(
!
isset
(
$params
[
"type"
])
||
!
isset
(
$params
[
"agent_id"
])
||
!
isset
(
$params
[
"search_keyword"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
...
...
application/api_broker/controller/Report.php
View file @
6961c476
...
...
@@ -36,13 +36,14 @@ class Report extends Basic
public
function
report
()
{
$params
=
$this
->
params
;
if
(
!
isset
(
$params
[
'report_agent_id'
])
||
!
isset
(
$params
[
'report_store_id'
])
||
!
isset
(
$params
[
'user_id'
])
||
if
(
!
isset
(
$params
[
'report_agent_id'
])
||
!
isset
(
$params
[
'report_
agent_phone'
])
||
!
isset
(
$params
[
'report_
store_id'
])
||
!
isset
(
$params
[
'user_id'
])
||
!
isset
(
$params
[
'house_ids'
])
||
!
isset
(
$params
[
'vehicle'
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
/* $params = array(
"report_agent_id" => 1,//报备经纪人id
"report_agent_phone" => '13817616471',//报备经纪人id
"report_store_id" => 1,//门店id
"user_id" => 1,//用户id
"house_ids" => "1,2,3",//楼盘id
...
...
@@ -54,6 +55,7 @@ class Report extends Basic
$agent_id
=
$params
[
"report_agent_id"
];
$agent_phone
=
$params
[
"report_agent_phone"
];
$store_id
=
$params
[
"report_store_id"
];
$user_id
=
$params
[
"user_id"
];
$house_ids
=
$params
[
"house_ids"
];
...
...
@@ -66,7 +68,7 @@ class Report extends Basic
if
(
!
$userArr
)
{
return
$this
->
response
(
"101"
,
"不存在此用户"
);
}
$is_ok
=
$this
->
service_
->
verifyReport
(
$agent_id
,
$this
->
agentName
,
$store_id
,
$user_id
,
$userArr
[
"user_phone"
],
$is_ok
=
$this
->
service_
->
verifyReport
(
$agent_id
,
$
agent_phone
,
$
this
->
agentName
,
$store_id
,
$user_id
,
$userArr
[
"user_phone"
],
$userArr
[
"user_name"
],
$house_ids
,
$vehicle
,
$intro
,
$predict_see_time
);
if
(
$is_ok
>
0
)
{
return
$this
->
response
(
"200"
,
"request success"
,
[]);
...
...
@@ -110,7 +112,6 @@ class Report extends Basic
}
}
...
...
application/api_broker/service/OrderLogService.php
View file @
6961c476
...
...
@@ -212,7 +212,7 @@ class OrderLogService
}
$report_id
=
$orderData
[
0
][
"f_id"
];
$field_report
=
"id,report_agent_id,report_agent_name,report_store_id,user_id,user_phone,user_name,vehicle,intro,predict_see_time,create_time"
;
$field_report
=
"id,report_agent_id,report_agent_
phone,report_agent_
name,report_store_id,user_id,user_phone,user_name,vehicle,intro,predict_see_time,create_time"
;
$reportData
=
$oReportModel
->
selectReportById
(
$field_report
,
[
"id"
=>
$report_id
]);
if
(
count
(
$reportData
)
==
0
)
{
...
...
@@ -238,8 +238,6 @@ class OrderLogService
$followUpLogData
=
$followUpLogModel
->
selectFollowUpListByReportId
(
$field_follow_up
,
[
"report_id"
=>
$report_id
]);
if
(
count
(
$followUpLogData
)
>
0
)
{
foreach
(
$followUpLogData
as
$k
=>
$v
)
{
$v
[
"step_name"
]
=
"follow_up_log"
;
$result
[
$sort
++
]
=
$v
;
}
...
...
application/api_broker/service/ReportService.php
View file @
6961c476
...
...
@@ -54,6 +54,7 @@ class ReportService
* 生成报备和保存订单
*
* @param $agent_id
* @param $agent_phone
* @param $agent_name
* @param $store_id
* @param $user_id
...
...
@@ -68,10 +69,10 @@ class ReportService
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
verifyReport
(
$agent_id
,
$agent_name
,
$store_id
,
$user_id
,
$user_phone
,
$user_name
,
$house_ids
,
$vehicle
,
$intro
,
$predict_see_time
)
public
function
verifyReport
(
$agent_id
,
$agent_phone
,
$agent_name
,
$store_id
,
$user_id
,
$user_phone
,
$user_name
,
$house_ids
,
$vehicle
,
$intro
,
$predict_see_time
)
{
$id
=
$this
->
reportBin
(
$agent_id
,
$agent_name
,
$store_id
,
$user_id
,
$user_phone
,
$user_name
,
$vehicle
,
$intro
,
$id
=
$this
->
reportBin
(
$agent_id
,
$agent_phone
,
$agent_name
,
$store_id
,
$user_id
,
$user_phone
,
$user_name
,
$vehicle
,
$intro
,
$predict_see_time
);
if
(
$id
>
0
)
{
...
...
@@ -183,6 +184,7 @@ class ReportService
/**报备主表
* @param $report_agent_id
* @param $agent_phone
* @param $report_agent_name
* @param $report_store_id
* @param $user_id
...
...
@@ -193,10 +195,11 @@ class ReportService
* @param $predict_see_time
* @return array
*/
private
function
reportBin
(
$report_agent_id
,
$report_agent_name
,
$report_store_id
,
$user_id
,
$user_phone
,
$user_name
,
private
function
reportBin
(
$report_agent_id
,
$agent_phone
,
$report_agent_name
,
$report_store_id
,
$user_id
,
$user_phone
,
$user_name
,
$vehicle
,
$intro
,
$predict_see_time
)
{
$param
[
"report_agent_id"
]
=
$report_agent_id
;
$param
[
"report_agent_phone"
]
=
$agent_phone
;
$param
[
"report_agent_name"
]
=
$report_agent_name
;
$param
[
"report_store_id"
]
=
$report_store_id
;
$param
[
"user_id"
]
=
$user_id
;
...
...
application/model/OrderModel.php
View file @
6961c476
...
...
@@ -110,7 +110,9 @@ class OrderModel extends Model
->union('SELECT '.$field.' FROM o_order a left join o_report b on a.f_id = b.id where '.$params)
->where($params)
->select();*/
/* dump($params);
dump($where_);*/
$where_
=
$where_
.
" and "
.
$params
;
$sql
=
"SELECT * FROM
(
(
...
...
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