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
5e89ed62
Commit
5e89ed62
authored
Nov 06, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取新增商铺数g_houses_to_agents
parent
a1f80d31
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
StatementService.php
application/api_broker/service/StatementService.php
+10
-7
GHousesToAgents.php
application/model/GHousesToAgents.php
+2
-4
No files found.
application/api_broker/service/StatementService.php
View file @
5e89ed62
...
...
@@ -5,6 +5,7 @@ namespace app\api_broker\service;
use
app\model\AAgents
;
use
app\model\FollowUpLogModel
;
use
app\model\GHouses
;
use
app\model\GHousesToAgents
;
use
app\model\OBargainModel
;
use
app\model\OMarchInModel
;
use
app\model\OReportModel
;
...
...
@@ -22,6 +23,7 @@ class StatementService
private
$agentModel
;
private
$houseModel
;
private
$housesToAgents
;
private
$userModel
;
private
$followUpModel
;
private
$reportModel
;
...
...
@@ -33,12 +35,13 @@ class StatementService
function
__construct
()
{
$this
->
agentModel
=
new
AAgents
();
$this
->
houseModel
=
new
GHouses
();
$this
->
userModel
=
new
Users
();
$this
->
agentModel
=
new
AAgents
();
$this
->
houseModel
=
new
GHouses
();
$this
->
housesToAgents
=
new
GHousesToAgents
();
$this
->
userModel
=
new
Users
();
$this
->
followUpModel
=
new
FollowUpLogModel
();
$this
->
reportModel
=
new
OReportModel
();
$this
->
marchInModel
=
new
OMarchInModel
();
$this
->
reportModel
=
new
OReportModel
();
$this
->
marchInModel
=
new
OMarchInModel
();
}
/**
...
...
@@ -140,7 +143,7 @@ class StatementService
$result
[
"agent_total"
]
=
$agent_total
;
$result
[
"house_num"
]
=
$this
->
house
Model
->
getAddHouseNumByAgentId
(
$conditions
);
$result
[
"house_num"
]
=
$this
->
house
sToAgents
->
getAddHouseNumByAgentId
(
$conditions
);
//dump($conditions);
$result
[
"user_num"
]
=
$this
->
userModel
->
getAddUserNumByAgentId
(
$conditions
);
//dump($conditions);
...
...
@@ -362,7 +365,7 @@ class StatementService
//是门店 统计个人业绩
$store_list
[
"agent_id"
]
=
$agent_id
;
$store_list
[
"agent_name"
]
=
$agent_name
;
$store_list
[
"house_num"
]
=
$this
->
house
Model
->
getAddHouseNumByAgentId
(
$conditions_
);
$store_list
[
"house_num"
]
=
$this
->
house
sToAgents
->
getAddHouseNumByAgentId
(
$conditions_
);
$store_list
[
"user_num"
]
=
$this
->
userModel
->
getAddUserNumByAgentId
(
$conditions_
);
//$store_list["follow_up_num"] = $this->followUpModel->getAddFollowUpNumByAgentId($conditions_);
$addMarchInNum
=
$this
->
marchInModel
->
getAddMarchInNum
(
$conditions_
);
...
...
application/model/GHousesToAgents.php
View file @
5e89ed62
...
...
@@ -461,7 +461,7 @@ class GHousesToAgents extends BaseModel
/**
* 获取
经纪人时间段中新添加的楼盘个
数
* 获取
新增商铺
数
* @param $params
* @return int|string
*/
...
...
@@ -477,8 +477,6 @@ class GHousesToAgents extends BaseModel
$where_
[
"create_time"
]
=
$params
[
"create_time"
];
}
return
Db
::
table
(
$this
->
table
)
->
where
(
$where_
)
->
count
();
return
$this
->
where
(
$where_
)
->
count
();
}
}
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