Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-cost
Overview
Overview
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
huluobin
bailuntec-cost
Commits
291282f2
Commit
291282f2
authored
Aug 18, 2021
by
liyanlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8e6df1b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
CostDetailServiceImpl.java
...other/module/cost/service/impl/CostDetailServiceImpl.java
+12
-10
No files found.
cost-service/src/main/java/com/blt/other/module/cost/service/impl/CostDetailServiceImpl.java
View file @
291282f2
...
...
@@ -76,17 +76,19 @@ public class CostDetailServiceImpl extends ServiceImpl<CostDetailDao, CostDetail
}
BeanUtils
.
copyProperties
(
req
,
costDetailDomain
);
if
(
req
.
getFileSelect2
()
!=
null
)
{
// 文件上传的路径
//String filePath = PathUtil.getBasePath() + PathUtil.getPath("cost/" + costDetailDomain.getDetailNo() + "/");
// 调用工具类执行保存,并返回 path
String
path
=
null
;
try
{
path
=
CostFileUtil
.
qiniuUpload
(
req
.
getFileSelect2
());
}
catch
(
IOException
e
)
{
throw
new
BizException
(
"上传文件失败"
);
if
(
req
.
getFilePath
()
==
null
||
req
.
getFilePath
().
isEmpty
())
{
if
(
req
.
getFileSelect2
()
!=
null
)
{
// 文件上传的路径
//String filePath = PathUtil.getBasePath() + PathUtil.getPath("cost/" + costDetailDomain.getDetailNo() + "/");
// 调用工具类执行保存,并返回 path
String
path
=
null
;
try
{
path
=
CostFileUtil
.
qiniuUpload
(
req
.
getFileSelect2
());
}
catch
(
IOException
e
)
{
throw
new
BizException
(
"上传文件失败"
);
}
costDetailDomain
.
setFilePath
(
path
);
}
costDetailDomain
.
setFilePath
(
path
);
}
if
(
StringUtils
.
isNotEmpty
(
req
.
getTypeNo
()))
{
...
...
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