项目库-项目详情-参数收集统计-百分比计算修改

This commit is contained in:
liyawei
2022-08-02 15:32:17 +08:00
parent 6e06bf7c20
commit 1e6f8c2460
@@ -652,8 +652,7 @@ public class ParamsManifestEOServiceImpl extends ServiceImpl<ParamsManifestEOMap
paramsCollectManifestEO.setParamsManifestId(paramsManifestId);
List<Map<String, Object>> listAll = paramsCollectManifestEOMapper.listInfoForExport(paramsCollectManifestEO);
double total = listAll.size();
// 循环责任领域,计算每个责任领域中的四种状态数据
dutyTerritoryDictList.forEach(item->{
if (CutEnum.EN.getValue().equals(cut)) {
@@ -683,6 +682,7 @@ public class ParamsManifestEOServiceImpl extends ServiceImpl<ParamsManifestEOMap
.count(); // 已同步上报库的参数项 数量
// 计算百分比
double total = notStartNumber + collectingNumber + submitNumber + syncReportNumber; // 当前责任领域参数项总数
String notStartPercent = getRatio(notStartNumber, total); // 未开始的参数项 百分比
String collectingPercent = getRatio(collectingNumber, total); // 收集中的参数项 百分比
String submitPercent = getRatio(submitNumber, total); // 已提交的参数项 百分比