提交修改设备更新时关联组态更新

This commit is contained in:
LEED
2025-07-13 17:05:39 +08:00
parent ac40c5e5ec
commit 4c1521bda0
9 changed files with 50 additions and 14 deletions

View File

@@ -435,6 +435,14 @@ public class DeviceController extends BaseController
device.setGuid(uuid.toString());
}
}
}else{
Scada scada = scadaService.selectScadaByGuid(device.getGuid());
if(scada!=null){
scada.setTenantId(device.getTenantId());
scada.setTenantName(device.getTenantName());
scada.setDeptId(device.getAgenciesId());
scadaService.updateScadaDept(scada);
}
}
return deviceService.updateDevice(device);