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
d9a3430d
Commit
d9a3430d
authored
Jul 25, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f2d13f84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
StoreFeeService.php
application/api_broker/service/StoreFeeService.php
+11
-11
No files found.
application/api_broker/service/StoreFeeService.php
View file @
d9a3430d
...
@@ -265,6 +265,8 @@ class StoreFeeService
...
@@ -265,6 +265,8 @@ class StoreFeeService
public
function
creationStoreFeeDetail
(
$cost_id
,
$setting_date
)
public
function
creationStoreFeeDetail
(
$cost_id
,
$setting_date
)
{
{
$storeSettingInfo
=
$this
->
getStoreData
(
$setting_date
);
$storeSettingInfo
=
$this
->
getStoreData
(
$setting_date
);
dump
(
$storeSettingInfo
);
exit
;
if
(
!
$storeSettingInfo
)
{
if
(
!
$storeSettingInfo
)
{
return
"当月门店数据未设置"
;
return
"当月门店数据未设置"
;
}
}
...
@@ -376,11 +378,11 @@ class StoreFeeService
...
@@ -376,11 +378,11 @@ class StoreFeeService
//分部
//分部
$disc_assume_fee1
=
ceil
(
$attendance_num
/
$officeAttendanceNum
*
$apply_for_fee
*
100
)
*
0.01
;
$disc_assume_fee1
=
ceil
(
$attendance_num
/
$officeAttendanceNum
*
$apply_for_fee
*
100
)
*
0.01
;
$disc_assume_fee2
=
ceil
(
$attendance_num
/
$officeAttendanceNum
*
$apply_for_fee
*
100
)
*
0.01
;
$disc_assume_fee2
=
ceil
(
$attendance_num
/
$officeAttendanceNum
*
$apply_for_fee
*
100
)
*
0.01
;
array_push
(
$insertArr
,
$this
->
storeCostExtBin
(
$cost_id
,
$store_id
,
3
,
301
,
0
,
$create_time
,
array_push
(
$insertArr
,
$this
->
storeCostExtBin
(
$cost_id
,
$store_id
,
3
,
301
,
0
,
$create_time
,
$rent_fixed
,
$attendance_num
,
$officeAttendanceNum
,
$districtNum
,
$companyAttendanceNum
,
$rent_fixed
,
$attendance_num
,
$officeAttendanceNum
,
$districtNum
,
$companyAttendanceNum
,
$disc_assume_fee1
,
""
$disc_assume_fee1
,
""
));
));
array_push
(
$insertArr
,
$this
->
storeCostExtBin
(
$cost_id
,
$store_id
,
3
,
302
,
0
,
$create_time
,
array_push
(
$insertArr
,
$this
->
storeCostExtBin
(
$cost_id
,
$store_id
,
3
,
302
,
0
,
$create_time
,
$apply_for_fee
,
$attendance_num
,
$officeAttendanceNum
,
$districtNum
,
$companyAttendanceNum
,
$apply_for_fee
,
$attendance_num
,
$officeAttendanceNum
,
$districtNum
,
$companyAttendanceNum
,
$disc_assume_fee2
,
""
$disc_assume_fee2
,
""
));
));
...
@@ -409,13 +411,11 @@ class StoreFeeService
...
@@ -409,13 +411,11 @@ class StoreFeeService
$storeCostExtModel
=
new
FStoreCostExt
();
$storeCostExtModel
=
new
FStoreCostExt
();
$is_ok
=
$storeCostExtModel
->
addCostExt
(
$insertArr
);
$is_ok
=
$storeCostExtModel
->
addCostExt
(
$insertArr
);
if
(
$is_ok
)
{
}
return
1
;
if
(
$is_ok
)
{
}
else
{
return
1
;
return
"数据保存异常"
;
}
else
{
}
return
"数据保存异常"
;
}
}
}
}
...
@@ -634,12 +634,12 @@ class StoreFeeService
...
@@ -634,12 +634,12 @@ class StoreFeeService
public
function
saveImageData
(
$data
,
$img_id
)
public
function
saveImageData
(
$data
,
$img_id
)
{
{
$num
=
0
;
$num
=
0
;
foreach
(
$data
as
$k
=>
$v
)
{
foreach
(
$data
as
$k
=>
$v
)
{
if
(
empty
(
$v
))
{
if
(
empty
(
$v
))
{
continue
;
continue
;
}
}
$save_data
[
$k
][
'img_id'
]
=
$img_id
;
$save_data
[
$k
][
'img_id'
]
=
$img_id
;
$save_data
[
$k
][
'img_name'
]
=
$v
;
$save_data
[
$k
][
'img_name'
]
=
$v
;
$save_data
[
$k
][
'img_type'
]
=
1
;
$save_data
[
$k
][
'img_type'
]
=
1
;
}
}
...
...
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