liuxiulin 7 tháng trước cách đây
mục cha
commit
7ee858c636
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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