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
e6080a29
Commit
e6080a29
authored
Jul 30, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f4efa5b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
CostParameter.php
application/index/controller/CostParameter.php
+5
-6
No files found.
application/index/controller/CostParameter.php
View file @
e6080a29
...
...
@@ -83,7 +83,7 @@ class CostParameter extends Basic
$store_data_res
=
$this
->
m_store
->
getStoreCostParameter
(
$field
,
$f_params
);
if
(
!
$store_data_res
){
$transfer_charge
=
$this
->
getTransferCharge
(
$v
[
'id'
]);
$transfer_charge
=
$this
->
getTransferCharge
(
$v
[
'id'
]
,
$params
[
'setting_date'
]
);
$list
[
$k
][
'transfer_charge'
]
=
$transfer_charge
;
//手续费
$social_security_fee
=
$this
->
getLastSocialSecurityFee
(
$v
[
'id'
],
$params
[
'setting_date'
]);
$list
[
$k
][
'social_security_fee'
]
=
$social_security_fee
;
//当月社保报销
...
...
@@ -139,19 +139,18 @@ class CostParameter extends Basic
/**
* 获取手续费
* @param $store_id
* @param $setting_date
* @return int
*/
public
function
getTransferCharge
(
$store_id
)
public
function
getTransferCharge
(
$store_id
,
$setting_date
)
{
$agent_ids
=
$this
->
getUserIDList
(
$store_id
);
// big_log("======{$store_id}======");
// big_log($agent_ids);
$transfer_charge
=
0
;
foreach
(
$agent_ids
as
$k
=>
$v
)
{
$m_partial
=
new
OPartialCommission
();
$start_date
=
date
(
'Y
-m-01'
,
strtotime
(
'-1 month'
))
;
$end_date
=
date
(
'Y
-m-t'
,
strtotime
(
'-1 month'
))
;
$start_date
=
date
(
'Y
m01 23:59:59'
,
strtotime
(
'-1 month'
,
strtotime
(
$setting_date
)));
;
$end_date
=
date
(
'Y
md 00:00:00'
,
strtotime
(
'-1 month'
,
strtotime
(
$setting_date
)));
;
$fields
=
'sum( a.service_charge ) as service_charge'
;
$where
[
'b.status'
]
=
array
(
'in'
,
'10,11,13'
);
$where
[
'a.is_del'
]
=
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