| | |
| | | errorLong += du; |
| | | } |
| | | } |
| | | |
| | | //如待机时间+加工时间+关机时间不等于86400,需将多余时间进行补充 |
| | | long remainingDate = 86400 - waitingLong - processingLong - closedLong; |
| | | if (remainingDate != 0L) { |
| | | //如果关机时间大于待机时间+加工时间,将多余时间加至关机时间,否则,加入待机时间 |
| | | if (waitingLong + processingLong < closedLong) { |
| | | closedLong += remainingDate; |
| | | }else { |
| | | waitingLong += remainingDate; |
| | | } |
| | | } |
| | | |
| | | equipmentStatisticalInfo.setWaitLong(new BigDecimal(waitingLong)); |
| | | equipmentStatisticalInfo.setProcessLong(new BigDecimal(processingLong)); |
| | | equipmentStatisticalInfo.setCloseLong(new BigDecimal(closedLong)); |
| | |
| | | public MdcEquipmentStatisticalDto findByEquipmentAndMonth(String equipmentId, String date) { |
| | | return this.baseMapper.findByEquipmentAndMonth(equipmentId, date); |
| | | } |
| | | |
| | | @Override |
| | | public List<MdcEquipmentStatisticalInfo> findByEquipmentAndDate(List<String> equipmentList, String start, String end) { |
| | | return this.baseMapper.findByEquipmentAndDate(equipmentList, start, end); |
| | | } |
| | | |
| | | @Override |
| | | public List<MdcEquipmentStatisticalInfo> findByEquIdAndDate(String equipmentId, String start, String end) { |
| | | return this.baseMapper.findByEquIdAndDate(equipmentId, start, end); |
| | | } |
| | | |
| | | @Override |
| | | public MdcEquipmentStatisticalInfo findByEquIdAndMonth(String equipmentId, String month) { |
| | | return this.baseMapper.findByEquIdAndMonth(equipmentId, month); |
| | | } |
| | | } |