sixian 2 lat temu
rodzic
commit
b9ee195d8e
1 zmienionych plików z 1 dodań i 3 usunięć
  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 {