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
9cd64933
Commit
9cd64933
authored
Nov 29, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f9cc51fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Finance.php
application/index/controller/Finance.php
+3
-3
No files found.
application/index/controller/Finance.php
View file @
9cd64933
...
@@ -2205,11 +2205,11 @@ class Finance extends Basic
...
@@ -2205,11 +2205,11 @@ class Finance extends Basic
$where_bargain
[
'agent_id'
]
=
$agent_id
;
$where_bargain
[
'agent_id'
]
=
$agent_id
;
$where_bargain
[
'create_time'
]
=
[
'BETWEEN'
,
[
$date
.
' 00:00:00'
,
$date
.
' 23:59:59'
]];
$where_bargain
[
'create_time'
]
=
[
'BETWEEN'
,
[
$date
.
' 00:00:00'
,
$date
.
' 23:59:59'
]];
$receivedSum
=
$this
->
m_bargain
->
getReceivedGroupTimeNew
(
$where_bargain
);
$receivedSum
=
$this
->
m_bargain
->
getReceivedGroupTimeNew
(
$where_bargain
);
$re
sult_arr
[
"received_sum"
]
=
empty
(
$receivedSum
[
0
][
"num"
])
?
""
:
$receivedSum
[
0
][
"num"
];
$re
ceived_sum
=
empty
(
$receivedSum
[
0
][
"num"
])
?
""
:
$receivedSum
[
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'
]]);
if
(
empty
(
$id
))
{
if
(
empty
(
$id
[
0
]
))
{
$insert_data
[]
=
[
$insert_data
[]
=
[
'store_id'
=>
$district_id
,
'store_id'
=>
$district_id
,
'district_id'
=>
$store_id
,
'district_id'
=>
$store_id
,
...
@@ -2219,7 +2219,7 @@ class Finance extends Basic
...
@@ -2219,7 +2219,7 @@ class Finance extends Basic
];
];
$m_agent_total
->
addTotal
(
$insert_data
);
$m_agent_total
->
addTotal
(
$insert_data
);
}
else
{
}
else
{
$update_data
[
0
][
"
received_sum"
]
=
empty
(
$result_arr
[
"received_sum"
])
?
0
:
$result_arr
[
"received_sum"
]
;
$update_data
[
0
][
"
official_receipts"
]
=
empty
(
$received_sum
)
?
0
:
$received_sum
;
$update_data
[
0
][
'id'
]
=
$id
[
0
][
'id'
];
$update_data
[
0
][
'id'
]
=
$id
[
0
][
'id'
];
$m_agent_total
->
saveTotal
(
$update_data
);
$m_agent_total
->
saveTotal
(
$update_data
);
}
}
...
...
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