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
a79c9c5e
Commit
a79c9c5e
authored
Sep 11, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运营数据
parent
f1ccf2f8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
User.php
application/api_broker/controller/User.php
+2
-3
OperationData.php
application/index/controller/OperationData.php
+0
-0
AAgents.php
application/model/AAgents.php
+17
-0
No files found.
application/api_broker/controller/User.php
View file @
a79c9c5e
...
...
@@ -82,8 +82,7 @@ class User extends Basic
"pageSize" => 15,
"status" => 0,
);*/
$field
=
"id as user_id,sex,user_name,city,user_phone,user_status,agent_id,create_time,industry_type,price_demand,
area_demand,vip,source,source_intro"
;
$field
=
"id as user_id,sex,user_name,city,user_phone,user_status,agent_id,create_time,industry_type,price_demand,area_demand,vip,user_label"
;
$conditions
=
[];
...
...
@@ -157,7 +156,7 @@ class User extends Basic
foreach
(
$userList
as
$k
=>
$v
)
{
/*判断是否纯房东 0:否 1:是 start*/
$is_single_homeowner
=
0
;
if
(
$v
[
'
source'
]
==
41
)
{
if
(
$v
[
'
user_label'
]
==
2
)
{
//source 41纯房东
$is_single_homeowner
=
1
;
}
...
...
application/index/controller/OperationData.php
View file @
a79c9c5e
This diff is collapsed.
Click to expand it.
application/model/AAgents.php
View file @
a79c9c5e
...
...
@@ -1187,7 +1187,23 @@ class AAgents extends BaseModel
return
$result
;
}
/**
* 客户来电数
* @param $field
* @param $params
* @return false|\PDOStatement|string|\think\Collection
*/
public
function
getUserPhoneNum
(
$field
,
$params
)
{
$result
=
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
where
(
$params
)
->
group
(
'district_id'
)
->
select
();
//echo $this->getLastSql();
return
$result
;
}
}
\ No newline at end of file
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