下载优化提示

parent 731d876e
...@@ -539,6 +539,12 @@ public IActionResult DownloadCurrentCalculationTable(int allotid) ...@@ -539,6 +539,12 @@ public IActionResult DownloadCurrentCalculationTable(int allotid)
if (null == allot) if (null == allot)
throw new PerformanceException("当前测算表不存在"); throw new PerformanceException("当前测算表不存在");
if (string.IsNullOrEmpty(allot.Path))
throw new PerformanceException("尚未提交测算表");
if (!FileHelper.IsExistFile(allot.Path))
throw new PerformanceException("测算表文件路径无效");
var memoryStream = new MemoryStream(); var memoryStream = new MemoryStream();
using (var stream = new FileStream(allot.Path, FileMode.Open)) using (var stream = new FileStream(allot.Path, FileMode.Open))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment