@@ -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