修改参数统计
This commit is contained in:
+3
-2
@@ -3010,8 +3010,9 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
|
||||
dataRow.createCell(3).setCellValue(submitAmount);
|
||||
dataRow.createCell(4).setCellValue(syncReporAmount);
|
||||
double parameterCollectingCount = notStartAmount + collectingAmount + submitAmount + syncReporAmount;
|
||||
double parameterCollectingPercentage = (syncReporAmount / parameterCollectingCount) * 100;
|
||||
String parameterCollectingPercentageStr = (parameterCollectingPercentage != 0 && (syncReporAmount !=0 )) ? df.format(parameterCollectingPercentage) : "0";
|
||||
double completionCount = submitAmount + syncReporAmount;
|
||||
double parameterCollectingPercentage = (completionCount / parameterCollectingCount) * 100;
|
||||
String parameterCollectingPercentageStr = (parameterCollectingPercentage != 0 && (completionCount !=0 )) ? df.format(parameterCollectingPercentage) : "0";
|
||||
dataRow.createCell(5).setCellValue(parameterCollectingPercentageStr + percentSign);
|
||||
}
|
||||
|
||||
|
||||
+6
-4
@@ -984,8 +984,9 @@ public class ProjectStatusBoardServiceImpl implements IProjectStatusBoardService
|
||||
syncReporAmount = (double) syncReporMap.get("amount");
|
||||
|
||||
double parameterCollectingCount = notStartAmount + collectingAmount + submitAmount + syncReporAmount;
|
||||
double parameterCollectingPercentage = ((submitAmount + syncReporAmount) / parameterCollectingCount) * 100;
|
||||
parameterCollectingPercentageStr = (parameterCollectingPercentage != 0 && (syncReporAmount !=0 )) ? df.format(parameterCollectingPercentage) : "0";
|
||||
double completionCount = submitAmount + syncReporAmount;
|
||||
double parameterCollectingPercentage = (completionCount / parameterCollectingCount) * 100;
|
||||
parameterCollectingPercentageStr = (parameterCollectingPercentage != 0 && (completionCount !=0 )) ? df.format(parameterCollectingPercentage) : "0";
|
||||
}
|
||||
dataRow.createCell(51).setCellValue(notStartAmount);
|
||||
dataRow.createCell(52).setCellValue(collectingAmount);
|
||||
@@ -1187,8 +1188,9 @@ public class ProjectStatusBoardServiceImpl implements IProjectStatusBoardService
|
||||
double syncReporAmount = (double) syncReporMap.get("amount");
|
||||
|
||||
double parameterCollectingCount = notStartAmount + collectingAmount + submitAmount + syncReporAmount;
|
||||
double parameterCollectingPercentage = (submitAmount + syncReporAmount) / parameterCollectingCount;
|
||||
parameterCollectingPercentageStr = (parameterCollectingPercentage != 0 && (syncReporAmount !=0 )) ? parameterCollectingPercentage : 0;
|
||||
double completionCount = submitAmount + syncReporAmount;
|
||||
double parameterCollectingPercentage = (completionCount) / parameterCollectingCount;
|
||||
parameterCollectingPercentageStr = (parameterCollectingPercentage != 0 && (completionCount !=0 )) ? parameterCollectingPercentage : 0;
|
||||
}
|
||||
|
||||
Map<String,Object> certificationProgressMap = this.projectCertificationInventoryEOService.groupByCertificationProgress(pciEos);
|
||||
|
||||
Reference in New Issue
Block a user