Commit 92f78aef by yangxiujun

fix:修改上传

1 parent 8c0688e9
...@@ -110,7 +110,7 @@ public class FileController { ...@@ -110,7 +110,7 @@ public class FileController {
//上传成功,删除上传的进度条 //上传成功,删除上传的进度条
orderCreateService.delRate(token); orderCreateService.delRate(token);
} }
if (rate != null && (rate.getTotalCount() == rate.getErrorCount() + rate.getTotalCount())) { if (rate != null && (rate.getTotalCount() == (rate.getErrorCount() + rate.getSuccessCount()))) {
//上传成功,删除上传的进度条 //上传成功,删除上传的进度条
orderCreateService.delRate(token); orderCreateService.delRate(token);
} }
......
...@@ -10,15 +10,15 @@ public class FileRateDTO { ...@@ -10,15 +10,15 @@ public class FileRateDTO {
/** /**
* 文件总条数 * 文件总条数
*/ */
private Integer totalCount; private Integer totalCount =0 ;
/** /**
* 错误条数 * 错误条数
*/ */
private Integer errorCount; private Integer errorCount = 0;
/** /**
* 成功条数 * 成功条数
*/ */
private Integer successCount; private Integer successCount = 0;
/** /**
* 比列 * 比列
*/ */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!