sixian %!s(int64=2) %!d(string=hai) anos
pai
achega
b9ee195d8e
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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 {