|
|
|
@ -64,6 +64,7 @@ public class DocController extends AbstractController {
|
|
|
|
|
File file = new File(resultFilePath);
|
|
|
|
|
Relation rel = new Relation().setInfoType("200").setSubType("01").setInfoKey(dscMngId);
|
|
|
|
|
FileInfo fileInfo = new FileInfo.Factory().create(rel, file);
|
|
|
|
|
fileInfo.setName(print.getFormatKorName()+".hwp");
|
|
|
|
|
int effected= fileService.create(fileInfo);
|
|
|
|
|
String fileId = fileInfo.getId();
|
|
|
|
|
file.delete();
|
|
|
|
@ -130,6 +131,7 @@ public class DocController extends AbstractController {
|
|
|
|
|
File file = new File(resultFilePath);
|
|
|
|
|
Relation rel = new Relation().setInfoType("200").setSubType("02").setInfoKey(dscMngId);
|
|
|
|
|
FileInfo fileInfo = new FileInfo.Factory().create(rel, file);
|
|
|
|
|
fileInfo.setName(print.getFormatKorName()+".hwp");
|
|
|
|
|
int effected= fileService.create(fileInfo);
|
|
|
|
|
String fileId = fileInfo.getId();
|
|
|
|
|
file.delete();
|
|
|
|
|