|
|
|
@ -68,7 +68,7 @@ public class ProjectInfoServiceImpl implements ProjectInfoService {
|
|
|
|
|
// projectInfoEntity.setPic(projectInfoEntity.getFile().getOriginalFilename());
|
|
|
|
|
String currentPath = System.getProperty("user.dir"); |
|
|
|
|
FileUtils.copyFile(projectInfoEntity.getFile(), currentPath + Constant.PROJECT_IMG_PATH); |
|
|
|
|
projectInfoEntity.setPicContent("/image/"+projectInfoEntity.getFile().getOriginalFilename()); |
|
|
|
|
projectInfoEntity.setPicContent("/images/"+projectInfoEntity.getFile().getOriginalFilename()); |
|
|
|
|
projectInfoEntity.setPic(projectInfoEntity.getFile().getOriginalFilename()); |
|
|
|
|
} |
|
|
|
|
projectInfoEntity.setCreateTime(new Date()); |
|
|
|
|