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
344a67fc
Commit
344a67fc
authored
Nov 22, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
bd52c337
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
AppointmentShop.php
application/api_broker/controller/AppointmentShop.php
+7
-5
No files found.
application/api_broker/controller/AppointmentShop.php
View file @
344a67fc
...
@@ -40,8 +40,8 @@ class AppointmentShop extends Basic
...
@@ -40,8 +40,8 @@ class AppointmentShop extends Basic
$code
=
200
;
$code
=
200
;
$msg
=
""
;
$msg
=
""
;
$list
=
[];
$list
=
[];
//
$where['a.appoint_agent_id'] = 1;
$where
[
'a.appoint_agent_id'
]
=
1
;
$where
[
'a.appoint_agent_id'
]
=
$this
->
agentId
;
//
$where['a.appoint_agent_id'] = $this->agentId;
$where
[
'a.is_cancel'
]
=
0
;
$where
[
'a.is_cancel'
]
=
0
;
$page_no
=
empty
(
$this
->
params
[
'page_no'
])
?
1
:
$this
->
params
[
'page_no'
];
$page_no
=
empty
(
$this
->
params
[
'page_no'
])
?
1
:
$this
->
params
[
'page_no'
];
$page_size
=
empty
(
$this
->
params
[
'page_size'
])
?
15
:
$this
->
params
[
'page_size'
];
$page_size
=
empty
(
$this
->
params
[
'page_size'
])
?
15
:
$this
->
params
[
'page_size'
];
...
@@ -50,6 +50,7 @@ class AppointmentShop extends Basic
...
@@ -50,6 +50,7 @@ class AppointmentShop extends Basic
$field
.=
'b.user_name,b.id as use_id,a.applies_id'
;
$field
.=
'b.user_name,b.id as use_id,a.applies_id'
;
try
{
try
{
$list
=
$this
->
m_watch
->
getAppointWatchOur
(
$page_no
,
$page_size
,
'a.id desc'
,
$field
,
$where
);
$list
=
$this
->
m_watch
->
getAppointWatchOur
(
$page_no
,
$page_size
,
'a.id desc'
,
$field
,
$where
);
$m_house
=
new
GHouses
();
$m_house
=
new
GHouses
();
$m_agent
=
new
AAgents
();
$m_agent
=
new
AAgents
();
foreach
(
$list
as
$k
=>
$v
)
{
foreach
(
$list
as
$k
=>
$v
)
{
...
@@ -60,9 +61,10 @@ class AppointmentShop extends Basic
...
@@ -60,9 +61,10 @@ class AppointmentShop extends Basic
}
}
$list
[
$k
][
'house_title'
]
=
$m_house
->
getHouseValue
(
'internal_title'
,
[
'id'
=>
$v
[
'house_id'
]]);
$list
[
$k
][
'house_title'
]
=
$m_house
->
getHouseValue
(
'internal_title'
,
[
'id'
=>
$v
[
'house_id'
]]);
$follow_up
=
$this
->
m_follow
->
getAllList
(
'admin_id,content,create_time'
,
[
'sublet_id'
=>
$v
[
'id'
]]);
$follow_up
=
$this
->
m_follow
->
getAllList
(
'admin_id,content,create_time'
,
[
'sublet_id'
=>
$v
[
'id'
]]);
foreach
(
$follow_up
as
$k
=>
$v
)
{
$follow_up
[
$k
][
'name'
]
=
$m_agent
->
getAgentsById
(
$v
[
'admin_id'
],
'name'
);
foreach
(
$follow_up
as
$k2
=>
$v2
)
{
unset
(
$follow_up
[
$k
][
'admin_id'
]);
$follow_up
[
$k2
][
'name'
]
=
$m_agent
->
getAgentsById
(
$v2
[
'admin_id'
],
'name'
);
unset
(
$follow_up
[
$k2
][
'admin_id'
]);
}
}
if
(
empty
(
$follow_up
))
{
if
(
empty
(
$follow_up
))
{
...
...
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