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
60f496e7
Commit
60f496e7
authored
Jul 23, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
office_id
parent
3502f660
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
StoreFeeService.php
application/api_broker/service/StoreFeeService.php
+9
-6
StoreFee.php
application/index/controller/StoreFee.php
+2
-1
No files found.
application/api_broker/service/StoreFeeService.php
View file @
60f496e7
...
...
@@ -21,7 +21,7 @@ class StoreFeeService
$this
->
applyForFeeModel
=
new
FApplyForFee
();
$this
->
imgModel
=
new
FImg
();
}
/**
* @param $type
* @param $fee_item
...
...
@@ -36,15 +36,15 @@ class StoreFeeService
* @param $count_time
* @param $img_arr
* @param int $id
* @param int $office_id
* @return int|string
* @throws \think\Exception
* @throws \think\exception\PDOException
* @throws \app\model\Exception
*/
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
)
$bank
,
$card_no
,
$count_time
,
$img_arr
,
$id
=
0
,
$office_id
=
0
)
{
$arr
=
$this
->
applyForFeeBin
(
$id
,
$type
,
$fee_item
,
$total_fee
,
$agent_id
,
$store_id
,
$purpose
,
$site_id
,
$card_name
,
$bank
,
$card_no
,
$count_time
);
$bank
,
$card_no
,
$count_time
,
$office_id
);
$feeId
=
$this
->
applyForFeeModel
->
saveData
(
$arr
);
if
(
$feeId
>
0
)
{
$this
->
imgModel
->
addImgAll
(
$feeId
,
1
,
$img_arr
);
...
...
@@ -95,7 +95,7 @@ class StoreFeeService
* @return array
*/
private
function
applyForFeeBin
(
$id
,
$type
,
$fee_item
,
$total_fee
,
$agent_id
,
$store_id
,
$purpose
,
$site_id
,
$card_name
,
$bank
,
$card_no
,
$count_time
)
$bank
,
$card_no
,
$count_time
,
$office_id
)
{
$arr
=
[];
...
...
@@ -129,6 +129,9 @@ class StoreFeeService
if
(
$card_no
)
{
$arr
[
"card_no"
]
=
$card_no
;
}
if
(
$office_id
)
{
$arr
[
"office_id"
]
=
$office_id
;
}
if
(
$count_time
)
{
$arr
[
"count_time"
]
=
$count_time
;
}
elseif
(
$id
<=
0
&&
!
$count_time
)
{
...
...
application/index/controller/StoreFee.php
View file @
60f496e7
...
...
@@ -378,6 +378,7 @@ class StoreFee extends Basic
$bank
=
$params
[
"bank"
];
$card_no
=
$params
[
"card_no"
];
$count_time
=
$params
[
"count_time"
];
$office_id
=
$params
[
"office_id"
];
$img_arr
=
isset
(
$params
[
"img_arr"
])
?
json_decode
(
$params
[
"img_arr"
],
true
)
:
""
;
if
(
!
$img_arr
)
{
return
$this
->
response
(
"101"
,
"请上传图片"
);
...
...
@@ -388,7 +389,7 @@ class StoreFee extends Basic
return
$this
->
response
(
"101"
,
"类型选择错误"
);
}
$is_ok
=
$service_
->
addApplyFor
(
$type
,
$fee_item
,
$total_fee
,
$agent_id
,
$store_id
,
$purpose
,
$site_id
,
$card_name
,
$bank
,
$card_no
,
$count_time
,
$img_arr
,
$id
);
$bank
,
$card_no
,
$count_time
,
$img_arr
,
$id
,
$office_id
);
if
(
$is_ok
>
0
)
{
return
$this
->
response
(
"200"
,
"request success"
,
[]);
}
else
{
...
...
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