|
|
|
@ -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();
|
|
|
|
|