优化修改设备信息相关的代码 #141

Merged
hnu202326010106 merged 1 commits from wanglei_branch into develop 2 weeks ago

@ -61,8 +61,6 @@ public class DeviceService {
Device existingDevice = getDeviceById(device.getDeviceId());
// 保留创建时间,更新其他可编辑字段
existingDevice.setDeviceName(device.getDeviceName());
existingDevice.setAreaId(device.getAreaId());
existingDevice.setInstallLocation(device.getInstallLocation());
existingDevice.setInstallDate(device.getInstallDate());
existingDevice.setParentMakerId(device.getParentMakerId());
return deviceRepository.save(existingDevice);

Loading…
Cancel
Save