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
6c060575
Commit
6c060575
authored
Apr 29, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成绩报告统计
parent
e8731cf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Finance.php
application/index/controller/Finance.php
+5
-0
No files found.
application/index/controller/Finance.php
View file @
6c060575
...
@@ -2814,6 +2814,9 @@ class Finance extends Basic
...
@@ -2814,6 +2814,9 @@ class Finance extends Basic
$performance_sum
=
empty
(
$performanceSum
[
0
][
"num"
])
?
0
:
$performanceSum
[
0
][
"num"
];
$performance_sum
=
empty
(
$performanceSum
[
0
][
"num"
])
?
0
:
$performanceSum
[
0
][
"num"
];
$id
=
$m_agent_total
->
getTotalEndTimeByAgentId
(
'id'
,
[
'total_time'
=>
$date
,
'agent_id'
=>
$where_bargain
[
'agent_id'
]]);
$id
=
$m_agent_total
->
getTotalEndTimeByAgentId
(
'id'
,
[
'total_time'
=>
$date
,
'agent_id'
=>
$where_bargain
[
'agent_id'
]]);
//成交报告
$bargainSum
=
$this
->
m_bargain
->
getAddBargainNumGroupTimeNew
(
$where_bargain
,
3
);
//表示统计
$bargain_sum
=
empty
(
$bargainSum
[
0
][
"num"
])
?
0
:
$bargainSum
[
0
][
'num'
];
if
(
empty
(
$id
[
0
][
'id'
]))
{
if
(
empty
(
$id
[
0
][
'id'
]))
{
$insert_data
[]
=
[
$insert_data
[]
=
[
'store_id'
=>
$store_id
,
'store_id'
=>
$store_id
,
...
@@ -2822,6 +2825,7 @@ class Finance extends Basic
...
@@ -2822,6 +2825,7 @@ class Finance extends Basic
'official_receipts'
=>
$received_sum
,
'official_receipts'
=>
$received_sum
,
'performance'
=>
$performance_sum
,
'performance'
=>
$performance_sum
,
'total_time'
=>
$date
,
'total_time'
=>
$date
,
'bargain_sum'
=>
$bargain_sum
,
'create_time'
=>
date
(
'Y-m-d H:i:s'
)
'create_time'
=>
date
(
'Y-m-d H:i:s'
)
];
];
$m_agent_total
->
addTotal
(
$insert_data
);
$m_agent_total
->
addTotal
(
$insert_data
);
...
@@ -2829,6 +2833,7 @@ class Finance extends Basic
...
@@ -2829,6 +2833,7 @@ class Finance extends Basic
$update_data
[]
=
[
$update_data
[]
=
[
'official_receipts'
=>
$received_sum
,
'official_receipts'
=>
$received_sum
,
'performance'
=>
$performance_sum
,
'performance'
=>
$performance_sum
,
'bargain_sum'
=>
$bargain_sum
,
'id'
=>
$id
[
0
][
'id'
],
'id'
=>
$id
[
0
][
'id'
],
'update_time'
=>
date
(
'Y-m-d H:i:s'
)
'update_time'
=>
date
(
'Y-m-d H:i:s'
)
];
];
...
...
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