| | |
| | | |
| | | StaDeviceLast deviceLast = buildDeviceLast(params, workLast, deviceList.get(0)); |
| | | int count = deviceLast.id == null ? deviceLastDao.insertSelective(deviceLast) : |
| | | deviceLastDao.updateByPrimaryKeySelective(deviceLast); |
| | | deviceLastDao.updateByPrimaryKey(deviceLast); |
| | | |
| | | saveDeviceProductionLog(deviceLast); |
| | | |
| | |
| | | StaDeviceLast deviceLast = buildDeviceLast(vo, workLast, vo.deviceNo[0]); |
| | | |
| | | int count = deviceLast.id == null ? deviceLastDao.insertSelective(deviceLast) : |
| | | deviceLastDao.updateByPrimaryKeySelective(deviceLast); |
| | | deviceLastDao.updateByPrimaryKey(deviceLast); |
| | | saveDeviceProductionLog(deviceLast); |
| | | boolean isEndNode = nodeDao.isEndNode(preDeviceRecord.currNode); |
| | | if (isEndNode) { |
| | |
| | | } |
| | | StaDeviceLast deviceLast = buildDeviceLast(vo, workLast, vo.deviceNo[0]); |
| | | int count = deviceLast.id == null ? deviceLastDao.insertSelective(deviceLast) : |
| | | deviceLastDao.updateByPrimaryKeySelective(deviceLast); |
| | | deviceLastDao.updateByPrimaryKey(deviceLast); |
| | | saveDeviceProductionLog(deviceLast); |
| | | PrProductionNode node = nodeDao.selectByPrimaryKey(workLast.nodeId); |
| | | if (node.isRecord) { |
| | | if (node != null && node.isRecord) { |
| | | saveDeviceLife(deviceLast); |
| | | } |
| | | return count; |