|
@ -9,6 +9,7 @@ import android.content.pm.PackageInfo;
|
9
|
9
|
import android.content.pm.PackageManager;
|
10
|
10
|
import android.database.Cursor;
|
11
|
11
|
import android.database.sqlite.SQLiteDatabase;
|
|
12
|
import android.database.sqlite.SQLiteDatabaseLockedException;
|
12
|
13
|
import android.graphics.Bitmap;
|
13
|
14
|
import android.graphics.Canvas;
|
14
|
15
|
import android.graphics.Matrix;
|
|
@ -1255,14 +1256,18 @@ public class RoutePlanMapActivity extends Activity implements LocationSource, AM
|
1255
|
1256
|
LogUtils.e("当前数据库版本:" + daoMaster.getSchemaVersion());
|
1256
|
1257
|
DaoSession daoSession = daoMaster.newSession();
|
1257
|
1258
|
zhan_listDao zhan_listDao = daoSession.getZhan_listDao();
|
1258
|
|
if (isHighWay == true) {
|
1259
|
|
zhanDataList = zhan_listDao.queryRaw("where status = ? and suit_car != '特斯拉' and zhuang_num = '2'", new String[]{"4"});
|
1260
|
|
} else {
|
1261
|
|
zhanDataList = zhan_listDao.queryRaw("where status = ? and suit_car != '特斯拉'", new String[]{"4"});
|
|
1259
|
try {
|
|
1260
|
if (isHighWay == true) {
|
|
1261
|
zhanDataList = zhan_listDao.queryRaw("where status = ? and suit_car != '特斯拉' and zhuang_num = '2'", new String[]{"4"});
|
|
1262
|
} else {
|
|
1263
|
zhanDataList = zhan_listDao.queryRaw("where status = ? and suit_car != '特斯拉'", new String[]{"4"});
|
|
1264
|
}
|
|
1265
|
} catch (SQLiteDatabaseLockedException e) {
|
|
1266
|
e.printStackTrace();
|
|
1267
|
} finally {
|
|
1268
|
daoSession.clear();
|
|
1269
|
zhan_listDao.detachAll();
|
1262
|
1270
|
}
|
1263
|
|
daoSession.clear();
|
1264
|
|
zhan_listDao.detachAll();
|
1265
|
|
|
1266
|
1271
|
|
1267
|
1272
|
if (list_zhong.size() > 0) {
|
1268
|
1273
|
String point_sql = "where";
|