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
5f7a4755
Commit
5f7a4755
authored
Jun 20, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传人id修改
parent
5873a063
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
37 deletions
+4
-37
Supervise.php
application/api_broker/controller/Supervise.php
+4
-37
No files found.
application/api_broker/controller/Supervise.php
View file @
5f7a4755
...
...
@@ -268,48 +268,17 @@ class Supervise extends Basic
* Date: 2018/6/15
* Time: 13:10:33
*/
public
function
superviseList
()
{
$result
=
''
;
public
function
superviseList
(){
$params
=
$this
->
params
;
// $checkResult = $this->validate($params, "VerifyValidate.select");
// if (true !== $checkResult) {
// //return $this->response("101", $checkResult);
// }
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
//搜索条件 start
//1.上传时间
if
(
!
empty
(
$params
[
'create_time_start'
])
&&
!
empty
(
$params
[
'create_time_end'
]))
{
$where
[
'a.create_time'
]
=
[
'between time'
,
[
$params
[
'create_time_start'
]
.
' 00:00:00'
,
$params
[
'create_time_end'
]
.
' 23:59:59'
]
];
}
//2.部门
if
(
!
empty
(
$params
[
'district_id'
]))
{
$where
[
'b.district_id'
]
=
$params
[
'district_id'
];
}
//3.门店名称
if
(
!
empty
(
$params
[
'store_id'
]))
{
$where
[
'b.store_id'
]
=
$params
[
'store_id'
];
}
//4.提交人手机号
if
(
!
empty
(
$params
[
'phone'
]))
{
$where
[
'b.phone'
]
=
[
'LIKE'
,
'%'
.
$params
[
'phone'
]
.
'%'
];
}
//5.跟进内容
if
(
!
empty
(
$params
[
'remark'
]))
{
$where
[
'a.remark'
]
=
[
'LIKE'
,
'%'
.
$params
[
'remark'
]
.
'%'
];
if
(
!
isset
(
$params
[
'agent_id'
]))
{
return
$this
->
response
(
"300"
,
"参数不全"
);
}
//搜索条件 end
$where
[
'a.agent_id'
]
=
$this
->
params
[
'agent_id'
];
$fields_evaluate
=
'a.create_time,a.agent_name,a.address,a.img as supervise_img,a.remark,b.name,b.phone,c.store_name'
;
...
...
@@ -318,8 +287,6 @@ class Supervise extends Basic
foreach
(
$data
[
'list'
]
as
$k
=>
$v
)
{
$data
[
'list'
][
$k
][
'supervise_img'
]
=
CK_IMG_URL
.
'images/supervise/'
.
$v
[
'supervise_img'
];
}
//var_dump($result);
//return $result;
return
$this
->
response
(
200
,
'success'
,
$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