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
36b333d1
Commit
36b333d1
authored
Jun 15, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评价列表-修改
parent
ff53bb59
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
2 deletions
+78
-2
Supervise.php
application/api_broker/controller/Supervise.php
+73
-0
Evaluation.php
application/index/controller/Evaluation.php
+2
-2
route.php
application/route.php
+3
-0
No files found.
application/api_broker/controller/Supervise.php
View file @
36b333d1
...
@@ -12,10 +12,20 @@ namespace app\api_broker\controller;
...
@@ -12,10 +12,20 @@ namespace app\api_broker\controller;
use
app\api_broker\extend\Basic
;
use
app\api_broker\extend\Basic
;
use
app\model\AAgents
;
use
app\model\AAgents
;
use
app\model\AgentsVisitors
;
use
app\model\AgentsVisitors
;
use
app\model\ASuperviseModel
;
use
app\model\SSupervision
;
use
app\model\SSupervision
;
class
Supervise
extends
Basic
class
Supervise
extends
Basic
{
{
protected
$aSuperviseModel
;
public
function
__construct
(
$request
=
null
)
{
parent
::
__construct
(
$request
);
$this
->
aSuperviseModel
=
new
ASuperviseModel
();
}
/**
/**
* 监督执行
* 监督执行
*
*
...
@@ -174,4 +184,66 @@ class Supervise extends Basic
...
@@ -174,4 +184,66 @@ class Supervise extends Basic
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]);
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]);
}
}
/**
* 监督执行列表
* User: 朱伟
* Date: 2018/6/15
* Time: 13:10:33
*/
public
function
superviseList
(){
$result
=
''
;
$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'
]
.
'%'
];
}
//搜索条件 end
$fields_evaluate
=
'a.create_time,a.agent_name,a.address,a.img as supervise_img,a.remark,b.name,b.phone,c.store_name'
;
$data
[
'list'
]
=
$this
->
aSuperviseModel
->
findSuperviseList
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$fields_evaluate
,
$where
);
$data
[
'total'
]
=
$this
->
aSuperviseModel
->
findSuperviseListCount
(
$fields_evaluate
,
$where
);
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
);
}
}
}
\ No newline at end of file
application/index/controller/Evaluation.php
View file @
36b333d1
...
@@ -57,8 +57,8 @@ class Evaluation extends Basic
...
@@ -57,8 +57,8 @@ class Evaluation extends Basic
$where
[
'c.store_id'
]
=
$params
[
'store_id'
];
$where
[
'c.store_id'
]
=
$params
[
'store_id'
];
}
}
//4.姓名
//4.姓名
if
(
!
empty
(
$params
[
'user_n
ame
'
]))
{
if
(
!
empty
(
$params
[
'user_n
ick
'
]))
{
$where
[
'b.user_n
ame'
]
=
[
'LIKE'
,
'%'
.
$params
[
'user_name
'
]
.
'%'
];
$where
[
'b.user_n
ick'
]
=
[
'LIKE'
,
'%'
.
$params
[
'user_nick
'
]
.
'%'
];
}
}
//5.手机号
//5.手机号
if
(
!
empty
(
$params
[
'user_phone'
]))
{
if
(
!
empty
(
$params
[
'user_phone'
]))
{
...
...
application/route.php
View file @
36b333d1
...
@@ -469,6 +469,9 @@ Route::group('broker', [
...
@@ -469,6 +469,9 @@ Route::group('broker', [
'returnSearchCondition'
=>
[
'api_broker/User/returnSearchCondition'
,
[
'method'
=>
'get'
]
],
//客户搜索条件
'returnSearchCondition'
=>
[
'api_broker/User/returnSearchCondition'
,
[
'method'
=>
'get'
]
],
//客户搜索条件
'searchUser'
=>
[
'api_broker/User/searchUser'
,
[
'method'
=>
'get|post'
]
],
//客户搜索
'searchUser'
=>
[
'api_broker/User/searchUser'
,
[
'method'
=>
'get|post'
]
],
//客户搜索
'superviseList'
=>
[
'api_broker/Supervise/superviseList'
,
[
'method'
=>
'POST|GET'
]
],
//监督执行列表 朱伟 2018-06-15
]);
]);
...
...
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