|
@@ -462,6 +462,28 @@ public class TssMarketingController extends TssBaseController {
|
|
|
planService.createPlanContents(param);
|
|
planService.createPlanContents(param);
|
|
|
return super.ok(message.getMessage("SUCC_0001"));
|
|
return super.ok(message.getMessage("SUCC_0001"));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 첨부파일 삭제
|
|
|
|
|
+ * @param plan_content - 기획전템플릿 첨부파일
|
|
|
|
|
+ * @return
|
|
|
|
|
+ * @throws IOException
|
|
|
|
|
+ * @author sowon
|
|
|
|
|
+ * @since 2021. 05. 06
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/planning/detail/template/file/delete")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public GagaResponse deletePlanTemplateFile(@RequestBody Plan plan) throws IOException {
|
|
|
|
|
+ // 파일 삭제
|
|
|
|
|
+ String fileName = GagaFileUtil.getConcatenationPath(uploadTargetPath, "planning", plan.getFileItemVal());
|
|
|
|
|
+
|
|
|
|
|
+ GagaFileUtil.deleteFile(fileName);
|
|
|
|
|
+
|
|
|
|
|
+ // 삭제된 파일 DB 처리
|
|
|
|
|
+ planService.deletePlanTemplateFile(plan);
|
|
|
|
|
+
|
|
|
|
|
+ return super.ok(message.getMessage("SUCC_0003"));
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|