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
2b43016e
Commit
2b43016e
authored
Dec 04, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分档统计
parent
188ab01a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
AAgents.php
application/model/AAgents.php
+1
-1
AStore.php
application/model/AStore.php
+1
-1
No files found.
application/model/AAgents.php
View file @
2b43016e
...
...
@@ -431,7 +431,7 @@ class AAgents extends BaseModel
as aa left join
(select a.id,c.store_name,a.name,a.phone,0.00 as performance from a_agents a
left join t_agent_total b on a.id=b.agent_id left join a_store c on a.store_id=c.id
where b.total_time BETWEEN '
$startTime
' and '
$endTime
'and a.status in (0,3)
$str_ids
GROUP BY b.agent_id )
where
a.site_id=
$siteId
and
b.total_time BETWEEN '
$startTime
' and '
$endTime
'and a.status in (0,3)
$str_ids
GROUP BY b.agent_id )
as bb on aa.id = bb.id where bb.id is null"
;
$data
=
Db
::
table
(
$this
->
table
)
->
query
(
$sql
);
//echo $this->getLastSql();
...
...
application/model/AStore.php
View file @
2b43016e
...
...
@@ -313,7 +313,7 @@ class AStore extends BaseModel
as aa left join
(select a.id,a.store_name,0.00 as performance from a_store a
left join t_agent_total b on a.id=b.store_id
where b.total_time BETWEEN '
$startTime
' and '
$endTime
'and a.status =0
$str_ids
GROUP BY b.store_id )
where
a.site_id=
$siteId
and
b.total_time BETWEEN '
$startTime
' and '
$endTime
'and a.status =0
$str_ids
GROUP BY b.store_id )
as bb on aa.id = bb.id where bb.id is null"
;
$data
=
Db
::
table
(
$this
->
table
)
->
query
(
$sql
);
//echo $this->getLastSql();
...
...
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