Commit 8a37db48 authored by 李增强's avatar 李增强

m

parent 1d20c144
......@@ -25,8 +25,7 @@ class QMTJ {
await _db.init();
List<Map> list = await _db.db.query("page_tj");
print("+++++++++++++++++++++++++++++${list.length}");
list = [list[0],list[1],list[2]];
List<String> ids = list.map((e) => e['id']);
List<String> ids = [list[0]['id'],list[1]['id'],list[2]['id']];
List<Map> list2 = await _db.db
.query("page_tj", where: "id in(?)", whereArgs: [ids.join(",")]);
print("+++++++++++++++++++++++++++++${list2.length}");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment