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
e03c99bd
Commit
e03c99bd
authored
Nov 22, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e87ddc45
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
AppointmentShop.php
application/api_broker/controller/AppointmentShop.php
+9
-3
No files found.
application/api_broker/controller/AppointmentShop.php
View file @
e03c99bd
...
...
@@ -40,8 +40,8 @@ class AppointmentShop extends Basic
$code
=
200
;
$msg
=
""
;
$list
=
[];
$where
[
'a.appoint_agent_id'
]
=
1
;
//
$where['a.appoint_agent_id'] = $this->agentId;
//
$where['a.appoint_agent_id'] = 1;
$where
[
'a.appoint_agent_id'
]
=
$this
->
agentId
;
$where
[
'a.is_cancel'
]
=
0
;
$page_no
=
empty
(
$this
->
params
[
'page_no'
])
?
1
:
$this
->
params
[
'page_no'
];
$page_size
=
empty
(
$this
->
params
[
'page_size'
])
?
15
:
$this
->
params
[
'page_size'
];
...
...
@@ -53,7 +53,7 @@ class AppointmentShop extends Basic
$m_house
=
new
GHouses
();
$m_agent
=
new
AAgents
();
foreach
(
$list
as
$k
=>
$v
)
{
if
(
$v
[
'a
s is_report
'
]
>
0
)
{
if
(
$v
[
'a
pplies_id
'
]
>
0
)
{
$list
[
$k
][
'is_report'
]
=
1
;
}
else
{
$list
[
$k
][
'is_report'
]
=
0
;
...
...
@@ -64,7 +64,13 @@ class AppointmentShop extends Basic
$follow_up
[
$k
][
'name'
]
=
$m_agent
->
getAgentsById
(
$v
[
'admin_id'
],
'name'
);
unset
(
$follow_up
[
$k
][
'admin_id'
]);
}
if
(
empty
(
$follow_up
))
{
$list
[
$k
][
'follow_up_list'
]
=
[];
}
else
{
$list
[
$k
][
'follow_up_list'
]
=
$follow_up
;
}
unset
(
$list
[
$k
][
'applies_id'
]);
}
}
catch
(
\Exception
$e
)
{
...
...
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