Merge remote-tracking branch 'origin/fix_20230911_UAT' into fix_20230911_UAT
This commit is contained in:
+2
@@ -43,6 +43,8 @@ public enum OperatorTypeEnum {
|
||||
QUERY_CERTIFICATION_PROGRESS_STATISTICS_ALL("查询认证进度统计-全部","queryCertificationProgressStatisticsAll"),
|
||||
QUERY_CERTIFICATION_PROGRESS_STATISTICS_CAR("查询认证进度统计-整车","queryCertificationProgressStatisticsCar"),
|
||||
QUERY_CERTIFICATION_PROGRESS_STATISTICS_PART("查询认证进度统计-零部件","queryCertificationProgressStatisticsPart"),
|
||||
QUERY_DESIGN_TASK_CONFIRMATION("查询设计任务确认统计","queryDesignTaskConfirmation"),
|
||||
QUERY_VERIFICATION_TASK_CONFIRMATION("查询验证任务确认统计","queryVerificationTaskConfirmation"),
|
||||
|
||||
ADD_LAWS_OPINION_GATHER("添加法规意见收集数据","addLawsOpinionGather"),
|
||||
UPDATE_LAWS_OPINION_GATHER_GATHER_RESULT("更新法规意见收集数据收集结果","updateLawsOpinionGatherGatherResult"),
|
||||
|
||||
+16
@@ -19,6 +19,22 @@ public interface IProjectLibraryStatisticsService {
|
||||
*/
|
||||
Map<String, Object> getFGTaskToConfirmStatisticsGroupByTerritory(List<ProjectLawsInventoryEO> datas, Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 获取法规清单-法规符合性管理-设计任务确认-根据责任领域分组
|
||||
* @param datas
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
Map<String, Object> getDesignToConfirmStatisticsGroupByTerritory(List<ProjectLawsInventoryEO> datas, Map<String, Object> params);
|
||||
|
||||
/**
|
||||
*获取法规清单-法规符合性管理-验证任务确认-根据责任领域分组
|
||||
* @param datas
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
Map<String, Object> getVerifyToConfirmStatisticsGroupByTerritory(List<ProjectLawsInventoryEO> datas, Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 法规符合性管理--设计
|
||||
* @param datas
|
||||
|
||||
+5
-1
@@ -2243,6 +2243,10 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
|
||||
dataMaps = this.projectLibraryStatisticsService.getDesignComplianceStatisticeGroupByTerritory(pliEoList,params);
|
||||
}else if(StringUtils.equals(OperatorTypeEnum.QUERY_VERIFY_STATISTICS.getValue(),operatorType)){
|
||||
dataMaps = this.projectLibraryStatisticsService.getVerifyComplianceStatisticeGroupByTerritory(pliEoList,params);
|
||||
}else if(StringUtils.equals(OperatorTypeEnum.QUERY_DESIGN_TASK_CONFIRMATION.getValue(),operatorType)){
|
||||
dataMaps = this.projectLibraryStatisticsService.getDesignToConfirmStatisticsGroupByTerritory(pliEoList,params);
|
||||
}else if(StringUtils.equals(OperatorTypeEnum.QUERY_VERIFICATION_TASK_CONFIRMATION.getValue(),operatorType)){
|
||||
dataMaps = this.projectLibraryStatisticsService.getVerifyToConfirmStatisticsGroupByTerritory(pliEoList,params);
|
||||
}
|
||||
if(ObjectUtils.isEmpty(dataMaps)){
|
||||
continue;
|
||||
@@ -3203,7 +3207,7 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
|
||||
dataRow.createCell(16).setCellValue(complianceAmountDesign);
|
||||
dataRow.createCell(17).setCellValue(nonComplianceAmountDesign);
|
||||
dataRow.createCell(18).setCellValue(toBeTrackedAmountDesign);
|
||||
double designCount = taskToBeConfirmedAmountDesign + resultsToBeSubmittedAmountDesign + resultsToBeReviewedAmountDesign + nonComplianceAmountDesign + nonComplianceAmountDesign + toBeTrackedAmountDesign;
|
||||
double designCount = taskToBeConfirmedAmountDesign + resultsToBeSubmittedAmountDesign + resultsToBeReviewedAmountDesign + complianceAmountDesign + nonComplianceAmountDesign + toBeTrackedAmountDesign;
|
||||
double designPercentage = (complianceAmountDesign / designCount) * 100;
|
||||
String designPercentageStr = (designPercentage != 0 && (designCount !=0 )) ? df.format(designPercentage) : "0";
|
||||
dataRow.createCell(19).setCellValue(designPercentageStr + percentSign);
|
||||
|
||||
+180
@@ -139,6 +139,186 @@ public class ProjectLibraryStatisticsServiceImpl implements IProjectLibraryStati
|
||||
return result;
|
||||
}
|
||||
@Override
|
||||
public Map<String, Object> getDesignToConfirmStatisticsGroupByTerritory(List<ProjectLawsInventoryEO> datas, Map<String, Object> params) {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
if(CollectionUtils.isNotEmpty(datas)){
|
||||
Map<String,Object> listToBeReleasedMap = new HashMap<>();//清单待发布
|
||||
Map<String,Object> taskToBeInitiatedMap = new HashMap<>();//任务待发起
|
||||
Map<String,Object> taskToBeConfirmedMap = new HashMap<>();//任务待确认
|
||||
Map<String,Object> acceptedMap = new HashMap<>();//责任人接收
|
||||
Map<String,Object> rejectedMap = new HashMap<>();//责任人拒绝
|
||||
|
||||
|
||||
// 清单待发布
|
||||
List<ProjectLawsInventoryEO> notStartedDesignPliEoList = datas.stream().filter(data -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(data.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
|| StringUtils.equals(data.getDesignFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||
);
|
||||
return flag;
|
||||
}).collect(Collectors.toList());
|
||||
double notStartedComplianceFlowCount = (double) notStartedDesignPliEoList.size();
|
||||
double notStartedPercentage = (notStartedComplianceFlowCount / (datas.size())) * 100;
|
||||
String notStartedPercentageStr = notStartedPercentage != 0 ? df.format(notStartedPercentage) : "0";
|
||||
listToBeReleasedMap.put("amount",notStartedComplianceFlowCount);
|
||||
listToBeReleasedMap.put("percentage",notStartedPercentageStr + percentSign);
|
||||
|
||||
// 任务待发起
|
||||
List<ProjectLawsInventoryEO> toConfirmDesignPliEoList = datas.stream().filter(data -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(data.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
);
|
||||
return flag;
|
||||
}).collect(Collectors.toList());
|
||||
double toConfirmComplianceFlowCount = (double) toConfirmDesignPliEoList.size();
|
||||
double toConfirmPercentage = (toConfirmComplianceFlowCount / (datas.size())) * 100;
|
||||
String toConfirmPercentageStr = toConfirmPercentage != 0 ? df.format(toConfirmPercentage) : "0";
|
||||
taskToBeInitiatedMap.put("amount",toConfirmComplianceFlowCount);
|
||||
taskToBeInitiatedMap.put("percentage",toConfirmPercentageStr + percentSign);
|
||||
|
||||
// 任务待确认
|
||||
List<ProjectLawsInventoryEO> taskToBeConfirmedPliEoList = datas.stream().filter(data -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(data.getDesignFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue())
|
||||
);
|
||||
return flag;
|
||||
}).collect(Collectors.toList());
|
||||
double taskToBeConfirmedFlowCount = (double) taskToBeConfirmedPliEoList.size();
|
||||
double taskToBeConfirmedPercentage = (taskToBeConfirmedFlowCount / (datas.size())) * 100;
|
||||
String taskToBeConfirmedPercentageStr = taskToBeConfirmedPercentage != 0 ? df.format(taskToBeConfirmedPercentage) : "0";
|
||||
taskToBeConfirmedMap.put("amount",taskToBeConfirmedFlowCount);
|
||||
taskToBeConfirmedMap.put("percentage",taskToBeConfirmedPercentageStr + percentSign);
|
||||
|
||||
// 责任人接收
|
||||
List<ProjectLawsInventoryEO> acceptedDesignPliEoList = datas.stream().filter(data -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(data.getDesignFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue())
|
||||
|| StringUtils.equals(data.getDesignFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue())
|
||||
|| StringUtils.equals(data.getDesignFlowStatus(),ComplianceFlowStatusEnum.CONFORMITY.getValue())
|
||||
|| StringUtils.equals(data.getDesignFlowStatus(),ComplianceFlowStatusEnum.INCONFORMITY.getValue())
|
||||
|| StringUtils.equals(data.getDesignFlowStatus(),ComplianceFlowStatusEnum.TO_TRACK.getValue())
|
||||
);
|
||||
return flag;
|
||||
}).collect(Collectors.toList());
|
||||
double acceptedComplianceFlowCount = (double) acceptedDesignPliEoList.size();
|
||||
double acceptedPercentage = (acceptedComplianceFlowCount / (datas.size())) * 100;
|
||||
String acceptedPercentageStr = acceptedPercentage != 0 ? df.format(acceptedPercentage) : "0";
|
||||
acceptedMap.put("amount",acceptedComplianceFlowCount);
|
||||
acceptedMap.put("percentage",acceptedPercentageStr + percentSign);
|
||||
|
||||
// 责任人拒绝
|
||||
List<ProjectLawsInventoryEO> rejectedDesignPliEoList = datas.stream().filter(data -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(data.getDesignFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue())
|
||||
);
|
||||
return flag;
|
||||
}).collect(Collectors.toList());
|
||||
double rejectedComplianceFlowCount = (double) rejectedDesignPliEoList.size();
|
||||
double rejectedPercentage = (rejectedComplianceFlowCount / (datas.size())) * 100;
|
||||
String rejectedPercentageStr = rejectedPercentage != 0 ? df.format(rejectedPercentage) : "0";
|
||||
rejectedMap.put("amount",rejectedComplianceFlowCount);
|
||||
rejectedMap.put("percentage",rejectedPercentageStr + percentSign);
|
||||
|
||||
result.put(ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue(),listToBeReleasedMap);
|
||||
result.put(ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue(),taskToBeInitiatedMap);
|
||||
result.put(ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue(),taskToBeConfirmedMap);
|
||||
result.put(ComplianceFlowStatusEnum.DUTY_PERSON_ACCEPTED.getValue(),acceptedMap);
|
||||
result.put(ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue(),rejectedMap);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@Override
|
||||
public Map<String, Object> getVerifyToConfirmStatisticsGroupByTerritory(List<ProjectLawsInventoryEO> datas, Map<String, Object> params) {
|
||||
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
if(CollectionUtils.isNotEmpty(datas)){
|
||||
Map<String,Object> listToBeReleasedMap = new HashMap<>();//清单待发布
|
||||
Map<String,Object> taskToBeInitiatedMap = new HashMap<>();//任务待发起
|
||||
Map<String,Object> taskToBeConfirmedMap = new HashMap<>();//任务待确认
|
||||
Map<String,Object> acceptedMap = new HashMap<>();//责任人接收
|
||||
Map<String,Object> rejectedMap = new HashMap<>();//责任人拒绝
|
||||
|
||||
|
||||
// 清单待发布
|
||||
List<ProjectLawsInventoryEO> notStartedDesignPliEoList = datas.stream().filter(data -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(data.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|
||||
|| StringUtils.equals(data.getVerifyFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())
|
||||
);
|
||||
return flag;
|
||||
}).collect(Collectors.toList());
|
||||
double notStartedComplianceFlowCount = (double) notStartedDesignPliEoList.size();
|
||||
double notStartedPercentage = (notStartedComplianceFlowCount / (datas.size())) * 100;
|
||||
String notStartedPercentageStr = notStartedPercentage != 0 ? df.format(notStartedPercentage) : "0";
|
||||
listToBeReleasedMap.put("amount",notStartedComplianceFlowCount);
|
||||
listToBeReleasedMap.put("percentage",notStartedPercentageStr + percentSign);
|
||||
|
||||
// 任务待发起
|
||||
List<ProjectLawsInventoryEO> toConfirmDesignPliEoList = datas.stream().filter(data -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(data.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())
|
||||
);
|
||||
return flag;
|
||||
}).collect(Collectors.toList());
|
||||
double toConfirmComplianceFlowCount = (double) toConfirmDesignPliEoList.size();
|
||||
double toConfirmPercentage = (toConfirmComplianceFlowCount / (datas.size())) * 100;
|
||||
String toConfirmPercentageStr = toConfirmPercentage != 0 ? df.format(toConfirmPercentage) : "0";
|
||||
taskToBeInitiatedMap.put("amount",toConfirmComplianceFlowCount);
|
||||
taskToBeInitiatedMap.put("percentage",toConfirmPercentageStr + percentSign);
|
||||
|
||||
// 任务待确认
|
||||
List<ProjectLawsInventoryEO> taskToBeConfirmedPliEoList = datas.stream().filter(data -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(data.getVerifyFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue())
|
||||
);
|
||||
return flag;
|
||||
}).collect(Collectors.toList());
|
||||
double taskToBeConfirmedFlowCount = (double) taskToBeConfirmedPliEoList.size();
|
||||
double taskToBeConfirmedPercentage = (taskToBeConfirmedFlowCount / (datas.size())) * 100;
|
||||
String taskToBeConfirmedPercentageStr = taskToBeConfirmedPercentage != 0 ? df.format(taskToBeConfirmedPercentage) : "0";
|
||||
taskToBeConfirmedMap.put("amount",taskToBeConfirmedFlowCount);
|
||||
taskToBeConfirmedMap.put("percentage",taskToBeConfirmedPercentageStr + percentSign);
|
||||
|
||||
// 责任人接收
|
||||
List<ProjectLawsInventoryEO> acceptedDesignPliEoList = datas.stream().filter(data -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(data.getVerifyFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue())
|
||||
|| StringUtils.equals(data.getVerifyFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue())
|
||||
|| StringUtils.equals(data.getVerifyFlowStatus(),ComplianceFlowStatusEnum.CONFORMITY.getValue())
|
||||
|| StringUtils.equals(data.getVerifyFlowStatus(),ComplianceFlowStatusEnum.INCONFORMITY.getValue())
|
||||
|| StringUtils.equals(data.getVerifyFlowStatus(),ComplianceFlowStatusEnum.TO_TRACK.getValue())
|
||||
);
|
||||
return flag;
|
||||
}).collect(Collectors.toList());
|
||||
double acceptedComplianceFlowCount = (double) acceptedDesignPliEoList.size();
|
||||
double acceptedPercentage = (acceptedComplianceFlowCount / (datas.size())) * 100;
|
||||
String acceptedPercentageStr = acceptedPercentage != 0 ? df.format(acceptedPercentage) : "0";
|
||||
acceptedMap.put("amount",acceptedComplianceFlowCount);
|
||||
acceptedMap.put("percentage",acceptedPercentageStr + percentSign);
|
||||
|
||||
// 责任人拒绝
|
||||
List<ProjectLawsInventoryEO> rejectedDesignPliEoList = datas.stream().filter(data -> {
|
||||
boolean flag = (
|
||||
StringUtils.equals(data.getVerifyFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue())
|
||||
);
|
||||
return flag;
|
||||
}).collect(Collectors.toList());
|
||||
double rejectedComplianceFlowCount = (double) rejectedDesignPliEoList.size();
|
||||
double rejectedPercentage = (rejectedComplianceFlowCount / (datas.size())) * 100;
|
||||
String rejectedPercentageStr = rejectedPercentage != 0 ? df.format(rejectedPercentage) : "0";
|
||||
rejectedMap.put("amount",rejectedComplianceFlowCount);
|
||||
rejectedMap.put("percentage",rejectedPercentageStr + percentSign);
|
||||
|
||||
result.put(ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue(),listToBeReleasedMap);
|
||||
result.put(ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue(),taskToBeInitiatedMap);
|
||||
result.put(ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue(),taskToBeConfirmedMap);
|
||||
result.put(ComplianceFlowStatusEnum.DUTY_PERSON_ACCEPTED.getValue(),acceptedMap);
|
||||
result.put(ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue(),rejectedMap);
|
||||
}
|
||||
return result;
|
||||
|
||||
}
|
||||
@Override
|
||||
public Map<String, Object> getFGTaskToConfirmStatisticsGroupByTerritoryDesign(List<ProjectLawsInventoryEO> datas, Map<String, Object> params) {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
if(CollectionUtils.isNotEmpty(datas)){
|
||||
|
||||
Reference in New Issue
Block a user