浏览代码

网关关联

sixian 3 年之前
父节点
当前提交
b9ee195d8e
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      app/device/service/gatewayService.go

+ 1 - 3
app/device/service/gatewayService.go

@@ -108,9 +108,7 @@ func (s *gatewayService) List(searchValue string, current, size int) ([]model.Ga
 
 		fmt.Printf("d.ID = %v", d.ID)
 		//查数据
-		relation2 := dao.GatewayRelation{
-			id
-		}
+		relation2 := dao.GatewayRelation{}
 		relation2.Update(int64(d.ID)) //临时 处理
 
 		if relation != nil {