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
6f8b73f7
Commit
6f8b73f7
authored
Apr 21, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agent_id
parent
b84afcba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
Finance.php
application/index/controller/Finance.php
+7
-2
No files found.
application/index/controller/Finance.php
View file @
6f8b73f7
...
@@ -2499,7 +2499,7 @@ class Finance extends Basic
...
@@ -2499,7 +2499,7 @@ class Finance extends Basic
$m_partial
=
new
OPartialCommission
();
$m_partial
=
new
OPartialCommission
();
$m_partial
->
editData
([
'is_del'
=>
1
],
$this
->
params
[
'partial_id'
],
'bargain_id'
);
$m_partial
->
editData
([
'is_del'
=>
1
],
$this
->
params
[
'partial_id'
],
'bargain_id'
);
$this
->
updatePerformance
(
0
,
$this
->
params
[
'partial_id'
]
);
$this
->
updatePerformance
All
(
$this
->
params
[
'partial_id'
],
$agent_id
);
$m_tax
=
new
OTaxes
();
$m_tax
=
new
OTaxes
();
$m_tax
->
updateData
([
'is_del'
=>
1
],[
'agent_id'
=>
$agent_id
,
'bargain_id'
=>
$partial_id
]);
$m_tax
->
updateData
([
'is_del'
=>
1
],[
'agent_id'
=>
$agent_id
,
'bargain_id'
=>
$partial_id
]);
...
@@ -2718,7 +2718,7 @@ class Finance extends Basic
...
@@ -2718,7 +2718,7 @@ class Finance extends Basic
* @param int $bargain_id
* @param int $bargain_id
* @return array
* @return array
*/
*/
private
function
updatePerformanceAll
(
int
$bargain_id
=
0
)
:
array
private
function
updatePerformanceAll
(
int
$bargain_id
=
0
,
$agent_id
=
0
)
:
array
{
{
$data
[
'status'
]
=
'fail'
;
$data
[
'status'
]
=
'fail'
;
try
{
try
{
...
@@ -2726,6 +2726,11 @@ class Finance extends Basic
...
@@ -2726,6 +2726,11 @@ class Finance extends Basic
if
(
$bargain_id
)
{
if
(
$bargain_id
)
{
$where
[]
=
[
'EXP'
,
'b.id = '
.
$bargain_id
.
' OR b.father_id='
.
$bargain_id
];
$where
[]
=
[
'EXP'
,
'b.id = '
.
$bargain_id
.
' OR b.father_id='
.
$bargain_id
];
}
}
if
(
$agent_id
)
{
$where
[
'a.id'
]
=
$agent_id
;
}
if
(
!
empty
(
$where
))
{
if
(
!
empty
(
$where
))
{
//获取被修改人信息
//获取被修改人信息
$m_agent
=
new
AAgents
();
$m_agent
=
new
AAgents
();
...
...
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