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
1865cf47
Commit
1865cf47
authored
Jun 27, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
进场统计
parent
1b9ad39b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
OMarchInModel.php
application/model/OMarchInModel.php
+3
-3
No files found.
application/model/OMarchInModel.php
View file @
1865cf47
...
@@ -93,12 +93,12 @@ class OMarchInModel extends Model
...
@@ -93,12 +93,12 @@ class OMarchInModel extends Model
}
}
/**
/**
* 查询经纪人进场数据
* 查询经纪人进场数据
todo 产品定义同一天带看同一个客户去多个铺子算一个带看,下个方法同样
* @param $params
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @return false|\PDOStatement|string|\think\Collection
*/
*/
public
function
getAddMarchInNumGroupTime
(
$params
){
public
function
getAddMarchInNumGroupTime
(
$params
){
$field
=
"count(
1
) as num,DATE(create_time) as day"
;
$field
=
"count(
DISTINCT report_id
) as num,DATE(create_time) as day"
;
$where_
=
[];
$where_
=
[];
if
(
isset
(
$params
[
"agent_id"
])){
if
(
isset
(
$params
[
"agent_id"
])){
$where_
[
"reception_id"
]
=
$params
[
"agent_id"
];
$where_
[
"reception_id"
]
=
$params
[
"agent_id"
];
...
@@ -114,7 +114,7 @@ class OMarchInModel extends Model
...
@@ -114,7 +114,7 @@ class OMarchInModel extends Model
}
}
public
function
getAddMarchInNum
(
$params
){
public
function
getAddMarchInNum
(
$params
){
$field
=
"count(
1
) as num"
;
$field
=
"count(
DISTINCT report_id
) as num"
;
$where_
=
[];
$where_
=
[];
if
(
isset
(
$params
[
"agent_id"
])){
if
(
isset
(
$params
[
"agent_id"
])){
$where_
[
"a.reception_id"
]
=
$params
[
"agent_id"
];
$where_
[
"a.reception_id"
]
=
$params
[
"agent_id"
];
...
...
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