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
3a2b52d1
Commit
3a2b52d1
authored
Jul 23, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9363821d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
StoreFeeService.php
application/api_broker/service/StoreFeeService.php
+3
-2
StoreFee.php
application/index/controller/StoreFee.php
+20
-0
No files found.
application/api_broker/service/StoreFeeService.php
View file @
3a2b52d1
...
...
@@ -21,7 +21,7 @@ class StoreFeeService
$this
->
applyForFeeModel
=
new
FApplyForFee
();
$this
->
imgModel
=
new
FImg
();
}
/**
* @param $type
* @param $fee_item
...
...
@@ -37,7 +37,8 @@ class StoreFeeService
* @param $img_arr
* @param int $id
* @return int|string
* @throws \app\model\Exception
* @throws \think\Exception
* @throws \think\exception\PDOException
*/
public
function
addApplyFor
(
$type
,
$fee_item
,
$total_fee
,
$agent_id
,
$store_id
,
$purpose
,
$site_id
,
$card_name
,
$bank
,
$card_no
,
$count_time
,
$img_arr
,
$id
=
0
)
...
...
application/index/controller/StoreFee.php
View file @
3a2b52d1
...
...
@@ -20,11 +20,31 @@ class StoreFee extends Basic
{
protected
$f_office
;
private
$service_
;
public
function
__construct
(
$request
=
null
)
{
parent
::
__construct
(
$request
);
$this
->
f_office
=
new
FOffice
();
$this
->
service_
=
new
StoreFeeService
();
}
public
function
createStoreFee
(){
$params
=
$this
->
params
;
$params
=
array
(
"setting_date"
=>
"2019-06-01"
,
"agent_id"
=>
1
,
);
if
(
!
$params
[
"setting_date"
]
||
!
$params
[
"agent_id"
]){
return
$this
->
response
(
"101"
,
"请求参数错误 "
);
}
$setting_date
=
$params
[
"setting_date"
];
$agent_id
=
$params
[
"agent_id"
];
//todo 1.判断是否都审核过,
//todo 2.计算门店成本 3.总部成本,4.分部成本,5.同联发展基金 6门店单独成本
$this
->
service_
->
calculateStoreFee
(
$setting_date
,
$agent_id
);
}
/**
...
...
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