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
e8b1bed2
Commit
e8b1bed2
authored
Jan 28, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除税费
parent
ea06519d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
OBargainModel.php
application/model/OBargainModel.php
+7
-9
No files found.
application/model/OBargainModel.php
View file @
e8b1bed2
...
...
@@ -1220,20 +1220,18 @@ class OBargainModel extends Model
$partial_bargain
=
$m_partial
->
getBragainScale
(
$bargain_id
);
foreach
(
$partial_bargain
as
$val
)
{
$bargain_id_arr
[]
=
$val
[
'
bargain
_id'
];
$bargain_id_arr
[]
=
$val
[
'
agent
_id'
];
}
if
(
empty
(
$bargain_id_arr
[
0
]))
{
$data
=
$this
->
field
(
'role,agent_id,scale,scale_fee'
)
->
where
(
''
,
'EXP'
,
'id='
.
$bargain_id
.
' OR father_id='
.
$bargain_id
)
->
where
(
'is_del'
,
0
)
->
select
();
}
else
{
$data
=
$this
->
field
(
'role,agent_id,scale,scale_fee'
)
->
where
(
'id'
,
$bargain_id
)
->
where
(
'id'
,
'not in'
,
implode
(
','
,
$bargain_id_arr
))
->
whereOr
(
'is_del'
,
0
)
->
where
(
'status'
,
'<>'
,
30
)
->
select
();
foreach
(
$data
as
$k
=>
$v
)
{
if
(
in_array
(
$v
[
'agent_id'
],
$bargain_id_arr
))
{
unset
(
$data
[
$k
]);
}
}
if
(
!
empty
(
$partial_bargain
))
{
...
...
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