功能: 扩展上传文件统计支持已删除状态
This commit is contained in:
@@ -29,6 +29,9 @@ public class CcdiFileUploadStatisticsVO implements Serializable {
|
||||
/** 解析失败数量 */
|
||||
private Long parsedFailed;
|
||||
|
||||
/** 已删除数量 */
|
||||
private Long deleted;
|
||||
|
||||
/** 总数量 */
|
||||
private Long total;
|
||||
}
|
||||
|
||||
@@ -274,6 +274,7 @@ public class CcdiFileUploadServiceImpl implements ICcdiFileUploadService {
|
||||
vo.setParsing(0L);
|
||||
vo.setParsedSuccess(0L);
|
||||
vo.setParsedFailed(0L);
|
||||
vo.setDeleted(0L);
|
||||
|
||||
long total = 0L;
|
||||
for (Map<String, Object> item : statusCounts) {
|
||||
@@ -286,6 +287,7 @@ public class CcdiFileUploadServiceImpl implements ICcdiFileUploadService {
|
||||
case "parsing" -> vo.setParsing(count);
|
||||
case "parsed_success" -> vo.setParsedSuccess(count);
|
||||
case "parsed_failed" -> vo.setParsedFailed(count);
|
||||
case "deleted" -> vo.setDeleted(count);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user