项目状态看板-导出(认证任务确认,Pre-Homo流程,认证进度,参数收集进度)
This commit is contained in:
+32
-28
@@ -6563,9 +6563,9 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
double inProgressCount = 0; // 进行中
|
double inProgressCount = 0; // 进行中
|
||||||
double testPassedCount = 0; // 实验通过
|
double testPassedCount = 0; // 实验通过
|
||||||
double testFailedCount = 0; // 实验失败
|
double testFailedCount = 0; // 实验失败
|
||||||
double notSubmitCount = 0; // 部件报告未上传
|
// double notSubmitCount = 0; // 部件报告未上传
|
||||||
double reportSubmitCount = 0; // 部件报告已上传
|
// double reportSubmitCount = 0; // 部件报告已上传
|
||||||
double storedCount = 0; // 部件报告已入库
|
// double storedCount = 0; // 部件报告已入库
|
||||||
double count = 0;
|
double count = 0;
|
||||||
// 计算百分比
|
// 计算百分比
|
||||||
double percentage = 0;
|
double percentage = 0;
|
||||||
@@ -6585,6 +6585,7 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
List<ProjectCertificationInventoryEO> inProgressPciEoList = pciEos.stream().filter(data -> {
|
List<ProjectCertificationInventoryEO> inProgressPciEoList = pciEos.stream().filter(data -> {
|
||||||
boolean flag = (
|
boolean flag = (
|
||||||
StringUtils.equals(data.getCertificationProgress(),CertificationProgressEnum.IN_PROGRESS.getValue())
|
StringUtils.equals(data.getCertificationProgress(),CertificationProgressEnum.IN_PROGRESS.getValue())
|
||||||
|
|| StringUtils.equals(data.getCertificationProgress(),CertificationProgressEnum.COMPONENT_REPORT_NOT_SUBMITTED.getValue())
|
||||||
);
|
);
|
||||||
return flag;
|
return flag;
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
@@ -6594,6 +6595,8 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
List<ProjectCertificationInventoryEO> testPassedPciEoList = pciEos.stream().filter(data -> {
|
List<ProjectCertificationInventoryEO> testPassedPciEoList = pciEos.stream().filter(data -> {
|
||||||
boolean flag = (
|
boolean flag = (
|
||||||
StringUtils.equals(data.getCertificationProgress(),CertificationProgressEnum.TEST_PASSED.getValue())
|
StringUtils.equals(data.getCertificationProgress(),CertificationProgressEnum.TEST_PASSED.getValue())
|
||||||
|
|| StringUtils.equals(data.getCertificationProgress(),CertificationProgressEnum.COMPONENT_REPORT_SUBMITTED.getValue())
|
||||||
|
|| StringUtils.equals(data.getCertificationProgress(),CertificationProgressEnum.COMPONENT_REPORT_HAS_BEEN_STORED.getValue())
|
||||||
);
|
);
|
||||||
return flag;
|
return flag;
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
@@ -6609,33 +6612,34 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
testFailedCount = (double) testFailedPciEoList.size();
|
testFailedCount = (double) testFailedPciEoList.size();
|
||||||
|
|
||||||
// 部件报告未提交
|
// 部件报告未提交
|
||||||
List<ProjectCertificationInventoryEO> notSubmitPciEoList = pciEos.stream().filter(data -> {
|
// List<ProjectCertificationInventoryEO> notSubmitPciEoList = pciEos.stream().filter(data -> {
|
||||||
boolean flag = (
|
// boolean flag = (
|
||||||
StringUtils.equals(data.getCertificationProgress(),CertificationProgressEnum.COMPONENT_REPORT_NOT_SUBMITTED.getValue())
|
// StringUtils.equals(data.getCertificationProgress(),CertificationProgressEnum.COMPONENT_REPORT_NOT_SUBMITTED.getValue())
|
||||||
);
|
// );
|
||||||
return flag;
|
// return flag;
|
||||||
}).collect(Collectors.toList());
|
// }).collect(Collectors.toList());
|
||||||
notSubmitCount = (double) notSubmitPciEoList.size();
|
// notSubmitCount = (double) notSubmitPciEoList.size();
|
||||||
|
|
||||||
// 部件报告已提交
|
// 部件报告已提交
|
||||||
List<ProjectCertificationInventoryEO> reportSubmitPciEoList = pciEos.stream().filter(data -> {
|
// List<ProjectCertificationInventoryEO> reportSubmitPciEoList = pciEos.stream().filter(data -> {
|
||||||
boolean flag = (
|
// boolean flag = (
|
||||||
StringUtils.equals(data.getCertificationProgress(),CertificationProgressEnum.COMPONENT_REPORT_SUBMITTED.getValue())
|
// StringUtils.equals(data.getCertificationProgress(),CertificationProgressEnum.COMPONENT_REPORT_SUBMITTED.getValue())
|
||||||
);
|
// );
|
||||||
return flag;
|
// return flag;
|
||||||
}).collect(Collectors.toList());
|
// }).collect(Collectors.toList());
|
||||||
reportSubmitCount = (double) reportSubmitPciEoList.size();
|
// reportSubmitCount = (double) reportSubmitPciEoList.size();
|
||||||
|
|
||||||
// 部件报告已入库
|
// 部件报告已入库
|
||||||
List<ProjectCertificationInventoryEO> storedPciEoList = pciEos.stream().filter(data -> {
|
// List<ProjectCertificationInventoryEO> storedPciEoList = pciEos.stream().filter(data -> {
|
||||||
boolean flag = (
|
// boolean flag = (
|
||||||
StringUtils.equals(data.getCertificationProgress(),CertificationProgressEnum.COMPONENT_REPORT_HAS_BEEN_STORED.getValue())
|
// StringUtils.equals(data.getCertificationProgress(),CertificationProgressEnum.COMPONENT_REPORT_HAS_BEEN_STORED.getValue())
|
||||||
);
|
// );
|
||||||
return flag;
|
// return flag;
|
||||||
}).collect(Collectors.toList());
|
// }).collect(Collectors.toList());
|
||||||
storedCount = (double) storedPciEoList.size();
|
// storedCount = (double) storedPciEoList.size();
|
||||||
|
|
||||||
count = notStartCount + inProgressCount + testPassedCount + testFailedCount + testFailedCount + notSubmitCount + reportSubmitCount + storedCount;
|
// count = notStartCount + inProgressCount + testPassedCount + testFailedCount + testFailedCount + notSubmitCount + reportSubmitCount + storedCount;
|
||||||
|
count = notStartCount + inProgressCount + testPassedCount + testFailedCount + testFailedCount;
|
||||||
if(count<=0){
|
if(count<=0){
|
||||||
percentage = 0;
|
percentage = 0;
|
||||||
}else {
|
}else {
|
||||||
@@ -6648,9 +6652,9 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
projectScheduleExportMap.put("inProgressCount",inProgressCount);
|
projectScheduleExportMap.put("inProgressCount",inProgressCount);
|
||||||
projectScheduleExportMap.put("testPassedCount",testPassedCount);
|
projectScheduleExportMap.put("testPassedCount",testPassedCount);
|
||||||
projectScheduleExportMap.put("testFailedCount",testFailedCount);
|
projectScheduleExportMap.put("testFailedCount",testFailedCount);
|
||||||
projectScheduleExportMap.put("notSubmitCount",notSubmitCount);
|
// projectScheduleExportMap.put("notSubmitCount",notSubmitCount);
|
||||||
projectScheduleExportMap.put("reportSubmitCount",reportSubmitCount);
|
// projectScheduleExportMap.put("reportSubmitCount",reportSubmitCount);
|
||||||
projectScheduleExportMap.put("storedCount",storedCount);
|
// projectScheduleExportMap.put("storedCount",storedCount);
|
||||||
projectScheduleExportMap.put("count",count);
|
projectScheduleExportMap.put("count",count);
|
||||||
projectScheduleExportMap.put("percentage",percentageStr + percentSign);
|
projectScheduleExportMap.put("percentage",percentageStr + percentSign);
|
||||||
result.put("projectScheduleExportMap",projectScheduleExportMap);
|
result.put("projectScheduleExportMap",projectScheduleExportMap);
|
||||||
|
|||||||
+2
-1
@@ -781,7 +781,7 @@ public class ProjectLibraryStatisticsServiceImpl implements IProjectLibraryStati
|
|||||||
boolean flag = (
|
boolean flag = (
|
||||||
StringUtils.equals(data.getState(), CollectManifestStateEnum.WAIT_COLLECT.getValue())
|
StringUtils.equals(data.getState(), CollectManifestStateEnum.WAIT_COLLECT.getValue())
|
||||||
|| StringUtils.equals(data.getState(), CollectManifestStateEnum.SDT_BACK.getValue())
|
|| StringUtils.equals(data.getState(), CollectManifestStateEnum.SDT_BACK.getValue())
|
||||||
|| StringUtils.equals(data.getState(), CollectManifestStateEnum.CHANGE.getValue())
|
// || StringUtils.equals(data.getState(), CollectManifestStateEnum.CHANGE.getValue())
|
||||||
);
|
);
|
||||||
return flag;
|
return flag;
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
@@ -803,6 +803,7 @@ public class ProjectLibraryStatisticsServiceImpl implements IProjectLibraryStati
|
|||||||
List<ParamsCollectManifestEO> submitPcmEoList = datas.stream().filter(data -> {
|
List<ParamsCollectManifestEO> submitPcmEoList = datas.stream().filter(data -> {
|
||||||
boolean flag = (
|
boolean flag = (
|
||||||
StringUtils.equals(data.getState(), CollectManifestStateEnum.SUBMIT.getValue())
|
StringUtils.equals(data.getState(), CollectManifestStateEnum.SUBMIT.getValue())
|
||||||
|
|| StringUtils.equals(data.getState(), CollectManifestStateEnum.CHANGE.getValue())
|
||||||
);
|
);
|
||||||
return flag;
|
return flag;
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
|
|||||||
+3
-3
@@ -1135,9 +1135,9 @@ public class ProjectStatusBoardServiceImpl implements IProjectStatusBoardService
|
|||||||
double certificationProgressInProgressCount = (double) certificationProgressMapProjectScheduleExportMap.get("inProgressCount");
|
double certificationProgressInProgressCount = (double) certificationProgressMapProjectScheduleExportMap.get("inProgressCount");
|
||||||
double certificationProgressTestPassedCount = (double) certificationProgressMapProjectScheduleExportMap.get("testPassedCount");
|
double certificationProgressTestPassedCount = (double) certificationProgressMapProjectScheduleExportMap.get("testPassedCount");
|
||||||
double certificationProgressTestFailedCount = (double) certificationProgressMapProjectScheduleExportMap.get("testFailedCount");
|
double certificationProgressTestFailedCount = (double) certificationProgressMapProjectScheduleExportMap.get("testFailedCount");
|
||||||
double certificationProgressNotSubmitCount = (double) certificationProgressMapProjectScheduleExportMap.get("notSubmitCount");
|
// double certificationProgressNotSubmitCount = (double) certificationProgressMapProjectScheduleExportMap.get("notSubmitCount");
|
||||||
double certificationProgressReportSubmitCount = (double) certificationProgressMapProjectScheduleExportMap.get("reportSubmitCount");
|
// double certificationProgressReportSubmitCount = (double) certificationProgressMapProjectScheduleExportMap.get("reportSubmitCount");
|
||||||
double certificationProgressStoredCount = (double) certificationProgressMapProjectScheduleExportMap.get("storedCount");
|
// double certificationProgressStoredCount = (double) certificationProgressMapProjectScheduleExportMap.get("storedCount");
|
||||||
// String certificationProgressCount = (String) certificationProgressMapProjectScheduleExportMap.get("count");
|
// String certificationProgressCount = (String) certificationProgressMapProjectScheduleExportMap.get("count");
|
||||||
String certificationProgressPercentage = (String) certificationProgressMapProjectScheduleExportMap.get("percentage");
|
String certificationProgressPercentage = (String) certificationProgressMapProjectScheduleExportMap.get("percentage");
|
||||||
dataRow.createCell(38).setCellValue(certificationProgressNotStartCount);
|
dataRow.createCell(38).setCellValue(certificationProgressNotStartCount);
|
||||||
|
|||||||
Reference in New Issue
Block a user