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