| | |
| | | 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)); |