Commit ddc2f23802ba52fa0d23f00ff5063e94b87b9f8e

Authored by 王通
1 parent a89342ab

1.轨迹回放分表

src/main/java/com/bsth/service/gps/GpsServiceImpl.java
... ... @@ -202,8 +202,8 @@ public class GpsServiceImpl implements GpsService {
202 202 List<DeviceChange> dcs = findDeviceChangeLogs(nbbm, et, st);
203 203  
204 204 //按年分表
205   - //String tableName = "bsth_c_gps_info_" + fmtyyyy.print(st);
206   - String tableName = "bsth_c_gps_info";
  205 + String tableName = "bsth_c_gps_info_" + fmtyyyy.print(st);
  206 + //String tableName = "bsth_c_gps_info";
207 207  
208 208 StringBuilder sql = new StringBuilder("");
209 209 long t1,t2;
... ... @@ -486,8 +486,8 @@ public class GpsServiceImpl implements GpsService {
486 486 int eWeekOfYear = eCal.get(Calendar.WEEK_OF_YEAR);
487 487  
488 488 //按年分表
489   - //String tableName = "bsth_c_arrival_info_" + fmtyyyy.print(st);
490   - String tableName = "bsth_c_arrival_info";
  489 + String tableName = "bsth_c_arrival_info_" + fmtyyyy.print(st);
  490 + //String tableName = "bsth_c_arrival_info";
491 491  
492 492 StringBuilder sql = new StringBuilder("");
493 493 long t1,t2;
... ... @@ -1009,8 +1009,8 @@ public class GpsServiceImpl implements GpsService {
1009 1009 int eWeekYear = eCal.get(Calendar.WEEK_OF_YEAR);*/
1010 1010  
1011 1011 //按年分表
1012   - //String tableName = "bsth_c_speeding_" + fmtyyyy.print(st);
1013   - String tableName = "bsth_c_speeding";
  1012 + String tableName = "bsth_c_speeding_" + fmtyyyy.print(st);
  1013 + //String tableName = "bsth_c_speeding";
1014 1014  
1015 1015 List<DeviceChange> dcs = findDeviceChangeLogs(nbbm, et, st);
1016 1016 StringBuilder sql = new StringBuilder("");
... ... @@ -1050,8 +1050,8 @@ public class GpsServiceImpl implements GpsService {
1050 1050 int eWeekYear = eCal.get(Calendar.WEEK_OF_YEAR);
1051 1051  
1052 1052 //按年分表
1053   - //String tableName = "bsth_c_outbound_" + fmtyyyy.print(st);
1054   - String tableName = "bsth_c_outbound";
  1053 + String tableName = "bsth_c_outbound_" + fmtyyyy.print(st);
  1054 + //String tableName = "bsth_c_outbound";
1055 1055  
1056 1056 List<DeviceChange> dcs = findDeviceChangeLogs(nbbm, et, st);
1057 1057 StringBuilder sql = new StringBuilder("");
... ...