修复位置信息发送时时间设置错误
parent
5d10e5f3d6
commit
de29811448
|
@ -125,6 +125,7 @@ public interface IRedisCatchStorage {
|
||||||
void updateGpsMsgInfo(GPSMsgInfo gpsMsgInfo);
|
void updateGpsMsgInfo(GPSMsgInfo gpsMsgInfo);
|
||||||
|
|
||||||
GPSMsgInfo getGpsMsgInfo(String gbId);
|
GPSMsgInfo getGpsMsgInfo(String gbId);
|
||||||
|
|
||||||
List<GPSMsgInfo> getAllGpsMsgInfo();
|
List<GPSMsgInfo> getAllGpsMsgInfo();
|
||||||
|
|
||||||
Long getSN(String method);
|
Long getSN(String method);
|
||||||
|
|
|
@ -77,7 +77,8 @@ public interface GbStreamMapper {
|
||||||
GbStream queryStreamInPlatform(@Param("platformId") String platformId, @Param("gbId") String gbId);
|
GbStream queryStreamInPlatform(@Param("platformId") String platformId, @Param("gbId") String gbId);
|
||||||
|
|
||||||
@Select("<script> "+
|
@Select("<script> "+
|
||||||
"select gt.gb_id as channel_id, gt.name, 'wvp-pro' as manufacture, st.status, gt.longitude, gt.latitude, pc.id as parent_id," +
|
"select gt.gb_id as channel_id, gt.name, 'wvp-pro' as manufacture, st.status, gt.longitude, gt.latitude, " +
|
||||||
|
" gt.gps_speed, gt.gps_direction, gt.gps_altitude, gt.gps_time, pc.id as parent_id," +
|
||||||
" '1' as register_way, pc.civil_code_for_channel as civil_code, 'live' as model, 'wvp-pro' as owner, '0' as parental,'0' as secrecy" +
|
" '1' as register_way, pc.civil_code_for_channel as civil_code, 'live' as model, 'wvp-pro' as owner, '0' as parental,'0' as secrecy" +
|
||||||
" from wvp_gb_stream gt " +
|
" from wvp_gb_stream gt " +
|
||||||
" left join (" +
|
" left join (" +
|
||||||
|
@ -136,7 +137,12 @@ public interface GbStreamMapper {
|
||||||
"<foreach collection='gpsMsgInfos' item='item' separator=';'>" +
|
"<foreach collection='gpsMsgInfos' item='item' separator=';'>" +
|
||||||
" UPDATE" +
|
" UPDATE" +
|
||||||
" wvp_gb_stream" +
|
" wvp_gb_stream" +
|
||||||
" SET longitude=#{item.lng}, latitude=#{item.lat} " +
|
" SET longitude=#{item.lng}" +
|
||||||
|
", latitude=#{item.lat} " +
|
||||||
|
", gps_time=#{item.time} " +
|
||||||
|
", gps_speed=#{item.speed} " +
|
||||||
|
", gps_direction=#{item.direction} " +
|
||||||
|
", gps_altitude=#{item.speed} " +
|
||||||
"WHERE gb_id=#{item.id}"+
|
"WHERE gb_id=#{item.id}"+
|
||||||
"</foreach>" +
|
"</foreach>" +
|
||||||
"</script>"})
|
"</script>"})
|
||||||
|
|
|
@ -11,3 +11,11 @@ alter table wvp_device_channel add gps_speed double precision;
|
||||||
alter table wvp_device_channel add gps_direction character varying(255);
|
alter table wvp_device_channel add gps_direction character varying(255);
|
||||||
|
|
||||||
alter table wvp_device_channel add gps_altitude character varying(255);
|
alter table wvp_device_channel add gps_altitude character varying(255);
|
||||||
|
|
||||||
|
alter table wvp_gb_stream add gps_time character varying(50);
|
||||||
|
|
||||||
|
alter table wvp_gb_stream add gps_speed double precision;
|
||||||
|
|
||||||
|
alter table wvp_gb_stream add gps_direction character varying(255);
|
||||||
|
|
||||||
|
alter table wvp_gb_stream add gps_altitude character varying(255);
|
||||||
|
|
|
@ -11,3 +11,11 @@ alter table wvp_device_channel add gps_speed double precision;
|
||||||
alter table wvp_device_channel add gps_direction character varying(255);
|
alter table wvp_device_channel add gps_direction character varying(255);
|
||||||
|
|
||||||
alter table wvp_device_channel add gps_altitude character varying(255);
|
alter table wvp_device_channel add gps_altitude character varying(255);
|
||||||
|
|
||||||
|
alter table wvp_gb_stream add gps_time character varying(50);
|
||||||
|
|
||||||
|
alter table wvp_gb_stream add gps_speed double precision;
|
||||||
|
|
||||||
|
alter table wvp_gb_stream add gps_direction character varying(255);
|
||||||
|
|
||||||
|
alter table wvp_gb_stream add gps_altitude character varying(255);
|
Loading…
Reference in New Issue