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
5f1af5a3
Commit
5f1af5a3
authored
Jun 11, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增开票税费修改
parent
eea99ffe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
OBargainModel.php
application/model/OBargainModel.php
+9
-2
No files found.
application/model/OBargainModel.php
View file @
5f1af5a3
...
@@ -862,7 +862,7 @@ class OBargainModel extends Model
...
@@ -862,7 +862,7 @@ class OBargainModel extends Model
*/
*/
public
function
getAgentTypeByBargainId
(
int
$bargain_id
)
:
array
public
function
getAgentTypeByBargainId
(
int
$bargain_id
)
:
array
{
{
$result
=
[];
$m_partial
=
new
OPartialCommission
();
$m_partial
=
new
OPartialCommission
();
$partial_bargain
=
$m_partial
->
getBragainScale
(
$bargain_id
);
$partial_bargain
=
$m_partial
->
getBragainScale
(
$bargain_id
);
...
@@ -870,11 +870,18 @@ class OBargainModel extends Model
...
@@ -870,11 +870,18 @@ class OBargainModel extends Model
$bargain_id_arr
[]
=
$val
[
'bargain_id'
];
$bargain_id_arr
[]
=
$val
[
'bargain_id'
];
}
}
$data
=
$this
->
field
(
'role,agent_id,scale,scale_fee'
)
if
(
empty
(
$bargain_id_arr
[
0
]))
{
$data
=
$this
->
field
(
'role,agent_id,scale,scale_fee'
)
->
where
(
'id'
,
$bargain_id
)
->
whereOr
(
'father_id'
,
$bargain_id
)
->
select
();
}
else
{
$data
=
$this
->
field
(
'role,agent_id,scale,scale_fee'
)
->
where
(
'id'
,
$bargain_id
)
->
where
(
'id'
,
$bargain_id
)
->
where
(
'id'
,
'not in'
,
implode
(
','
,
$bargain_id_arr
))
->
where
(
'id'
,
'not in'
,
implode
(
','
,
$bargain_id_arr
))
// ->whereOr('father_id', $bargain_id)
// ->whereOr('father_id', $bargain_id)
->
select
();
->
select
();
}
if
(
!
empty
(
$partial_bargain
))
{
if
(
!
empty
(
$partial_bargain
))
{
$data
=
array_merge
(
$partial_bargain
,
$data
);
$data
=
array_merge
(
$partial_bargain
,
$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