Commit 8b2fab5fabafbeaef49ff8a1be9c54cb7c43da10
1 parent
59b6e7d4
车载上报停靠站添加查询日志
Showing
1 changed file
with
2 additions
and
1 deletions
src/main/java/com/bsth/service/traffic/impl/VehicleInoutStopServiceImpl.java
| @@ -82,7 +82,7 @@ public class VehicleInoutStopServiceImpl extends BaseServiceImpl<VehicleInoutSto | @@ -82,7 +82,7 @@ public class VehicleInoutStopServiceImpl extends BaseServiceImpl<VehicleInoutSto | ||
| 82 | "if( up_down= 0,'上行','下行') as up_down ," + | 82 | "if( up_down= 0,'上行','下行') as up_down ," + |
| 83 | "if( in_out_stop= 0,'站内','站外') as in_out_stop , " + | 83 | "if( in_out_stop= 0,'站内','站外') as in_out_stop , " + |
| 84 | "stop,report_date FROM bsth_c_shreal " + packageParam(map,"") ; | 84 | "stop,report_date FROM bsth_c_shreal " + packageParam(map,"") ; |
| 85 | - logger.info("车载上报停靠站查询sql:",sql); | 85 | + logger.info("车载上报停靠站查询sql:"+sql); |
| 86 | List<Map<String, Object>> result = jdbcTemp.queryForList(sql); | 86 | List<Map<String, Object>> result = jdbcTemp.queryForList(sql); |
| 87 | return result; | 87 | return result; |
| 88 | } | 88 | } |
| @@ -96,6 +96,7 @@ public class VehicleInoutStopServiceImpl extends BaseServiceImpl<VehicleInoutSto | @@ -96,6 +96,7 @@ public class VehicleInoutStopServiceImpl extends BaseServiceImpl<VehicleInoutSto | ||
| 96 | JdbcTemplate jdbcTemp = new JdbcTemplate(DBUtils_MS.getDataSource()); | 96 | JdbcTemplate jdbcTemp = new JdbcTemplate(DBUtils_MS.getDataSource()); |
| 97 | String sql = "SELECT count(1) COUNT FROM bsth_c_shreal" + packageParam(map,"count"); | 97 | String sql = "SELECT count(1) COUNT FROM bsth_c_shreal" + packageParam(map,"count"); |
| 98 | long result = Long.valueOf(jdbcTemp.queryForMap(sql).get("COUNT")+""); | 98 | long result = Long.valueOf(jdbcTemp.queryForMap(sql).get("COUNT")+""); |
| 99 | + logger.info("车载上报停靠站查询count-sql:"+sql); | ||
| 99 | return result; | 100 | return result; |
| 100 | } | 101 | } |
| 101 | } | 102 | } |