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
67d6b801
Commit
67d6b801
authored
May 29, 2018
by
clone
Committed by
hujun
May 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
4f390e0b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
Finance.php
application/index/controller/Finance.php
+7
-2
OBargainModel.php
application/model/OBargainModel.php
+6
-4
No files found.
application/index/controller/Finance.php
View file @
67d6b801
...
@@ -704,13 +704,18 @@ class Finance extends Basic
...
@@ -704,13 +704,18 @@ class Finance extends Basic
$j
++
;
$j
++
;
}
}
}
}
if
(
$i
>
0
)
{
if
(
$j
==
0
){
//没有新增数据,则把最后一条数据的分佣比例和应分佣金改掉
$m_partial
->
addCommission
(
$update_arr
);
}
}
if
(
$j
>
0
)
{
if
(
$j
>
0
)
{
$m_partial
->
addCommission
(
$add_arr
);
$m_partial
->
addCommission
(
$add_arr
);
}
}
if
(
$i
>
0
)
{
$m_partial
->
addCommission
(
$update_arr
);
}
// $data = $m_partial->addCommission($this->params, $this->userId);
// $data = $m_partial->addCommission($this->params, $this->userId);
return
$this
->
response
(
"200"
,
"request success"
,
[]);
return
$this
->
response
(
"200"
,
"request success"
,
[]);
}
}
...
...
application/model/OBargainModel.php
View file @
67d6b801
...
@@ -618,13 +618,15 @@ class OBargainModel extends Model
...
@@ -618,13 +618,15 @@ class OBargainModel extends Model
$partial_commission
=
$m_partial
->
field
(
'id,scale,practical_fee,cash,service_charge,charity_fund,real_fee,confirm_date,confirm_status,should_commission'
)
$partial_commission
=
$m_partial
->
field
(
'id,scale,practical_fee,cash,service_charge,charity_fund,real_fee,confirm_date,confirm_status,should_commission'
)
->
where
(
'bargain_id'
,
$v
[
'id'
])
->
where
(
'bargain_id'
,
$v
[
'id'
])
->
where
(
'is_del'
,
0
)
->
where
(
'is_del'
,
0
)
->
order
(
"id
de
sc"
)
->
order
(
"id
a
sc"
)
->
select
();
->
select
();
//todo 最后一个分佣提成如果不为空则取其值
//todo 最后一个分佣提成如果不为空则取其值
if
(
$partial_commission
&&
$partial_commission
[
0
][
"scale"
]
>
0
)
{
$i
=
count
(
$partial_commission
)
-
1
;
$result
[
$k
][
"scale"
]
=
$partial_commission
[
0
][
"scale"
];
if
(
$partial_commission
&&
$partial_commission
[
$i
][
"scale"
]
>
0
)
{
$result
[
$k
][
"scale_fee"
]
=
$partial_commission
[
0
][
"should_commission"
];
$result
[
$k
][
"scale"
]
=
$partial_commission
[
$i
][
"scale"
];
$result
[
$k
][
"scale_fee"
]
=
$partial_commission
[
$i
][
"should_commission"
];
}
}
$result
[
"last_commission_id"
]
=
$partial_commission
[
$i
][
"id"
];
$result
[
$k
][
'partial_commission'
]
=
$partial_commission
;
$result
[
$k
][
'partial_commission'
]
=
$partial_commission
;
}
}
return
$result
;
return
$result
;
...
...
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