Commit 291282f2 by liyanlin

fix

parent 8e6df1b0
...@@ -76,6 +76,7 @@ public class CostDetailServiceImpl extends ServiceImpl<CostDetailDao, CostDetail ...@@ -76,6 +76,7 @@ public class CostDetailServiceImpl extends ServiceImpl<CostDetailDao, CostDetail
} }
BeanUtils.copyProperties(req, costDetailDomain); BeanUtils.copyProperties(req, costDetailDomain);
if(req.getFilePath() == null || req.getFilePath().isEmpty()) {
if (req.getFileSelect2() != null) { if (req.getFileSelect2() != null) {
// 文件上传的路径 // 文件上传的路径
//String filePath = PathUtil.getBasePath() + PathUtil.getPath("cost/" + costDetailDomain.getDetailNo() + "/"); //String filePath = PathUtil.getBasePath() + PathUtil.getPath("cost/" + costDetailDomain.getDetailNo() + "/");
...@@ -88,6 +89,7 @@ public class CostDetailServiceImpl extends ServiceImpl<CostDetailDao, CostDetail ...@@ -88,6 +89,7 @@ public class CostDetailServiceImpl extends ServiceImpl<CostDetailDao, CostDetail
} }
costDetailDomain.setFilePath(path); costDetailDomain.setFilePath(path);
} }
}
if (StringUtils.isNotEmpty(req.getTypeNo())) { if (StringUtils.isNotEmpty(req.getTypeNo())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment