昨天 684e4306a08feeae188070f264148e6765da8dcf
src/main/java/com/ruoyi/device/service/impl/DeviceMaintenanceServiceImpl.java
@@ -95,6 +95,8 @@
                        outRecord.setQuantity(new BigDecimal(sparePartUse.getQuantity()));
                        outRecord.setSourceType(3);
                        outRecord.setSourceId(deviceMaintenance.getId());
                        // 保养单没有单号,来源单号用设备名称,流水页才看得出备件用在哪台设备上
                        outRecord.setSourceNo(oldDeviceMaintenance.getDeviceName());
                        sparePartsRecordService.save(outRecord);
                    } else {
                        return AjaxResult.error("备件 " + spareParts.getName() + " 数量不足");