liuxiulin 7 月之前
父節點
當前提交
7ee858c636
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      services/knowoapi/model/device.go

+ 1 - 1
services/knowoapi/model/device.go

@@ -157,7 +157,7 @@ func (a *Device) Query(vendorId, productId string, deviceIDs []string) (datas []
 		tx = tx.Where("product_id = ?", productId)
 	}
 	if len(deviceIDs) > 0 {
-		tx = tx.Where("device_identifier in (?)", deviceIDs)
+		tx = tx.Where("record_id in (?)", deviceIDs)
 	}
 	err = tx.Find(&datas).Error