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
d530cd1f
Commit
d530cd1f
authored
Oct 26, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
54d6cb67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
OperationData.php
application/index/controller/OperationData.php
+27
-1
No files found.
application/index/controller/OperationData.php
View file @
d530cd1f
...
@@ -96,6 +96,32 @@ class OperationData extends Basic
...
@@ -96,6 +96,32 @@ class OperationData extends Basic
return
$this
->
response
(
200
,
'success'
,
$result
);
return
$this
->
response
(
200
,
'success'
,
$result
);
}
}
/**
* 客户来电数
* @return \think\Response
*/
// public function userPhoneNum()
// {
// $params = $this->params;1
// $params_['a.create_time'] = [ 'between', [ $params['create_time_start'] . ' 00:00:00', $params['create_time_end'] . ' 23:59:59' ] ];
// // 先查新所有部门
// $district_list = $this->getDistrict();
//
// foreach ($district_list as $key => $v) {
// $result_["id"] = $v['id'];
// $result_["district_name"] = $v['district_name'];
//
// // 客户来电数
// $params_["b.district_id"] = $v['id'];
// $model = new AUserCallAgent();
// $res = $model->getUserCallAgentCount($params_);
//
// $result_["user_phone_num"] = isset($res) ? $res : 0;
// $result[] = $result_;
// }
// return $this->response(200, 'success', $result);
// }
/**
/**
* 客户来电数
* 客户来电数
* @return \think\Response
* @return \think\Response
...
@@ -119,7 +145,7 @@ class OperationData extends Basic
...
@@ -119,7 +145,7 @@ class OperationData extends Basic
$agentModel
=
new
AAgents
();
$agentModel
=
new
AAgents
();
$res
=
$agentModel
->
getUserPhoneNum
(
$field
,
$params
);
$res
=
$agentModel
->
getUserPhoneNum
(
$field
,
$params
);
$result_
[
"
user_phone_num"
]
=
isset
(
$res
)
?
$res
:
0
;
$result_
[
"
call_number_total"
]
=
isset
(
$res
[
'call_number_total'
])
?
$res
[
'call_number_total'
]
:
0
;
$result
[]
=
$result_
;
$result
[]
=
$result_
;
}
}
return
$this
->
response
(
200
,
'success'
,
$result
);
return
$this
->
response
(
200
,
'success'
,
$result
);
...
...
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