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
dd4b8b77
Commit
dd4b8b77
authored
May 19, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日报周报 bug
parent
204f8e5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
StatementService.php
application/api_broker/service/StatementService.php
+5
-1
OReportModel.php
application/model/OReportModel.php
+19
-0
No files found.
application/api_broker/service/StatementService.php
View file @
dd4b8b77
...
...
@@ -5,6 +5,7 @@ namespace app\api_broker\service;
use
app\model\AAgents
;
use
app\model\FollowUpLogModel
;
use
app\model\GHouses
;
use
app\model\OReportModel
;
use
app\model\Users
;
/**
...
...
@@ -21,6 +22,7 @@ class StatementService
private
$houseModel
;
private
$userModel
;
private
$followUpModel
;
private
$reportModel
;
const
USER_LEVEL_FIST
=
0
;
//经纪人
const
USER_LEVEL_SECOND
=
1
;
//店长
...
...
@@ -32,6 +34,7 @@ class StatementService
$this
->
houseModel
=
new
GHouses
();
$this
->
userModel
=
new
Users
();
$this
->
followUpModel
=
new
FollowUpLogModel
();
$this
->
reportModel
=
new
OReportModel
();
}
/**
...
...
@@ -127,7 +130,8 @@ class StatementService
$result
[
"agent_total"
]
=
$agent_total
;
$result
[
"house_num"
]
=
$this
->
houseModel
->
getAddHouseNumByAgentId
(
$conditions
);
$result
[
"user_num"
]
=
$this
->
userModel
->
getAddUserNumByAgentId
(
$conditions
);
$result
[
"follow_up_num"
]
=
$this
->
followUpModel
->
getAddFollowUpNumByAgentId
(
$conditions
);
//$result["follow_up_num"] = $this->followUpModel->getAddFollowUpNumByAgentId($conditions);
$result
[
"follow_up_num"
]
=
$this
->
reportModel
->
getAddFollowUpNumByAgentId
(
$conditions
);
//todo
$result
[
"store_list"
]
=
$store_list
;
...
...
application/model/OReportModel.php
View file @
dd4b8b77
...
...
@@ -448,4 +448,22 @@ class OReportModel extends Model
->
where
(
$params
)
->
select
();
}
/**
* 获取经纪人新增带看数量
* @param $params
* @return int|string
*/
public
function
getAddFollowUpNumByAgentId
(
$params
){
$where_
=
[];
if
(
isset
(
$params
[
"agent_id"
])){
$where_
[
"report_agent_id"
]
=
$params
[
"agent_id"
];
}
if
(
isset
(
$params
[
"create_time"
])){
$where_
[
"create_time"
]
=
$params
[
"create_time"
];
}
return
Db
::
name
(
$this
->
table
)
->
where
(
$where_
)
->
count
();
}
}
\ 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