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
f111439e
Commit
f111439e
authored
Aug 20, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9886c3c8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
StoreFeeService.php
application/api_broker/service/StoreFeeService.php
+1
-0
Finance.php
application/index/controller/Finance.php
+1
-1
StoreFee.php
application/index/controller/StoreFee.php
+6
-5
route.php
application/route.php
+1
-1
No files found.
application/api_broker/service/StoreFeeService.php
View file @
f111439e
...
...
@@ -707,6 +707,7 @@ class StoreFeeService
public
function
importStoreFee
(
$file_path
)
{
echo
111
;
$reader
=
new
\PhpOffice\PhpSpreadsheet\Reader\Xlsx
();
$reader
->
setReadDataOnly
(
true
);
$spreadsheet
=
""
;
...
...
application/index/controller/Finance.php
View file @
f111439e
...
...
@@ -4502,7 +4502,7 @@ class Finance extends Basic
}
$m_pay_adjustment
=
new
OPayLogAdjustment
();
$adjustment_data
=
$m_pay_adjustment
->
getAdjustmentList
(
'id,new_paylog_id,paylog_id,money,type,reckon_in_store
_id
'
,
[
'id'
=>
$this
->
params
[
'id'
]]);
$adjustment_data
=
$m_pay_adjustment
->
getAdjustmentList
(
'id,new_paylog_id,paylog_id,money,type,reckon_in_store'
,
[
'id'
=>
$this
->
params
[
'id'
]]);
if
(
empty
(
$adjustment_data
[
0
][
'id'
]))
{
return
$this
->
response
(
$code
,
'没有该调整详情'
);
...
...
application/index/controller/StoreFee.php
View file @
f111439e
...
...
@@ -124,17 +124,18 @@ class StoreFee extends Basic
public
function
importStoreFee
()
{
header
(
'Access-Control-Allow-Origin:*'
);
set_time_limit
(
0
);
/*
set_time_limit(0);
$file = $_FILES['file'];
$type = request()->param('type'); //excel_import
$uploadFileService = new UploadFileService();
$uploadResult = $uploadFileService->upload($file, $type, 15000000, ['xls', 'xlsx']);
if
(
$uploadResult
[
"code"
]
==
200
)
{
$result
=
$this
->
service_
->
importStoreFee
(
$uploadResult
[
"msg"
]);
return
$this
->
response
(
"200"
,
"excel上传成功"
,
$uploadResult
[
"msg"
]);
if ($uploadResult["code"] == 200) {*/
// $result = $this->service_->importStoreFee($uploadResult["msg"]);
$result
=
$this
->
service_
->
importStoreFee
(
"20190820/20190820110629513.xlsx"
);
/* return $this->response("200", "excel上传成功", $uploadResult["msg"]);
} else {
return $this->response("101", $uploadResult["msg"]);
}
}
*/
}
/**
...
...
application/route.php
View file @
f111439e
...
...
@@ -559,7 +559,7 @@ Route::group('index', [
'getStoreOffice'
=>
[
'index/Store/getStoreOffice'
,
[
'method'
=>
'GET'
]],
//获取费用承担办公室
'creationStoreFee'
=>
[
'index/StoreFee/creationStoreFee'
,
[
'method'
=>
'POST|GET'
]],
'getStoreFeeDetail'
=>
[
'index/StoreFee/getStoreFeeDetail'
,
[
'method'
=>
'POST|GET'
]],
'importStoreFee'
=>
[
'index/StoreFee/importStoreFee'
,
[
'method'
=>
'POST'
]],
'importStoreFee'
=>
[
'index/StoreFee/importStoreFee'
,
[
'method'
=>
'POST
|get
'
]],
'getStoreCostParameterList'
=>
[
'index/CostParameter/getStoreCostParameterList'
,
[
'method'
=>
'POST|GET'
]],
'editCostParameter'
=>
[
'index/CostParameter/editCostParameter'
,
[
'method'
=>
'POST|GET'
]],
...
...
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