배경이미지 경로 저장 수정

main
이범준 10 months ago
parent e633d20369
commit 5070c4c318

@ -646,8 +646,7 @@ public class Sprt01Controller extends ApplicationController {
String deptCd = currentUser.getDeptCode();
String sggCd = globalStngMapper.selectSggCd(deptCd);
String bgPath = "files"+File.separator+"background"
+File.separator+sggCd;
String bgPath = "files/background/"+sggCd;
String ext = FilenameUtils.getExtension(backgroundFile.getOriginalFilename());
String fileName = otptForm.getTaskSeCd()+"-"+otptForm.getSndngSeCd()+"-"+otptForm.getPaperSeCd()+"."+ext;
@ -655,7 +654,7 @@ public class Sprt01Controller extends ApplicationController {
File workDir = new File(bgPath);
workDir.mkdirs();
try {
String bgFullPath = bgPath + File.separator + fileName;
String bgFullPath = bgPath + "/" + fileName;
File newFile = new File(bgFullPath);
if(newFile.exists()) {
newFile.delete();

Loading…
Cancel
Save