Commit aec657833a4da1c26c08b49ba2ce928324f1270b
1 parent
4d6144bf
车载上报停靠站代码还原
Showing
1 changed file
with
3 additions
and
3 deletions
src/main/java/com/bsth/service/traffic/impl/VehicleInoutStopServiceImpl.java
| @@ -5,7 +5,7 @@ import com.bsth.service.impl.BaseServiceImpl; | @@ -5,7 +5,7 @@ import com.bsth.service.impl.BaseServiceImpl; | ||
| 5 | import com.bsth.service.impl.TrafficManageServiceImpl; | 5 | import com.bsth.service.impl.TrafficManageServiceImpl; |
| 6 | import com.bsth.service.traffic.VehicleInoutStopService; | 6 | import com.bsth.service.traffic.VehicleInoutStopService; |
| 7 | import com.bsth.util.DateUtils; | 7 | import com.bsth.util.DateUtils; |
| 8 | -import com.bsth.util.db.DBUtils_traffic; | 8 | +import com.bsth.util.db.DBUtils_MS; |
| 9 | import org.slf4j.Logger; | 9 | import org.slf4j.Logger; |
| 10 | import org.slf4j.LoggerFactory; | 10 | import org.slf4j.LoggerFactory; |
| 11 | import org.springframework.jdbc.core.JdbcTemplate; | 11 | import org.springframework.jdbc.core.JdbcTemplate; |
| @@ -75,7 +75,7 @@ public class VehicleInoutStopServiceImpl extends BaseServiceImpl<VehicleInoutSto | @@ -75,7 +75,7 @@ public class VehicleInoutStopServiceImpl extends BaseServiceImpl<VehicleInoutSto | ||
| 75 | * @return | 75 | * @return |
| 76 | */ | 76 | */ |
| 77 | public List<Map<String, Object>> getVehicleInoutStopByParam(Map<String,Object> map){ | 77 | public List<Map<String, Object>> getVehicleInoutStopByParam(Map<String,Object> map){ |
| 78 | - JdbcTemplate jdbcTemp = new JdbcTemplate(DBUtils_traffic.getDataSource()); | 78 | + JdbcTemplate jdbcTemp = new JdbcTemplate(DBUtils_MS.getDataSource()); |
| 79 | String sql = "SELECT branche_company,company,name,shanghai_linecode,inside_code,equipment_code,car_plate," + | 79 | String sql = "SELECT branche_company,company,name,shanghai_linecode,inside_code,equipment_code,car_plate," + |
| 80 | "if( service_state= 0,'营运','停运') as service_state ," + | 80 | "if( service_state= 0,'营运','停运') as service_state ," + |
| 81 | "if( up_down= 0,'上行','下行') as up_down ," + | 81 | "if( up_down= 0,'上行','下行') as up_down ," + |
| @@ -92,7 +92,7 @@ public class VehicleInoutStopServiceImpl extends BaseServiceImpl<VehicleInoutSto | @@ -92,7 +92,7 @@ public class VehicleInoutStopServiceImpl extends BaseServiceImpl<VehicleInoutSto | ||
| 92 | * @return | 92 | * @return |
| 93 | */ | 93 | */ |
| 94 | public long getVehicleInoutStopCountByParam(Map<String,Object> map){ | 94 | public long getVehicleInoutStopCountByParam(Map<String,Object> map){ |
| 95 | - JdbcTemplate jdbcTemp = new JdbcTemplate(DBUtils_traffic.getDataSource()); | 95 | + JdbcTemplate jdbcTemp = new JdbcTemplate(DBUtils_MS.getDataSource()); |
| 96 | String sql = "SELECT count(1) COUNT FROM bsth_c_shreal" + packageParam(map,"count"); | 96 | String sql = "SELECT count(1) COUNT FROM bsth_c_shreal" + packageParam(map,"count"); |
| 97 | long result = Long.valueOf(jdbcTemp.queryForMap(sql).get("COUNT")+""); | 97 | long result = Long.valueOf(jdbcTemp.queryForMap(sql).get("COUNT")+""); |
| 98 | logger.info("车载上报停靠站查询count-sql:"+sql); | 98 | logger.info("车载上报停靠站查询count-sql:"+sql); |