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
caff8dee
Commit
caff8dee
authored
Jun 19, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分佣提成明细表
parent
34669944
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
OPartialCommission.php
application/model/OPartialCommission.php
+8
-0
No files found.
application/model/OPartialCommission.php
View file @
caff8dee
...
@@ -40,6 +40,7 @@ class OPartialCommission extends BaseModel
...
@@ -40,6 +40,7 @@ class OPartialCommission extends BaseModel
$result
=
[];
$result
=
[];
$m_agent
=
new
AAgents
();
$m_agent
=
new
AAgents
();
$m_bargain
=
new
OBargainModel
();
$fields_str
=
'a.id,a.name,a.phone,b.store_name,c.district_name'
;
$fields_str
=
'a.id,a.name,a.phone,b.store_name,c.district_name'
;
foreach
(
$data
as
$k
=>
$v
)
{
foreach
(
$data
as
$k
=>
$v
)
{
$result
[
$k
]
=
$v
;
$result
[
$k
]
=
$v
;
...
@@ -67,6 +68,13 @@ class OPartialCommission extends BaseModel
...
@@ -67,6 +68,13 @@ class OPartialCommission extends BaseModel
}
}
}
}
if
(
isset
(
$v
[
'bargain_id'
]))
{
$bargain_id
=
$m_bargain
->
where
(
'id'
,
$v
[
'bargain_id'
])
->
value
(
'father_id'
);
if
(
$bargain_id
!=
0
)
{
$data
[
$k
][
'bargain_id'
]
=
$bargain_id
;
}
}
}
}
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