queryMultiIds method

  1. @override
Future<List<T>> queryMultiIds(
  1. List<Object?>? datas, [
  2. String? tableName
])
override

查询多个ids

Implementation

@override
Future<List<T>> queryMultiIds(List<Object?>? datas, [String? tableName]) async {
  String ids = composeIds(datas);
  if (ids
      .trim()
      .isEmpty) return [];
  String sql = "select * from $table where $_primaryKey in($ids)";
  List<T>? results = await rawQuery(sql);
  return results;
}