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
fa667201
Commit
fa667201
authored
Jan 14, 2019
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
ab7fa513
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
OrderLogService.php
application/api_broker/service/OrderLogService.php
+14
-11
No files found.
application/api_broker/service/OrderLogService.php
View file @
fa667201
...
...
@@ -942,14 +942,27 @@ class OrderLogService
$appointWatchShopModel
=
new
AppointWatchShop
();
//客户c端提交预约看铺
$field_appoint
=
"a.id,a.create_time,b.user_name as name"
;
$appointData
=
$appointWatchShopModel
->
getAppointWatchOur
(
1
,
15
,
"a.id desc"
,
$field_appoint
,[
"a.user_id"
=>
$user_id
]);
if
(
count
(
$appointData
)
>
0
)
{
foreach
(
$appointData
as
$k
=>
$v
)
{
$v
[
"step_name"
]
=
"appoint"
;
$v
[
"step"
]
=
"提交预约看铺"
;
$result
[
$sort
++
]
=
$v
;
}
}
$field_report
=
"a.id,a.create_time,a.predict_see_time,a.intro,b.id as order_id,b.house_id,b.house_title,c.id as agent_id,c.name,c.img,d.store_name"
;
$reportData
=
$oReportModel
->
selectReportByUserId
(
$field_report
,
[
"user_id"
=>
$user_id
]);
if
(
count
(
$result
)
<=
0
&&
count
(
$reportData
)
<=
0
)
{
if
(
count
(
$appointData
)
>
0
&&
count
(
$reportData
)
<=
0
)
{
return
$this
->
sortByTime
(
$result
);
}
elseif
(
count
(
$appointData
)
<=
0
&&
count
(
$reportData
)
<=
0
){
return
[];
}
$order_ids
=
$report_ids
=
""
;
//报备
foreach
(
$reportData
as
$k
=>
$v
)
{
...
...
@@ -970,16 +983,6 @@ class OrderLogService
$reportParams
[
"report_id"
]
=
array
(
"in"
,
$report_ids
);
//客户c端提交预约看铺
$field_appoint
=
"a.id,a.create_time,b.user_name as name"
;
$appointData
=
$appointWatchShopModel
->
getAppointWatchOur
(
1
,
15
,
"a.id desc"
,
$field_appoint
,[
"a.user_id"
=>
$user_id
]);
if
(
count
(
$appointData
)
>
0
)
{
foreach
(
$appointData
as
$k
=>
$v
)
{
$v
[
"step_name"
]
=
"appoint"
;
$v
[
"step"
]
=
"提交预约看铺"
;
$result
[
$sort
++
]
=
$v
;
}
}
//进场 march in
$field_march_in
=
"a.id,a.reception_id,a.create_time,b.id as order_id,b.house_id,b.house_title,c.id as agent_id,c.name,c.img,d.store_name"
;
...
...
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