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
175de13d
Commit
175de13d
authored
Dec 06, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
最适合业态
parent
66bffe79
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
RankingListService.php
application/index/service/RankingListService.php
+2
-2
AStore.php
application/model/AStore.php
+2
-2
No files found.
application/index/service/RankingListService.php
View file @
175de13d
...
...
@@ -187,11 +187,11 @@ class RankingListService
{
$storeModel
=
new
AStore
();
$fields
=
"a.id,a.store_name,SUM(b.performance) as performance"
;
$params
[
"a.id"
]
=
array
(
"not in"
,
"5288,3742,5292"
);
//
$params["a.id"] = array("not in","5288,3742,5292");
//查询出有业绩的经纪人
$have_performance_arr
=
$storeModel
->
getStoreListByPK
(
$fields
,
$params
);
//查询出无业绩的经纪人
$arr
=
$storeModel
->
getStoreListByPk1
(
$params
[
"a.site_id"
],
$begin_time
,
$end_time
,
$ids
,
"5288,3742,5292"
);
$arr
=
$storeModel
->
getStoreListByPk1
(
$params
[
"a.site_id"
],
$begin_time
,
$end_time
,
$ids
);
return
array_merge
(
$have_performance_arr
,
$arr
);
}
...
...
application/model/AStore.php
View file @
175de13d
...
...
@@ -301,10 +301,10 @@ class AStore extends BaseModel
//echo $this->getLastSql();
return
$data
;
}
public
function
getStoreListByPk1
(
$siteId
,
$startTime
,
$endTime
,
$ids
,
$notIds
){
public
function
getStoreListByPk1
(
$siteId
,
$startTime
,
$endTime
,
$ids
){
$str_ids
=
" "
;
if
(
$ids
){
$str_ids
=
" and a.id in (
$ids
)
and a.id not in (
$notIds
)
"
;
$str_ids
=
" and a.id in (
$ids
)"
;
}
$sql
=
"select aa.id,aa.store_name,aa.performance from
...
...
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