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
95ddf0a5
Commit
95ddf0a5
authored
Mar 25, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监督执行列表修改
parent
3471ac49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Supervise.php
application/api_broker/controller/Supervise.php
+5
-1
No files found.
application/api_broker/controller/Supervise.php
View file @
95ddf0a5
...
@@ -85,7 +85,7 @@ class Supervise extends Basic
...
@@ -85,7 +85,7 @@ class Supervise extends Basic
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$supervision
=
new
SSupervision
();
$supervision
=
new
SSupervision
();
$fields
=
'longitude,latitude,address,content,img_url,b.name'
;
$fields
=
'longitude,latitude,address,content,img_url,b.name
,a.create_time
'
;
if
(
isset
(
$this
->
params
[
'agent_id'
]))
{
if
(
isset
(
$this
->
params
[
'agent_id'
]))
{
$where
[
'agent_id'
]
=
$this
->
params
[
'agent_id'
];
$where
[
'agent_id'
]
=
$this
->
params
[
'agent_id'
];
...
@@ -104,6 +104,10 @@ class Supervise extends Basic
...
@@ -104,6 +104,10 @@ class Supervise extends Basic
}
}
$data
[
'list'
]
=
$supervision
->
getSupervisionList
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$fields
,
$where
);
$data
[
'list'
]
=
$supervision
->
getSupervisionList
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$fields
,
$where
);
foreach
(
$data
[
'list'
]
as
$k
=>
$v
)
{
$data
[
'list'
][
$k
][
'img_url'
]
=
CK_IMG_URL
.
'images/supervise/'
.
$v
[
'img_url'
];
}
$data
[
'total'
]
=
$supervision
->
getSupervisionListTotal
(
$where
);
$data
[
'total'
]
=
$supervision
->
getSupervisionListTotal
(
$where
);
return
$this
->
response
(
200
,
''
,
$data
);
return
$this
->
response
(
200
,
''
,
$data
);
}
}
...
...
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