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
01118111
Commit
01118111
authored
Oct 12, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
9504bedc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
OperationData.php
application/index/controller/OperationData.php
+6
-7
Performance.php
application/index/controller/Performance.php
+2
-0
ChatRelation.php
application/model/ChatRelation.php
+1
-1
No files found.
application/index/controller/OperationData.php
View file @
01118111
...
...
@@ -77,7 +77,7 @@ class OperationData extends Basic
foreach
(
explode
(
','
,
$agentIds
)
as
$k1
=>
$v1
)
{
// 发起微聊用户数
$where
[
'
from_id'
]
=
'user
_'
.
$v1
;
$where
[
'
to_id'
]
=
'agent
_'
.
$v1
;
$group
=
''
;
$res
=
$chatRelationModel
->
getChatUserNumOperation
(
$where
,
$group
);
$chat_user_all_num
+=
$res
;
...
...
@@ -103,7 +103,7 @@ class OperationData extends Basic
public
function
userPhoneNum
()
{
$params
=
$this
->
params
;
$
where
[
'
create_time'
]
=
[
'between'
,
[
$params
[
'create_time_start'
]
.
' 00:00:00'
,
$params
[
'create_time_end'
]
.
' 23:59:59'
]
];
$
params_
[
'a.
create_time'
]
=
[
'between'
,
[
$params
[
'create_time_start'
]
.
' 00:00:00'
,
$params
[
'create_time_end'
]
.
' 23:59:59'
]
];
// 先查新所有部门
$district_list
=
$this
->
getDistrict
();
...
...
@@ -112,13 +112,12 @@ class OperationData extends Basic
$result_
[
"district_name"
]
=
$v
[
'district_name'
];
// 客户来电数
$params
=
[];
$params
[
"b.district_id"
]
=
$v
[
'id'
];
$params
[
"a.status"
]
=
0
;
//只查询正常状态的经纪人
$params_
[
"b.district_id"
]
=
$v
[
'id'
];
$params_
[
"a.status"
]
=
0
;
//只查询正常状态的经纪人
$model
=
new
AUserCallAgent
();
$res
=
$model
->
getUserCallAgentCount
(
$params
);
$res
=
$model
->
getUserCallAgentCount
(
$params
_
);
$result_
[
"user_phone_num"
]
=
isset
(
$res
)
?
$res
:
0
;
;
$result_
[
"user_phone_num"
]
=
isset
(
$res
)
?
$res
:
0
;
$result
[]
=
$result_
;
}
return
$this
->
response
(
200
,
'success'
,
$result
);
...
...
application/index/controller/Performance.php
View file @
01118111
...
...
@@ -16,11 +16,13 @@ class Performance extends Basic
{
private
$service_
;
private
$pageSize
;
function
__construct
(
Request
$request
=
null
)
{
parent
::
__construct
(
$request
);
$this
->
service_
=
new
PerformanceService
();
$this
->
pageSize
=
20
;
}
...
...
application/model/ChatRelation.php
View file @
01118111
...
...
@@ -139,7 +139,7 @@ class ChatRelation extends Model
->
count
();
}
//
dump($this->getLastSql($return));
//
dump($this->getLastSql($return));
return
$return
;
}
...
...
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