| | |
| | | import com.qianwen.smartman.modules.mdc.enums.ProductivityTypeEnum; |
| | | import com.qianwen.smartman.modules.mdc.enums.RpsTypeEnum; |
| | | |
| | | /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/mdc/utils/EifficiencyUtils.class */ |
| | | public class EifficiencyUtils { |
| | | public static Double openShiftTypeCalculationResults(List<SuperAggregateState> superAggregateStates, ProductivityTypeEnum productivityType) { |
| | | Double v; |
| | |
| | | double sum = originalData2.stream().mapToDouble((v0) -> { |
| | | return v0.getDurationCollect(); |
| | | }).sum(); |
| | | double running = originalData2.stream().filter(e -> e.getRps().equals(Integer.valueOf(4))).collect(Collectors.toList()).stream().mapToDouble(SuperAggregateState::getDurationCollect).sum(); |
| | | /* |
| | | double running = ((List) originalData2.stream().filter(e -> { |
| | | return e.getRps().equals(4); |
| | | }).collect(Collectors.toList())).stream().mapToDouble((v0) -> { |
| | | return v0.getDurationCollect(); |
| | | }).sum(); |
| | | }).sum();*/ |
| | | result = sum != 0.0d ? Double.parseDouble(NumberUtil.decimalFormat(MdcConstant.RATE_FORMAT, running / sum)) : 0.0d; |
| | | } |
| | | return Double.valueOf(result); |