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
33369459
Commit
33369459
authored
Oct 17, 2019
by
zw
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test'
parents
35b608e4
3bda6f0c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
OperationData.php
application/index/controller/OperationData.php
+3
-2
TAgentTotalModel.php
application/model/TAgentTotalModel.php
+4
-3
TLookShopModel.php
application/model/TLookShopModel.php
+1
-1
No files found.
application/index/controller/OperationData.php
View file @
33369459
...
@@ -423,7 +423,7 @@ class OperationData extends Basic
...
@@ -423,7 +423,7 @@ class OperationData extends Basic
}
else
{
}
else
{
$conditions
[
'site_id'
]
=
$v
[
'site_id'
];
$conditions
[
'site_id'
]
=
$v
[
'site_id'
];
}
}
$conditions
[
'
create
_time'
]
=
array
(
'between'
,
array
(
$p_start
.
" 00:00:00"
,
$p_end
.
" 23:59:59"
)
);
$conditions
[
'
total
_time'
]
=
array
(
'between'
,
array
(
$p_start
.
" 00:00:00"
,
$p_end
.
" 23:59:59"
)
);
$performanceSum
=
$m_total
->
performanceStatistics
(
$conditions
,
1
);
$performanceSum
=
$m_total
->
performanceStatistics
(
$conditions
,
1
);
$value_
[
'performance'
]
=
isset
(
$performanceSum
[
0
][
"performance_total"
])
?
$performanceSum
[
0
][
"performance_total"
]
:
0
;
$value_
[
'performance'
]
=
isset
(
$performanceSum
[
0
][
"performance_total"
])
?
$performanceSum
[
0
][
"performance_total"
]
:
0
;
...
@@ -435,7 +435,8 @@ class OperationData extends Basic
...
@@ -435,7 +435,8 @@ class OperationData extends Basic
}
else
{
}
else
{
$conditions
[
'site_id'
]
=
$v
[
'site_id'
];
$conditions
[
'site_id'
]
=
$v
[
'site_id'
];
}
}
$conditions
[
'create_time'
]
=
array
(
'between'
,
array
(
$r_p_start
.
" 00:00:00"
,
$r_p__end
.
" 23:59:59"
)
);
$conditions
[
'total_time'
]
=
array
(
'between'
,
array
(
$r_p_start
.
" 00:00:00"
,
$r_p__end
.
" 23:59:59"
)
);
$real_performanceSum
=
$m_total
->
performanceStatistics
(
$conditions
,
2
);
$real_performanceSum
=
$m_total
->
performanceStatistics
(
$conditions
,
2
);
$value_
[
'real_performance'
]
=
isset
(
$real_performanceSum
[
0
][
"official_receipts_total"
])
?
$real_performanceSum
[
0
][
"official_receipts_total"
]
:
0
;
$value_
[
'real_performance'
]
=
isset
(
$real_performanceSum
[
0
][
"official_receipts_total"
])
?
$real_performanceSum
[
0
][
"official_receipts_total"
]
:
0
;
...
...
application/model/TAgentTotalModel.php
View file @
33369459
...
@@ -364,8 +364,8 @@ class TAgentTotalModel extends Model
...
@@ -364,8 +364,8 @@ class TAgentTotalModel extends Model
$field
=
"sum(a.official_receipts) as official_receipts_total"
;
$field
=
"sum(a.official_receipts) as official_receipts_total"
;
}
}
if
(
isset
(
$params
[
"
create
_time"
]))
{
if
(
isset
(
$params
[
"
total
_time"
]))
{
$where_
[
"a.
create_time"
]
=
$params
[
"create
_time"
];
$where_
[
"a.
total_time"
]
=
$params
[
"total
_time"
];
}
}
if
(
isset
(
$params
[
"site_id"
]))
{
if
(
isset
(
$params
[
"site_id"
]))
{
...
@@ -378,7 +378,7 @@ class TAgentTotalModel extends Model
...
@@ -378,7 +378,7 @@ class TAgentTotalModel extends Model
->
join
(
"a_agents b"
,
"a.agent_id = b.id"
,
"left"
)
->
join
(
"a_agents b"
,
"a.agent_id = b.id"
,
"left"
)
->
where
(
$where_
)
->
where
(
$where_
)
->
select
();
->
select
();
//
dump
($this->getLastSql());
//
big_log
($this->getLastSql());
return
$return
;
return
$return
;
}
}
}
}
\ No newline at end of file
application/model/TLookShopModel.php
View file @
33369459
...
@@ -44,7 +44,7 @@ class TLookShopModel extends Model
...
@@ -44,7 +44,7 @@ class TLookShopModel extends Model
->
where
(
$condition
)
->
where
(
$condition
)
->
page
(
$pageNo
)
->
page
(
$pageNo
)
->
limit
(
$pageSize
)
->
limit
(
$pageSize
)
//
->order("id desc")
->
order
(
"id desc"
)
->
select
();
->
select
();
}
}
public
function
getListCount
(
$condition
,
$field
)
public
function
getListCount
(
$condition
,
$field
)
...
...
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