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