| | |
| | | throw new ErrorException("设备编号" + examinePlanDetail.getDeviceNumber() + "未查询到核查人"); |
| | | } |
| | | examinePlanDetail.setDeviceId(device.getId()); |
| | | examinePlanDetail.setDeviceModel(device.getSpecificationModel()); |
| | | examinePlanDetail.setCheckChargerUserId(user.getId()); |
| | | } |
| | | |
| | |
| | | DeviceExaminePlanDetails detail = new DeviceExaminePlanDetails(); |
| | | detail.setPlanId(plan.getPlanId()); |
| | | detail.setDeviceId(device.getId()); |
| | | String deviceName = device.getDeviceName() == null ? "" : device.getDeviceName(); |
| | | if (StringUtils.isNotBlank(device.getSpecificationModel())) { |
| | | deviceName = deviceName + " " + device.getSpecificationModel(); |
| | | } |
| | | detail.setDeviceName(deviceName); |
| | | detail.setDeviceName(device.getDeviceName() == null ? "" : device.getDeviceName()); |
| | | detail.setDeviceModel(device.getSpecificationModel()); |
| | | detail.setDeviceNumber(device.getManagementNumber()); |
| | | detail.setCheckTime(checkTime); |
| | | deviceExaminePlanDetailsMapper.insert(detail); |
| | |
| | | DeviceExaminePlanDetails detail = new DeviceExaminePlanDetails(); |
| | | detail.setPlanId(plan.getPlanId()); |
| | | detail.setDeviceId(device.getId()); |
| | | String deviceName = device.getDeviceName() == null ? "" : device.getDeviceName(); |
| | | if (StringUtils.isNotBlank(device.getSpecificationModel())) { |
| | | deviceName = deviceName + " " + device.getSpecificationModel(); |
| | | } |
| | | detail.setDeviceName(deviceName); |
| | | detail.setDeviceName(device.getDeviceName() == null ? "" : device.getDeviceName()); |
| | | detail.setDeviceModel(device.getSpecificationModel()); |
| | | detail.setDeviceNumber(device.getManagementNumber()); |
| | | String detailCheckTime = normalizeCheckDate(checkTime); |
| | | detail.setCheckTime(StringUtils.isBlank(detailCheckTime) ? checkMonth : detailCheckTime); |