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
cee38d61
Commit
cee38d61
authored
Oct 11, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
截取字符串前3位
parent
34bb42ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
PerformanceInfo.php
application/index/controller/PerformanceInfo.php
+11
-3
No files found.
application/index/controller/PerformanceInfo.php
View file @
cee38d61
...
@@ -108,6 +108,9 @@ class PerformanceInfo extends Basic
...
@@ -108,6 +108,9 @@ class PerformanceInfo extends Basic
foreach
(
$return
as
$key
=>
$val
)
{
foreach
(
$return
as
$key
=>
$val
)
{
$return_
=
$m_commission
->
getPracticalFee
(
$val
[
"id"
]);
$return_
=
$m_commission
->
getPracticalFee
(
$val
[
"id"
]);
$return
[
$key
][
'practical_fee'
]
=
$return_
[
0
][
'practical_fee'
]
?
$return_
[
0
][
'practical_fee'
]
:
0
;
$return
[
$key
][
'practical_fee'
]
=
$return_
[
0
][
'practical_fee'
]
?
$return_
[
0
][
'practical_fee'
]
:
0
;
//截取字符串前3位
$return
[
$key
][
'landmark'
]
=
$val
[
"landmark"
]
?
mb_substr
(
$val
[
"landmark"
],
0
,
3
,
'utf-8'
)
.
'****'
:
''
;
}
//end
}
//end
$return_total
=
$this
->
oBargainModel
->
performancelInfoTotal
(
$where
,
$field
);
$return_total
=
$this
->
oBargainModel
->
performancelInfoTotal
(
$where
,
$field
);
...
@@ -206,10 +209,15 @@ class PerformanceInfo extends Basic
...
@@ -206,10 +209,15 @@ class PerformanceInfo extends Basic
$return_
=
$m_commission
->
getPracticalFee
(
$v
[
"id"
]);
$return_
=
$m_commission
->
getPracticalFee
(
$v
[
"id"
]);
$practical_fee
=
$return_
[
0
][
'practical_fee'
]
?
$return_
[
0
][
'practical_fee'
]
:
0
;
//end
$practical_fee
=
$return_
[
0
][
'practical_fee'
]
?
$return_
[
0
][
'practical_fee'
]
:
0
;
//end
$e_data_old
[
'landmark'
]
=
$v
[
'landmark'
];
//商铺地址
//截取字符串前3位
$landmark
=
$v
[
"landmark"
]
?
mb_substr
(
$v
[
"landmark"
],
0
,
3
,
'utf-8'
)
.
'****'
:
''
;
$e_data_old
[
'landmark'
]
=
$landmark
;
//商铺地址
$e_data_old
[
'house_id'
]
=
$v
[
'house_id'
];
//商铺编号
$e_data_old
[
'house_id'
]
=
$v
[
'house_id'
];
//商铺编号
$e_data_old
[
'name_phone'
]
=
$v
[
'name'
]
.
'-'
.
$v
[
'phone'
];
//分佣提成方
//$e_data_old['name_phone'] = $v['name'].'-'.$v['phone'];//分佣提成方
$e_data_old
[
'district_name'
]
=
$v
[
'district_name'
]
.
'-'
.
$v
[
'store_name'
];
//所属部门
$e_data_old
[
'name_phone'
]
=
$v
[
'name'
];
//分佣提成方
//$e_data_old['district_name'] = $v['district_name'].'-'.$v['store_name'];//所属部门
$e_data_old
[
'district_name'
]
=
$v
[
'store_name'
];
//所属部门
$e_data_old
[
'scale'
]
=
$v
[
'scale'
];
//分佣比例
$e_data_old
[
'scale'
]
=
$v
[
'scale'
];
//分佣比例
$e_data_old
[
'scale_fee'
]
=
$v
[
'scale_fee'
];
//应收佣金
$e_data_old
[
'scale_fee'
]
=
$v
[
'scale_fee'
];
//应收佣金
$e_data_old
[
'practical_fee'
]
=
$practical_fee
;
//实收佣金
$e_data_old
[
'practical_fee'
]
=
$practical_fee
;
//实收佣金
...
...
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