Commit a8c943955c9abf0104c615de0b53217f662375bf

Authored by 潘钊
1 parent 328087a4

update...

src/main/java/com/bsth/server_rs/gps/dao/HistoryGpsDao.java
... ... @@ -88,7 +88,7 @@ public class HistoryGpsDao {
88 88 }
89 89  
90 90 private List<HistoryGpsEntity> query(int dayOfYear, Long st, Long et, String deviceId) {
91   - String sql = "select device_id,line_id,service_state,direction,lon,lat,ts,stop_no,speed_gps as speed,inout_stop from bsth_c_gps_info where days_year=" + dayOfYear + " and device_id='"+deviceId+"' and ts > " + st + " and ts < " + et;
  91 + String sql = "select device_id,line_id,service_state,direction,lon,lat,ts,stop_no,speed_gps as speed,inout_stop,section_code from bsth_c_gps_info where days_year=" + dayOfYear + " and device_id='"+deviceId+"' and ts > " + st + " and ts < " + et;
92 92  
93 93 JdbcTemplate jdbcTemplate = new JdbcTemplate(DBUtils_MS.getDataSource());
94 94 List<HistoryGpsEntity> list = jdbcTemplate.query(sql, BeanPropertyRowMapper.newInstance(HistoryGpsEntity.class));
... ...
src/main/java/com/bsth/server_rs/gps/entity/GpsEntity.java
... ... @@ -70,6 +70,8 @@ public class GpsEntity implements Serializable{
70 70 /** gps是否有效 设备端发送的状态 */
71 71 private int valid;
72 72  
  73 + private String sectionCode;
  74 +
73 75 public Integer getCompanyCode() {
74 76 return companyCode;
75 77 }
... ... @@ -221,4 +223,12 @@ public class GpsEntity implements Serializable{
221 223 public void setValid(int valid) {
222 224 this.valid = valid;
223 225 }
  226 +
  227 + public String getSectionCode() {
  228 + return sectionCode;
  229 + }
  230 +
  231 + public void setSectionCode(String sectionCode) {
  232 + this.sectionCode = sectionCode;
  233 + }
224 234 }
... ...