| | |
| | | .gt(RollerTimeData::getQty, 0) |
| | | .last("LIMIT 1"); |
| | | RollerTimeData rData = rollerTimeDataService.selectOne(rlqw); |
| | | if (rData != null) { |
| | | if (rData != null && (rData.getDacUpTime() == null || (!rData.getDacUpTime().before(stimDate) && !rData.getDacUpTime().after(etimDate)))) { |
| | | // 先把统计结束时刻累计值加进来:current = Qty(calcEnd) |
| | | currentRollerOutput += rData.getQty(); |
| | | |
| | |
| | | .last("LIMIT 1"); |
| | | |
| | | RollerTimeData rBeginData = rollerTimeDataService.selectOne(beginRlqw); |
| | | if (rBeginData != null) { |
| | | if (rBeginData != null && (rBeginData.getDacUpTime() == null || (!rBeginData.getDacUpTime().before(stimDate) && !rBeginData.getDacUpTime().after(etimDate)))) { |
| | | currentRollerOutput -= rBeginData.getQty(); |
| | | |
| | | // 记录过程:扣除头部产量 |
| | |
| | | .last("LIMIT 1"); |
| | | |
| | | PackerTimeData pData = packerTimeDataService.selectOne(plqw); |
| | | if (pData != null) { |
| | | if (pData != null && (pData.getDacUpTime() == null || (!pData.getDacUpTime().before(stimDate) && !pData.getDacUpTime().after(etimDate)))) { |
| | | // 先把统计结束时刻累计值加进来:current = Qty(calcEnd) |
| | | currentPackerOutput += pData.getQty(); |
| | | |
| | |
| | | .last("LIMIT 1"); |
| | | |
| | | PackerTimeData pBeginData = packerTimeDataService.selectOne(beginPlqw); |
| | | if (pBeginData != null) { |
| | | if (pBeginData != null && (pBeginData.getDacUpTime() == null || (!pBeginData.getDacUpTime().before(stimDate) && !pBeginData.getDacUpTime().after(etimDate)))) { |
| | | currentPackerOutput -= pBeginData.getQty(); |
| | | |
| | | // 记录过程:扣除头部产量 |