| | |
| | | repairInfo.repairTime = new Date(); |
| | | repairInfo.repairBy = workLast.userId; |
| | | repairInfo.repairReason = vo.errorMsg; |
| | | repairInfo.fromNode = preDeviceRecord.currNode; |
| | | if(preDeviceRecord!=null) { |
| | | repairInfo.fromNode = preDeviceRecord.currNode; |
| | | } |
| | | repairInfoDao.insertSelective(repairInfo); |
| | | |
| | | StaDeviceLast deviceLast = buildDeviceLast(vo, workLast, vo.deviceNo[0]); |
| | | |
| | | deviceLast.setRepairId(repairInfo.getId()); |
| | | int count = deviceLast.id == null ? deviceLastDao.insertSelective(deviceLast) : |
| | | deviceLastDao.updateByPrimaryKey(deviceLast); |
| | | saveDeviceProductionLog(deviceLast); |