|
@@ -50,16 +50,14 @@ public class ExportPaperController {
|
|
|
@PathVariable String orgName){
|
|
|
log.info("导出开始");
|
|
|
try {
|
|
|
- /*if("石油大学".equals(orgName)){
|
|
|
+ if("石油大学".equals(orgName)){
|
|
|
sydxExportPaperService.downloadPaper(id,response);
|
|
|
}else{
|
|
|
ExportServiceManage esm = exportServiceManageRepo.findByOrgName(orgName);
|
|
|
ExportPaperAbstractService exportPaperAbstractService = (ExportPaperAbstractService) SpringContextUtils.getBeanById(esm.getExportServiceName());
|
|
|
exportPaperAbstractService.downloadPaper(id, response);
|
|
|
- }*/
|
|
|
- ExportServiceManage esm = exportServiceManageRepo.findByOrgName("电子科技大学");
|
|
|
- ExportPaperAbstractService exportPaperAbstractService = (ExportPaperAbstractService) SpringContextUtils.getBeanById(esm.getExportServiceName());
|
|
|
- exportPaperAbstractService.downloadPaper(id, response);
|
|
|
+ }
|
|
|
+ //String folderLocalPath = request.getSession().getServletContext().getRealPath("/docxExport/");
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
log.error("导出异常:"+e.getMessage());
|