|
@@ -29,9 +29,6 @@ import com.ufo.project.forecast.fileupload.service.IDataReportLogService;
|
|
|
@RequestMapping("/fileupload/reportLog")
|
|
@RequestMapping("/fileupload/reportLog")
|
|
|
public class DataReportLogController extends BaseController
|
|
public class DataReportLogController extends BaseController
|
|
|
{
|
|
{
|
|
|
- /** 上报文件根目录, content_path为其下的相对路径 */
|
|
|
|
|
- @Value("${project.forecast.reportfile.rootfolder}")
|
|
|
|
|
- private String reportFileRootFolder;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IDataReportLogService dataReportLogService;
|
|
private IDataReportLogService dataReportLogService;
|
|
@@ -65,7 +62,7 @@ public class DataReportLogController extends BaseController
|
|
|
{
|
|
{
|
|
|
return AjaxResult.error("该记录无上报名文文件");
|
|
return AjaxResult.error("该记录无上报名文文件");
|
|
|
}
|
|
}
|
|
|
- File file = new File(reportFileRootFolder, path);
|
|
|
|
|
|
|
+ File file = new File(path);
|
|
|
if (!file.exists() || !file.isFile())
|
|
if (!file.exists() || !file.isFile())
|
|
|
{
|
|
{
|
|
|
return AjaxResult.error("上报文件不存在: " + path);
|
|
return AjaxResult.error("上报文件不存在: " + path);
|