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
41fbfe3d
Commit
41fbfe3d
authored
May 28, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客源加更新时间
parent
b1d67998
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
StatementService.php
application/api_broker/service/StatementService.php
+1
-1
Users.php
application/model/Users.php
+22
-0
No files found.
application/api_broker/service/StatementService.php
View file @
41fbfe3d
...
@@ -147,7 +147,7 @@ class StatementService
...
@@ -147,7 +147,7 @@ class StatementService
$agents_res
=
$this
->
agentModel
->
getAgentsByStoreId
(
$params
);
$agents_res
=
$this
->
agentModel
->
getAgentsByStoreId
(
$params
);
$result
[
"agent_total"
]
=
count
(
$agents_res
);
$result
[
"agent_total"
]
=
count
(
$agents_res
);
$result
[
"house_num"
]
=
$this
->
housesToAgents
->
getAddHouseNumByAgentId
(
$conditions
);
$result
[
"house_num"
]
=
$this
->
housesToAgents
->
getAddHouseNumByAgentId
(
$conditions
);
$result
[
"user_num"
]
=
$this
->
userModel
->
getAddUserNumByAgentId
(
$conditions
);
$result
[
"user_num"
]
=
$this
->
userModel
->
getAddUserNumByAgentId
V2
(
$conditions
);
//本周带看(报备)
//本周带看(报备)
$addMarchInNum
=
$this
->
marchInModel
->
getAddMarchInNum
(
$conditions
);
$addMarchInNum
=
$this
->
marchInModel
->
getAddMarchInNum
(
$conditions
);
$result
[
"follow_up_num"
]
=
isset
(
$addMarchInNum
[
0
][
"num"
])
?
$addMarchInNum
[
0
][
"num"
]
:
0
;
$result
[
"follow_up_num"
]
=
isset
(
$addMarchInNum
[
0
][
"num"
])
?
$addMarchInNum
[
0
][
"num"
]
:
0
;
...
...
application/model/Users.php
View file @
41fbfe3d
...
@@ -515,6 +515,28 @@ class Users extends Model
...
@@ -515,6 +515,28 @@ class Users extends Model
}
}
/**
* 获取经纪人新增用户数量
* @param $params
* @return int|string
*/
public
function
getAddUserNumByAgentIdV2
(
$params
)
{
$where_
=
[];
$where_or_
=
[];
if
(
isset
(
$params
[
"agent_id"
]))
{
$where_
[
"agent_id"
]
=
$params
[
"agent_id"
];
}
if
(
isset
(
$params
[
"create_time"
]))
{
$where_
[
"create_time"
]
=
$params
[
"create_time"
];
$where_or_
[
"update_time"
]
=
$params
[
"create_time"
];
}
$result
=
Db
::
table
(
$this
->
table
)
->
where
(
$where_
)
->
whereOr
(
$where_or_
)
->
count
();
return
$result
;
}
/**
/**
* 按添加时间段分组统计
* 按添加时间段分组统计
* @param $params
* @param $params
...
...
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