|
@@ -15,6 +15,7 @@ import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.util.StringUtils;
|
|
import org.springframework.util.StringUtils;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
@@ -22,6 +23,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
+import com.style24.admin.biz.service.TsaCommonService;
|
|
|
import com.style24.admin.support.controller.TsaBaseController;
|
|
import com.style24.admin.support.controller.TsaBaseController;
|
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -47,6 +49,10 @@ public class TsaCommonController extends TsaBaseController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private Environment env;
|
|
private Environment env;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private TsaCommonService commonService;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
@Value("${upload.default.target.path}")
|
|
@Value("${upload.default.target.path}")
|
|
|
private String uploadTargetPath;
|
|
private String uploadTargetPath;
|
|
|
|
|
|
|
@@ -199,4 +205,17 @@ public class TsaCommonController extends TsaBaseController {
|
|
|
|
|
|
|
|
return mav;
|
|
return mav;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 샘플파일 시스템파일명 조회
|
|
|
|
|
+ * @param sampleFileId - 샘플파일ID
|
|
|
|
|
+ * @return
|
|
|
|
|
+ * @author gagamel
|
|
|
|
|
+ * @since 2020. 11. 3
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/sample/file/{sampleFileId}")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public String getSampleFileSystemFilename(@PathVariable("sampleFileId") String sampleFileId) {
|
|
|
|
|
+ return commonService.getSampleFileSystemFilename(sampleFileId);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|