Commit 9e2a4da8 authored by 李增强's avatar 李增强

m

parent 030514a5
...@@ -22,12 +22,13 @@ class QMTJ { ...@@ -22,12 +22,13 @@ class QMTJ {
_appStartUpId = _md5(_getDateNow().toString()); _appStartUpId = _md5(_getDateNow().toString());
ready = new Future<bool>(() async { ready = new Future<bool>(() async {
_db = new DB(); _db = new DB();
await await _db.init(); await _db.init();
List<Map> list = await _db.db.query("page_tj"); List<Map> list = await _db.db.query("page_tj");
print("+++++++++++++++++++++++++++++${list.length}"); print("+++++++++++++++++++++++++++++${list.length}");
list.removeAt(0); list.removeAt(0);
List<String> ids = list.map((e) => e['id']); List<String> ids = list.map((e) => e['id']);
List<Map> list2 = await _db.db.query("page_tj",where: "id in(?)",whereArgs: [ids.join(",")]); List<Map> list2 = await _db.db
.query("page_tj", where: "id in(?)", whereArgs: [ids.join(",")]);
print("+++++++++++++++++++++++++++++${list2.length}"); print("+++++++++++++++++++++++++++++${list2.length}");
return true; return true;
}); });
......
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