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
1028998b
Commit
1028998b
authored
Dec 14, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志记录
parent
57530dd8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
Finance.php
application/index/controller/Finance.php
+17
-15
No files found.
application/index/controller/Finance.php
View file @
1028998b
...
...
@@ -2027,15 +2027,15 @@ class Finance extends Basic
$update
[
'role'
]
=
$this
->
params
[
'role'
];
$update
[
'scale_fee'
]
=
$this
->
params
[
'scale_fee'
];
//
$data = $this->m_bargain->updateBargainById($this->params['bargain_id'], $update); //更改分佣方
//
//
$comm = new OPartialCommission();
//
$partial_data['scale'] = $this->params['scale'];
//
$partial_data['role'] = $this->params['role'];
//
$partial_data['should_commission'] = $this->params['scale_fee'];
//
$comm->editData($partial_data, $this->params['bargain_id'], 'bargain_id');
//
$this->updatePerformance(0, $this->params['agent_id']);
//
$this->updatePerformance(0, $data_arr['agent_id']);
$data
=
$this
->
m_bargain
->
updateBargainById
(
$this
->
params
[
'bargain_id'
],
$update
);
//更改分佣方
$comm
=
new
OPartialCommission
();
$partial_data
[
'scale'
]
=
$this
->
params
[
'scale'
];
$partial_data
[
'role'
]
=
$this
->
params
[
'role'
];
$partial_data
[
'should_commission'
]
=
$this
->
params
[
'scale_fee'
];
$comm
->
editData
(
$partial_data
,
$this
->
params
[
'bargain_id'
],
'bargain_id'
);
$this
->
updatePerformance
(
0
,
$this
->
params
[
'agent_id'
]);
$this
->
updatePerformance
(
0
,
$data_arr
[
'agent_id'
]);
/*记录日志 start*/
$father_id
=
$this
->
params
[
'bargain_id'
];
...
...
@@ -2049,14 +2049,16 @@ class Finance extends Basic
$agent_id
[
1
]
=
$this
->
params
[
'agent_id'
];
$m_agent
=
new
AAgents
();
$agent_data
=
$m_agent
->
getAgentById
(
'id,name,phone'
,
[
'in_id'
=>
$agent_id
]);
if
(
$agent_data
[
0
][
'id'
]
==
$data_arr
[
'agent_id'
])
{
$content
.=
'【分佣方:'
.
$agent_data
[
0
][
'name'
]
.
'-'
.
$agent_data
[
0
][
'phone'
];
}
if
(
$agent_data
[
1
][
'id'
]
==
$this
->
params
[
'agent_id'
])
{
$content
.=
'修改为:'
.
$agent_data
[
1
][
'name'
]
.
'-'
.
$agent_data
[
1
][
'phone'
]
.
'】'
;
}
foreach
(
$agent_data
as
$v
)
{
if
(
$v
[
'id'
]
==
$data_arr
[
'agent_id'
])
{
$content
.=
'【分佣方:'
.
$agent_data
[
0
][
'name'
]
.
'-'
.
$agent_data
[
0
][
'phone'
];
}
if
(
$v
[
'id'
]
==
$this
->
params
[
'agent_id'
])
{
$content
.=
'修改为:'
.
$agent_data
[
1
][
'name'
]
.
'-'
.
$agent_data
[
1
][
'phone'
]
.
'】'
;
}
}
}
if
(
$this
->
params
[
'scale'
]
!=
$data_arr
[
'scale'
])
{
...
...
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