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
a6569751
Commit
a6569751
authored
Nov 06, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐藏字段
parent
eac1bdbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
OPartialCommission.php
application/model/OPartialCommission.php
+2
-5
No files found.
application/model/OPartialCommission.php
View file @
a6569751
...
...
@@ -42,18 +42,15 @@ class OPartialCommission extends BaseModel
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
select
();
$result
=
[];
$m_agent
=
new
AAgents
();
$m_real
=
new
ORealIncome
();
$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'
;
foreach
(
$data
as
$k
=>
$v
)
{
//分佣ID
$data
[
$k
][
'commission_id'
]
=
$v
[
"bargain_id"
]
;
if
(
isset
(
$v
[
'agent_id'
]))
{
$agent_data
=
$m_agent
->
getStoreDistrict
(
$fields_str
,
[
'a.id'
=>
$v
[
'agent_id'
]
]);
$data
[
$k
][
'agent'
]
=
$agent_data
[
'name'
]
.
'-'
.
$agent_data
[
'phone'
];
$data
[
$k
][
'district_store'
]
=
$agent_data
[
'
district_name'
]
.
'-'
.
$agent_data
[
'
store_name'
];
$data
[
$k
][
'district_store'
]
=
$agent_data
[
'store_name'
];
}
if
(
$v
[
'father_id'
]
!=
0
)
{
...
...
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