|
|
|
|
@ -105,7 +105,7 @@ def delete_endpoint(id: int):
|
|
|
|
|
|
|
|
|
|
endpoint = db.session.scalar(
|
|
|
|
|
select(IotEndpoint)
|
|
|
|
|
.options(noload(IotEndpoint.workshop, IotEndpoint.device))
|
|
|
|
|
.options(noload(IotEndpoint.workshop), noload(IotEndpoint.device))
|
|
|
|
|
.filter_by(id=id))
|
|
|
|
|
if not endpoint:
|
|
|
|
|
raise BizException("采集端不存在")
|
|
|
|
|
|