提交修改设备更新时关联组态更新
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user