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
9addc727
Commit
9addc727
authored
Mar 25, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监督执行列表修改
parent
aa2d8da0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Supervise.php
application/api_broker/controller/Supervise.php
+4
-4
No files found.
application/api_broker/controller/Supervise.php
View file @
9addc727
...
@@ -10,7 +10,6 @@ namespace app\api_broker\controller;
...
@@ -10,7 +10,6 @@ namespace app\api_broker\controller;
use
app\api_broker\extend\Basic
;
use
app\api_broker\extend\Basic
;
use
app\api_broker\service\VerifyService
;
use
app\model\AAgents
;
use
app\model\AAgents
;
use
app\model\SSupervision
;
use
app\model\SSupervision
;
...
@@ -86,8 +85,6 @@ class Supervise extends Basic
...
@@ -86,8 +85,6 @@ class Supervise extends Basic
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$supervision
=
new
SSupervision
();
$fields
=
'longitude,latitude,address,content,img_url,b.name,a.create_time'
;
$verify
=
new
AAgents
();
$verify
=
new
AAgents
();
$agent_data
=
$verify
->
getAgentInfo
(
'level,store_id,district_id'
,
$this
->
params
[
'agent_id'
]);
$agent_data
=
$verify
->
getAgentInfo
(
'level,store_id,district_id'
,
$this
->
params
[
'agent_id'
]);
...
@@ -99,9 +96,12 @@ class Supervise extends Basic
...
@@ -99,9 +96,12 @@ class Supervise extends Basic
case
40
:
case
40
:
$where
=
'a.store_id = '
.
$agent_data
[
'store_id'
]
.
' or a.district_id = '
.
$agent_data
[
'district_id'
];
break
;
$where
=
'a.store_id = '
.
$agent_data
[
'store_id'
]
.
' or a.district_id = '
.
$agent_data
[
'district_id'
];
break
;
default
:
default
:
$where
=
'agent_id = '
.
$
agent_data
[
'agent_id'
];
$where
=
'agent_id = '
.
$
this
->
params
[
'agent_id'
];
}
}
$supervision
=
new
SSupervision
();
$fields
=
'longitude,latitude,address,content,img_url,b.name,a.create_time'
;
if
(
empty
(
$where
))
{
if
(
empty
(
$where
))
{
return
$this
->
response
(
101
,
'Params is error'
);
return
$this
->
response
(
101
,
'Params is error'
);
}
}
...
...
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