| | |
| | | // OEE --- 时间开动率 * 性能开动率 * 一次合格率 |
| | | BigDecimal oee = BigDecimal.ZERO; |
| | | if (!timeActuationRate.equals(BigDecimal.ZERO) && !performanceRate.equals(BigDecimal.ZERO) && !passRate.equals(BigDecimal.ZERO)) { |
| | | oee = timeActuationRate.multiply(performanceRate).multiply(passRate).divide(new BigDecimal("1000000"), 4, RoundingMode.HALF_UP); |
| | | oee = timeActuationRate.multiply(performanceRate).multiply(passRate).divide(new BigDecimal("10000"), 4, RoundingMode.HALF_UP); |
| | | } |
| | | mdcOeeInfo.setOee(oee); |
| | | result.add(mdcOeeInfo); |
| | |
| | | super.saveBatch(result); |
| | | } |
| | | |
| | | @Override |
| | | public List<MdcOeeInfo> findByEquIdsAndDate(List<String> equipmentIdList, String start, String end) { |
| | | return this.baseMapper.findByEquIdsAndDate(equipmentIdList, start, end); |
| | | } |
| | | |
| | | @Override |
| | | public List<MdcOeeInfo> findByEquIdAndDate(String equipmentId, String start, String end) { |
| | | return this.baseMapper.findByEquIdAndDate(equipmentId, start, end); |
| | | } |
| | | |
| | | @Override |
| | | public BigDecimal findByEquIdAndMonth(String equipmentId, String month) { |
| | | return this.baseMapper.findByEquIdAndMonth(equipmentId, month); |
| | | } |
| | | |
| | | } |