Commit e4140049 by fz

1.service添加日志注解

2.完成ice的部分功能对接
3.部分无公用的返回实体类修改为map
4.分离open服务和ice服务接口
1 parent a72b9e2e
Showing 185 changed files with 728 additions and 375 deletions
......@@ -59,15 +59,22 @@
<!--swagger2-->
<!-- <dependency>-->
<!-- <groupId>io.springfox</groupId>-->
<!-- <artifactId>springfox-swagger2</artifactId>-->
<!-- <version>2.9.2</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>io.springfox</groupId>-->
<!-- <artifactId>springfox-swagger-ui</artifactId>-->
<!-- <version>2.9.2</version>-->
<!-- </dependency>-->
<!--aop日志 -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>1.7.2</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
......@@ -4,6 +4,7 @@ import org.oreframework.boot.main.AbsOreBootStarter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
/**
* @Title: Main.java
......@@ -15,6 +16,7 @@ import org.springframework.boot.web.servlet.ServletComponentScan;
*/
@SpringBootApplication
@ServletComponentScan
@EnableAspectJAutoProxy//启动自动代理
public class Main extends AbsOreBootStarter {
@Override
......
package com.glsx.base.aop;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.aspectj.lang.reflect.CodeSignature;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.stereotype.Component;
import java.util.HashMap;
import java.util.Map;
@Component
@Aspect
@Slf4j
public class LogAspect {
/**
* 切点 注解拦截
*/
@Pointcut("@annotation(com.glsx.base.aop.SysLog)")
public void methodAspect() {
}
/**
* @param point
* @return
* @throws Throwable
* @Title:doAround
* @Description: 环绕触发
* @author fengzhi
* @date 2020年12月22日
*/
@Around("methodAspect()")
public Object doAround(ProceedingJoinPoint point) throws Throwable {
//获取类名
String className = point.getTarget().getClass().getName();
//获取方法名
MethodSignature signature = (MethodSignature) point.getSignature();
String methodName = signature.getMethod().getName();
//访问目标方法的参数:
Map<String, Object> params = new HashMap<>();
Object[] paramValues = point.getArgs();
String[] paramNames = ((CodeSignature)point.getSignature()).getParameterNames();
for (int i = 0; i < paramNames.length; i++) {
params.put(paramNames[i], paramValues[i]);
}
log.info(className+"===调用"+methodName+"开始===" + params);
//用改变后的参数执行目标方法
Object returnValue = point.proceed(paramValues);
log.info(className+"==="+methodName+"返回===" + returnValue);
return returnValue;
}
}
package com.glsx.base.aop;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 日志注解
*
* @author fengzhi
*
*/
@Target(ElementType.METHOD) // 方法注解
@Retention(RetentionPolicy.RUNTIME) // 运行时可见
public @interface SysLog {
}
package com.glsx.base.controller;
import com.glsx.config.SystemProperty;
import com.glsx.model.BO.DeviceStatusBo;
import com.glsx.model.BO.DeviceStayBo;
import com.glsx.model.BO.GpsBsRecordsBo;
import com.glsx.model.BaseMapModel;
import com.glsx.model.Basemodel;
import com.glsx.utils.JwtUtil;
import io.jsonwebtoken.Claims;
......@@ -21,10 +25,17 @@ public class BaseService {
@Autowired
private JwtUtil jwtUtil;
/*
* 获取配置中心属性
*/
protected String getProperty(String propertyName){
return systemProperty.getProperty(propertyName);
}
/*
* 日志方法
*/
protected void logd(String message){
log.debug(message);
}
......@@ -37,6 +48,10 @@ public class BaseService {
log.error(message,e);
}
/*
* jwt方法
*/
private Claims getCustomerFromToken(Basemodel basemodel){
return jwtUtil.getClaimsFromToken(basemodel.getToken());
}
......@@ -48,4 +63,36 @@ public class BaseService {
public Integer getCustomerID(Basemodel basemodel){
return Integer.parseInt(getCustomerProperty(basemodel,"appid"));
}
/*
* 公共参数相关方法
*/
public Long getSn(DeviceStatusBo deviceStatusBo){
return Long.parseLong(deviceStatusBo.getSn());
}
public Long getSn(GpsBsRecordsBo gpsBsRecordsBo){
return Long.parseLong(gpsBsRecordsBo.getSn());
}
public Integer getDeviceType(DeviceStatusBo deviceStatusBo){
return deviceStatusBo.getDevice_type();
}
public Integer getDeviceType(GpsBsRecordsBo gpsBsRecordsBo){
return gpsBsRecordsBo.getDevice_type();
}
public Integer getDeviceType(DeviceStayBo deviceStayBo){
return deviceStayBo.getDevice_type();
}
public Float getLat(BaseMapModel mapModel){
return mapModel.getLat().floatValue();
}
public Float getLng(BaseMapModel mapModel){
return mapModel.getLng().floatValue();
}
}
package com.glsx.enums;
package com.glsx.base.enums;
public enum MapTypeEnum {
NONE_TYPE(0, "NONE"),
DOUBLE_TYPE(1, "googlebaidu"),
GOOGLE_TYPE(2, "google"),
BAIDU_TYPE(3, "baidu");
//0:原始坐标
NONE_TYPE(0, "原始坐标"),
//1:转换高德和百度坐标
DOUBLE_TYPE(1, "转换高德和百度坐标"),
//2:转换高德坐标
GAODE_TYPE(2, "转换高德坐标"),
//3:转换百度坐标
BAIDU_TYPE(3, "转换百度坐标");
private Integer id;
private String text;
......
package com.glsx.config;
import cn.com.glsx.openplatform.service.IceOpenApiService;
import cn.com.glsx.openplatform.service.OpenApiService;
import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
......@@ -21,12 +21,12 @@ public class DubboConfig {
private ReferenceBuilderFactory factory;
/**
* 注册远程服务IceOpenApiService
* 注册远程服务OpenApiService
* @return
*/
@Bean
public IceOpenApiService rpcApiMethodRemote(){
return factory.builder(IceOpenApiService.class).check(false).timeout(30000).build();
public OpenApiService rpcApiMethodRemote(){
return factory.builder(OpenApiService.class).check(false).timeout(30000).build();
}
}
......@@ -4,6 +4,7 @@ import com.glsx.intercepter.ReplaceStreamFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import javax.servlet.Filter;
/**
......
......@@ -4,11 +4,15 @@ import com.glsx.model.BO.*;
import com.glsx.model.BaseMapModel;
import com.glsx.model.DTO.*;
import com.glsx.model.Result;
import com.glsx.service.OpenApiService;
import com.glsx.service.IOpenApiICEService;
import com.glsx.service.IOpenApiService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.HashMap;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
......@@ -21,10 +25,19 @@ import java.util.Map;
@Slf4j
public class OpenApiController {
/*
* 开放平台service接口
* 开放平台接口
*/
@Autowired
IOpenApiService openApiService;
/*
* ice接口
*/
@Autowired
OpenApiService openApiService;
IOpenApiICEService openApiICEService;
/*
* =================================openApiService=====================================
*/
/*
* 授权管理
......@@ -45,32 +58,11 @@ public class OpenApiController {
}
/*
* 下发指令
*/
@PostMapping("postCommands")
public Result postCommands(@RequestBody CommandsBo commandsBo){
openApiService.postCommands(commandsBo);
return Result.ok();
}
/*
* 查询设备状态
*/
@PostMapping("deviceStatus")
public Result getDeviceStatus(@RequestBody DeviceStatusBo deviceStatusBo){
Integer status = openApiService.getDeviceStatus(deviceStatusBo);
HashMap<String,Integer> map = new HashMap<>();
map.put("status",status);
return Result.ok().data(map);
}
/*
* 获取商户下的数据概况信息
*/
@PostMapping("dataView")
public Result getDataView(@RequestBody DeviceStatusBo deviceStatusBo){
Map<String, Integer> dataView = openApiService.getDataView(deviceStatusBo);
log.info("fz===="+dataView.toString());
return Result.ok().data(dataView);
}
......@@ -83,12 +75,35 @@ public class OpenApiController {
return Result.ok();
}
/*
* =================================openApiICEService=====================================
*/
/*
* 下发指令
*/
@PostMapping("postCommands")
public Result postCommands(@RequestBody CommandsBo commandsBo){
openApiICEService.postCommands(commandsBo);
return Result.ok();
}
/*
* 查询设备状态
*/
@PostMapping("deviceStatus")
public Result getDeviceStatus(@RequestBody DeviceStatusBo deviceStatusBo){
Map<String,Integer> map = openApiICEService.getDeviceStatus(deviceStatusBo);
return Result.ok().data(map);
}
/*
* 查询最新位置点
*/
@PostMapping("latestGpsRecord")
public Result getLatestGpsRecord(@RequestBody DeviceStatusBo deviceStatusBo){
LatestGpsRecordDto latestGpsRecordDto = openApiService.getLatestGPSRecord(deviceStatusBo);
LatestGpsRecordDto latestGpsRecordDto = openApiICEService.getLatestGPSRecord(deviceStatusBo);
return Result.ok().data(latestGpsRecordDto);
}
......@@ -97,7 +112,7 @@ public class OpenApiController {
*/
@PostMapping("latestBsRecord")
public Result getLatestBsRecord(@RequestBody DeviceStatusBo deviceStatusBo){
LatestBsRecordDto latestGpsRecordDto = openApiService.getLatestBsRecord(deviceStatusBo);
LatestBsRecordDto latestGpsRecordDto = openApiICEService.getLatestBsRecord(deviceStatusBo);
return Result.ok().data(latestGpsRecordDto);
}
......@@ -106,7 +121,7 @@ public class OpenApiController {
*/
@PostMapping("latestGpsBsRecord")
public Result getLatestGpsBsRecord(@RequestBody DeviceStatusBo deviceStatusBo){
LatestGpsBsRecordDto latestGpsBsRecordDto = openApiService.getLatestGpsBsRecord(deviceStatusBo);
LatestGpsBsRecordDto latestGpsBsRecordDto = openApiICEService.getLatestGpsBsRecord(deviceStatusBo);
return Result.ok().data(latestGpsBsRecordDto);
}
......@@ -115,7 +130,7 @@ public class OpenApiController {
*/
@PostMapping("gpsRecords")
public Result getGpsRecords(@RequestBody GpsBsRecordsBo gpsRecordsBo){
GpsRecordsDto gpsRecordsDto = openApiService.getGpsRecords(gpsRecordsBo);
GpsRecordsDto gpsRecordsDto = openApiICEService.getGpsRecords(gpsRecordsBo);
return Result.ok().data(gpsRecordsDto);
}
......@@ -124,7 +139,7 @@ public class OpenApiController {
*/
@PostMapping("bsRecords")
public Result getBsRecords(@RequestBody GpsBsRecordsBo gpsRecordsBo){
BsRecordsDto bsRecordsDto = openApiService.getBsRecords(gpsRecordsBo);
BsRecordsDto bsRecordsDto = openApiICEService.getBsRecords(gpsRecordsBo);
return Result.ok().data(bsRecordsDto);
}
......@@ -133,7 +148,7 @@ public class OpenApiController {
*/
@PostMapping("firstGpsRecord")
public Result getFirstGpsRecord(@RequestBody DeviceStatusBo deviceStatusBo){
FirstGpsRecordDto firstGpsRecordDto = openApiService.getFirstGpsRecord(deviceStatusBo);
FirstGpsRecordDto firstGpsRecordDto = openApiICEService.getFirstGpsRecord(deviceStatusBo);
return Result.ok().data(firstGpsRecordDto);
}
......@@ -142,7 +157,7 @@ public class OpenApiController {
*/
@PostMapping("recentGpsRecords")
public Result getRecentGpsRecords(@RequestBody DeviceStatusCountBo deviceStatusBo){
GpsRecordsDto recentGpsRecords = openApiService.getRecentGpsRecords(deviceStatusBo);
GpsRecordsDto recentGpsRecords = openApiICEService.getRecentGpsRecords(deviceStatusBo);
return Result.ok().data(recentGpsRecords);
}
......@@ -151,7 +166,7 @@ public class OpenApiController {
*/
@PostMapping("recentBsRecords")
public Result getRecentBsRecords(@RequestBody DeviceStatusCountBo deviceStatusBo){
BsRecordsDto recentBsRecords = openApiService.getRecentBsRecords(deviceStatusBo);
BsRecordsDto recentBsRecords = openApiICEService.getRecentBsRecords(deviceStatusBo);
return Result.ok().data(recentBsRecords);
}
......@@ -160,7 +175,7 @@ public class OpenApiController {
*/
@PostMapping("coordTransForMap")
public Result getCoordTransForMap(@RequestBody CoordTransForMapBo coordTransForMapBo){
Map<String,Object> res = openApiService.getCoordTransForMap(coordTransForMapBo);
Map<String,Object> res = openApiICEService.getCoordTransForMap(coordTransForMapBo);
return Result.ok().data(res);
}
......@@ -169,8 +184,8 @@ public class OpenApiController {
*/
@PostMapping("distInfoByPos")
public Result getDistInfoByPos(@RequestBody BaseMapModel mapModel){
DistInfoDto distInfo = openApiService.getDistInfoByPos(mapModel);
return Result.ok().data(distInfo);
Map<String, Object> map = openApiICEService.getDistInfoByPos(mapModel);
return Result.ok().data(map);
}
/*
......@@ -178,8 +193,8 @@ public class OpenApiController {
*/
@PostMapping("distDetailByPos")
public Result getDistDetailByPos(@RequestBody BaseMapModel mapModel){
DistDetilDto distDetail = openApiService.getDistDetailByPos(mapModel);
return Result.ok().data(distDetail);
Map<String, Object> map = openApiICEService.getDistDetailByPos(mapModel);
return Result.ok().data(map);
}
/*
......@@ -187,7 +202,7 @@ public class OpenApiController {
*/
@PostMapping("geocoding")
public Result getGeocoding(@RequestBody GeocodeBO geocodeBO){
Map<String, Object> map = openApiService.getGeocoding(geocodeBO);
Map<String, Object> map = openApiICEService.getGeocoding(geocodeBO);
return Result.ok().data(map);
}
......@@ -196,7 +211,7 @@ public class OpenApiController {
*/
@PostMapping("reverseGeocoding")
public Result getReverseGeocoding(@RequestBody BaseMapModel mapModel){
Map<String,Object> map = openApiService.getReverseGeocoding(mapModel);
Map<String,Object> map = openApiICEService.getReverseGeocoding(mapModel);
return Result.ok().data(map);
}
......@@ -205,7 +220,7 @@ public class OpenApiController {
*/
@PostMapping("journeyByGpsRecords")
public Result getJourneyByGpsRecords(@RequestBody GpsBsRecordsBo gpsBsRecordsBo){
Map<String, Object> map = openApiService.getJourneyByGpsRecords(gpsBsRecordsBo);
Map<String, Object> map = openApiICEService.getJourneyByGpsRecords(gpsBsRecordsBo);
return Result.ok().data(map);
}
......@@ -214,7 +229,7 @@ public class OpenApiController {
*/
@PostMapping("journeyRecords")
public Result getJourneyRecords(@RequestBody GpsBsRecordsBo gpsBsRecordsBo){
Map<String, Object> map = openApiService.getJourneyRecords(gpsBsRecordsBo);
Map<String, Object> map = openApiICEService.getJourneyRecords(gpsBsRecordsBo);
return Result.ok().data(map);
}
......@@ -223,7 +238,7 @@ public class OpenApiController {
*/
@PostMapping("dailyMileageRecords")
public Result getDailyMileageRecords(@RequestBody GpsBsRecordsBo gpsBsRecordsBo){
Map<String, Object> map = openApiService.getDailyMileageRecords(gpsBsRecordsBo);
Map<String, Object> map = openApiICEService.getDailyMileageRecords(gpsBsRecordsBo);
return Result.ok().data(map);
}
......@@ -232,7 +247,7 @@ public class OpenApiController {
*/
@PostMapping("totalMileageRecords")
public Result getTotalMileageRecords(@RequestBody DeviceStatusBo deviceStatusBo){
Map<String, Object> map = openApiService.getTotalMileageRecords(deviceStatusBo);
Map<String, Object> map = openApiICEService.getTotalMileageRecords(deviceStatusBo);
return Result.ok().data(map);
}
......@@ -241,7 +256,7 @@ public class OpenApiController {
*/
@PostMapping("monthResideRecords")
public Result getMonthResideRecords(@RequestBody DeviceMonthBo deviceMonthBo){
Map<String, Object> map = openApiService.getMonthResideRecords(deviceMonthBo);
Map<String, Object> map = openApiICEService.getMonthResideRecords(deviceMonthBo);
return Result.ok().data(map);
}
......@@ -250,7 +265,7 @@ public class OpenApiController {
*/
@PostMapping("deviceStayRecords")
public Result getDeviceStayRecords(@RequestBody DeviceStayBo deviceStayBo){
Map<String, Object> map = openApiService.getDeviceStayRecords(deviceStayBo);
Map<String, Object> map = openApiICEService.getDeviceStayRecords(deviceStayBo);
return Result.ok().data(map);
}
}
......@@ -4,6 +4,7 @@ import com.glsx.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import javax.servlet.http.HttpServletRequest;
/**
......
......@@ -23,5 +23,5 @@ package com.glsx.ice.DISTRICT;
public interface IDistrictFinder extends Ice.Object,
_IDistrictFinderOperations, _IDistrictFinderOperationsNC
{
public static final long serialVersionUID = -5209142945735662650L;
public static final long serialVersionUID = 254911430L;
}
......@@ -135,5 +135,5 @@ public class AlarmGetRequest implements Cloneable, java.io.Serializable
reqCount = __is.readInt();
}
public static final long serialVersionUID = -3754636485595147263L;
public static final long serialVersionUID = 1600214017L;
}
......@@ -125,5 +125,5 @@ public class AlarmGetResponse implements Cloneable, java.io.Serializable
lastAlarmTime = __is.readInt();
}
public static final long serialVersionUID = 7054347308621578722L;
public static final long serialVersionUID = 1822376418L;
}
......@@ -105,5 +105,5 @@ public class AlarmRecord implements Cloneable, java.io.Serializable
alarmState = __is.readInt();
}
public static final long serialVersionUID = -4693436816629426831L;
public static final long serialVersionUID = 152049009L;
}
......@@ -115,5 +115,5 @@ public class BatchGpsDevInfoRequest implements Cloneable, java.io.Serializable
seqNo = __is.readInt();
}
public static final long serialVersionUID = 6287704385978578483L;
public static final long serialVersionUID = 1256928819L;
}
......@@ -111,5 +111,5 @@ public class BatchGpsDevInfoResponse implements Cloneable, java.io.Serializable
gpsDevInfos = GpsDevInfoSeqHelper.read(__is);
}
public static final long serialVersionUID = -3834720778168813516L;
public static final long serialVersionUID = -59754444L;
}
......@@ -115,5 +115,5 @@ public class BatteryRecord implements Cloneable, java.io.Serializable
storeTime = __is.readInt();
}
public static final long serialVersionUID = -2067707541108564068L;
public static final long serialVersionUID = 1356062620L;
}
......@@ -138,5 +138,5 @@ public class BsGetRequest implements Cloneable, java.io.Serializable
reqCount = __is.readInt();
}
public static final long serialVersionUID = 3348109610768716323L;
public static final long serialVersionUID = -1292840413L;
}
......@@ -105,5 +105,5 @@ public class BsGetResponse implements Cloneable, java.io.Serializable
records = BsRecordsHelper.read(__is);
}
public static final long serialVersionUID = -8093956956733053997L;
public static final long serialVersionUID = 245359571L;
}
......@@ -115,5 +115,5 @@ public class BsInfo implements Cloneable, java.io.Serializable
signal = __is.readInt();
}
public static final long serialVersionUID = -6141235578307705906L;
public static final long serialVersionUID = 2029683662L;
}
......@@ -135,5 +135,5 @@ public class BsRecord implements Cloneable, java.io.Serializable
bsInfos = BsInfoArrayHelper.read(__is);
}
public static final long serialVersionUID = 1328093076371208236L;
public static final long serialVersionUID = -842860500L;
}
......@@ -135,5 +135,5 @@ public class BsWorkModeGetRequest implements Cloneable, java.io.Serializable
reqCount = __is.readInt();
}
public static final long serialVersionUID = 4381286516000313377L;
public static final long serialVersionUID = -1922543583L;
}
......@@ -105,5 +105,5 @@ public class BsWorkModeGetResponse implements Cloneable, java.io.Serializable
records = BsWorkModeRecordsHelper.read(__is);
}
public static final long serialVersionUID = 8985783764598807953L;
public static final long serialVersionUID = -1520280175L;
}
......@@ -155,5 +155,5 @@ public class BsWorkModeRecord implements Cloneable, java.io.Serializable
workmode = __is.readInt();
}
public static final long serialVersionUID = -5017340778083374883L;
public static final long serialVersionUID = 893528285L;
}
......@@ -11,33 +11,33 @@
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
// Generated from file `HDao_gps.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
package com.glsx.ice.HDaoGps;
public abstract class Callback_IPOISearchFTR_Geocoding extends Ice.TwowayCallback
public abstract class Callback_DaoGpsService_convGeoGps extends Ice.TwowayCallback
{
public abstract void response(int __ret, geocoding_result rst);
public abstract void response(boolean __ret, ConvResponseResult rsp);
public final void __completed(Ice.AsyncResult __result)
{
IPOISearchFTRPrx __proxy = (IPOISearchFTRPrx)__result.getProxy();
int __ret = 0;
geocoding_resultHolder rst = new geocoding_resultHolder();
DaoGpsServicePrx __proxy = (DaoGpsServicePrx)__result.getProxy();
boolean __ret = false;
ConvResponseResultHolder rsp = new ConvResponseResultHolder();
try
{
__ret = __proxy.end_Geocoding(rst, __result);
__ret = __proxy.end_convGeoGps(rsp, __result);
}
catch(Ice.LocalException __ex)
{
exception(__ex);
return;
}
response(__ret, rst.value);
response(__ret, rsp.value);
}
}
......@@ -11,53 +11,32 @@
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
// Generated from file `HDao_gps.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
package com.glsx.ice.HDaoGps;
public class poi_info_t implements Cloneable, java.io.Serializable
public class ConvRequest implements Cloneable, java.io.Serializable
{
public int id;
public ConvType type;
public float lng;
public int lng;
public float lat;
public int lat;
public int citycode;
public int type;
public String name;
public String addr;
public String tel;
public int weight;
public int distance;
public poi_info_t()
public ConvRequest()
{
}
public poi_info_t(int id, float lng, float lat, int citycode, int type, String name, String addr, String tel, int weight, int distance)
public ConvRequest(ConvType type, int lng, int lat)
{
this.id = id;
this.type = type;
this.lng = lng;
this.lat = lat;
this.citycode = citycode;
this.type = type;
this.name = name;
this.addr = addr;
this.tel = tel;
this.weight = weight;
this.distance = distance;
}
public boolean
......@@ -67,60 +46,26 @@ public class poi_info_t implements Cloneable, java.io.Serializable
{
return true;
}
poi_info_t _r = null;
if(rhs instanceof poi_info_t)
ConvRequest _r = null;
if(rhs instanceof ConvRequest)
{
_r = (poi_info_t)rhs;
_r = (ConvRequest)rhs;
}
if(_r != null)
{
if(id != _r.id)
{
return false;
}
if(lng != _r.lng)
{
return false;
}
if(lat != _r.lat)
{
return false;
}
if(citycode != _r.citycode)
{
return false;
}
if(type != _r.type)
{
return false;
}
if(name != _r.name)
{
if(name == null || _r.name == null || !name.equals(_r.name))
{
return false;
}
}
if(addr != _r.addr)
{
if(addr == null || _r.addr == null || !addr.equals(_r.addr))
{
return false;
}
}
if(tel != _r.tel)
{
if(tel == null || _r.tel == null || !tel.equals(_r.tel))
if(type == null || _r.type == null || !type.equals(_r.type))
{
return false;
}
}
if(weight != _r.weight)
if(lng != _r.lng)
{
return false;
}
if(distance != _r.distance)
if(lat != _r.lat)
{
return false;
}
......@@ -135,17 +80,10 @@ public class poi_info_t implements Cloneable, java.io.Serializable
hashCode()
{
int __h = 5381;
__h = IceInternal.HashUtil.hashAdd(__h, "::POI::poi_info_t");
__h = IceInternal.HashUtil.hashAdd(__h, id);
__h = IceInternal.HashUtil.hashAdd(__h, "::HDaoGps::ConvRequest");
__h = IceInternal.HashUtil.hashAdd(__h, type);
__h = IceInternal.HashUtil.hashAdd(__h, lng);
__h = IceInternal.HashUtil.hashAdd(__h, lat);
__h = IceInternal.HashUtil.hashAdd(__h, citycode);
__h = IceInternal.HashUtil.hashAdd(__h, type);
__h = IceInternal.HashUtil.hashAdd(__h, name);
__h = IceInternal.HashUtil.hashAdd(__h, addr);
__h = IceInternal.HashUtil.hashAdd(__h, tel);
__h = IceInternal.HashUtil.hashAdd(__h, weight);
__h = IceInternal.HashUtil.hashAdd(__h, distance);
return __h;
}
......@@ -167,32 +105,18 @@ public class poi_info_t implements Cloneable, java.io.Serializable
public void
__write(IceInternal.BasicStream __os)
{
__os.writeInt(id);
__os.writeFloat(lng);
__os.writeFloat(lat);
__os.writeInt(citycode);
__os.writeInt(type);
__os.writeString(name);
__os.writeString(addr);
__os.writeString(tel);
__os.writeInt(weight);
__os.writeInt(distance);
type.__write(__os);
__os.writeInt(lng);
__os.writeInt(lat);
}
public void
__read(IceInternal.BasicStream __is)
{
id = __is.readInt();
lng = __is.readFloat();
lat = __is.readFloat();
citycode = __is.readInt();
type = __is.readInt();
name = __is.readString();
addr = __is.readString();
tel = __is.readString();
weight = __is.readInt();
distance = __is.readInt();
type = ConvType.__read(__is);
lng = __is.readInt();
lat = __is.readInt();
}
public static final long serialVersionUID = -2365766525795353480L;
public static final long serialVersionUID = -1241051541L;
}
......@@ -11,27 +11,27 @@
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
// Generated from file `HDao_gps.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
package com.glsx.ice.HDaoGps;
public final class IPOISearchFTRPrxHolder
public final class ConvRequestHolder
{
public
IPOISearchFTRPrxHolder()
ConvRequestHolder()
{
}
public
IPOISearchFTRPrxHolder(IPOISearchFTRPrx value)
ConvRequestHolder(ConvRequest value)
{
this.value = value;
}
public IPOISearchFTRPrx value;
public ConvRequest value;
}
......@@ -11,26 +11,26 @@
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
// Generated from file `HDao_gps.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
package com.glsx.ice.HDaoGps;
public class geopoint implements Cloneable, java.io.Serializable
public class ConvResponse implements Cloneable, java.io.Serializable
{
public float lng;
public int lng;
public float lat;
public int lat;
public geopoint()
public ConvResponse()
{
}
public geopoint(float lng, float lat)
public ConvResponse(int lng, int lat)
{
this.lng = lng;
this.lat = lat;
......@@ -43,10 +43,10 @@ public class geopoint implements Cloneable, java.io.Serializable
{
return true;
}
geopoint _r = null;
if(rhs instanceof geopoint)
ConvResponse _r = null;
if(rhs instanceof ConvResponse)
{
_r = (geopoint)rhs;
_r = (ConvResponse)rhs;
}
if(_r != null)
......@@ -70,7 +70,7 @@ public class geopoint implements Cloneable, java.io.Serializable
hashCode()
{
int __h = 5381;
__h = IceInternal.HashUtil.hashAdd(__h, "::POI::geopoint");
__h = IceInternal.HashUtil.hashAdd(__h, "::HDaoGps::ConvResponse");
__h = IceInternal.HashUtil.hashAdd(__h, lng);
__h = IceInternal.HashUtil.hashAdd(__h, lat);
return __h;
......@@ -94,16 +94,16 @@ public class geopoint implements Cloneable, java.io.Serializable
public void
__write(IceInternal.BasicStream __os)
{
__os.writeFloat(lng);
__os.writeFloat(lat);
__os.writeInt(lng);
__os.writeInt(lat);
}
public void
__read(IceInternal.BasicStream __is)
{
lng = __is.readFloat();
lat = __is.readFloat();
lng = __is.readInt();
lat = __is.readInt();
}
public static final long serialVersionUID = -8161111944143154880L;
public static final long serialVersionUID = -387858138L;
}
......@@ -11,27 +11,27 @@
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
// Generated from file `HDao_gps.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
package com.glsx.ice.HDaoGps;
public final class IPOISearchNearPrxHolder
public final class ConvResponseHolder
{
public
IPOISearchNearPrxHolder()
ConvResponseHolder()
{
}
public
IPOISearchNearPrxHolder(IPOISearchNearPrx value)
ConvResponseHolder(ConvResponse value)
{
this.value = value;
}
public IPOISearchNearPrx value;
public ConvResponse value;
}
......@@ -11,32 +11,29 @@
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
// Generated from file `HDao_gps.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
package com.glsx.ice.HDaoGps;
public class geocoding_result implements Cloneable, java.io.Serializable
public class ConvResponseResult implements Cloneable, java.io.Serializable
{
public int level;
public int oprResult;
public int confidence;
public ConvResponse gps;
public geopoint pt;
public geocoding_result()
public ConvResponseResult()
{
}
public geocoding_result(int level, int confidence, geopoint pt)
public ConvResponseResult(int oprResult, ConvResponse gps)
{
this.level = level;
this.confidence = confidence;
this.pt = pt;
this.oprResult = oprResult;
this.gps = gps;
}
public boolean
......@@ -46,25 +43,21 @@ public class geocoding_result implements Cloneable, java.io.Serializable
{
return true;
}
geocoding_result _r = null;
if(rhs instanceof geocoding_result)
ConvResponseResult _r = null;
if(rhs instanceof ConvResponseResult)
{
_r = (geocoding_result)rhs;
_r = (ConvResponseResult)rhs;
}
if(_r != null)
{
if(level != _r.level)
{
return false;
}
if(confidence != _r.confidence)
if(oprResult != _r.oprResult)
{
return false;
}
if(pt != _r.pt)
if(gps != _r.gps)
{
if(pt == null || _r.pt == null || !pt.equals(_r.pt))
if(gps == null || _r.gps == null || !gps.equals(_r.gps))
{
return false;
}
......@@ -80,10 +73,9 @@ public class geocoding_result implements Cloneable, java.io.Serializable
hashCode()
{
int __h = 5381;
__h = IceInternal.HashUtil.hashAdd(__h, "::POI::geocoding_result");
__h = IceInternal.HashUtil.hashAdd(__h, level);
__h = IceInternal.HashUtil.hashAdd(__h, confidence);
__h = IceInternal.HashUtil.hashAdd(__h, pt);
__h = IceInternal.HashUtil.hashAdd(__h, "::HDaoGps::ConvResponseResult");
__h = IceInternal.HashUtil.hashAdd(__h, oprResult);
__h = IceInternal.HashUtil.hashAdd(__h, gps);
return __h;
}
......@@ -105,19 +97,17 @@ public class geocoding_result implements Cloneable, java.io.Serializable
public void
__write(IceInternal.BasicStream __os)
{
__os.writeInt(level);
__os.writeInt(confidence);
pt.__write(__os);
__os.writeInt(oprResult);
gps.__write(__os);
}
public void
__read(IceInternal.BasicStream __is)
{
level = __is.readInt();
confidence = __is.readInt();
pt = new geopoint();
pt.__read(__is);
oprResult = __is.readInt();
gps = new ConvResponse();
gps.__read(__is);
}
public static final long serialVersionUID = 4552966326190683359L;
public static final long serialVersionUID = -1479840141L;
}
......@@ -11,27 +11,27 @@
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
// Generated from file `HDao_gps.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
package com.glsx.ice.HDaoGps;
public final class POI_INDEX_TYPE_CONSTANTSHolder
public final class ConvResponseResultHolder
{
public
POI_INDEX_TYPE_CONSTANTSHolder()
ConvResponseResultHolder()
{
}
public
POI_INDEX_TYPE_CONSTANTSHolder(POI_INDEX_TYPE_CONSTANTS value)
ConvResponseResultHolder(ConvResponseResult value)
{
this.value = value;
}
public POI_INDEX_TYPE_CONSTANTS value;
public ConvResponseResult value;
}
......@@ -11,25 +11,21 @@
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
// Generated from file `HDao_gps.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
package com.glsx.ice.HDaoGps;
public enum POI_INDEX_TYPE_CONSTANTS implements java.io.Serializable
public enum ConvType implements java.io.Serializable
{
emIndexName(0),
WGS2GG(0),
emIndexAddr(1),
emIndexCustom(2),
index_type_count(3);
WGS2BD(1);
public int
value()
......@@ -37,25 +33,21 @@ public enum POI_INDEX_TYPE_CONSTANTS implements java.io.Serializable
return __value;
}
public static POI_INDEX_TYPE_CONSTANTS
public static ConvType
valueOf(int __v)
{
switch(__v)
{
case 0:
return emIndexName;
return WGS2GG;
case 1:
return emIndexAddr;
case 2:
return emIndexCustom;
case 3:
return index_type_count;
return WGS2BD;
}
return null;
}
private
POI_INDEX_TYPE_CONSTANTS(int __v)
ConvType(int __v)
{
__value = __v;
}
......@@ -63,20 +55,20 @@ public enum POI_INDEX_TYPE_CONSTANTS implements java.io.Serializable
public void
__write(IceInternal.BasicStream __os)
{
__os.writeEnum(value(), 3);
__os.writeEnum(value(), 1);
}
public static POI_INDEX_TYPE_CONSTANTS
public static ConvType
__read(IceInternal.BasicStream __is)
{
int __v = __is.readEnum(3);
int __v = __is.readEnum(1);
return __validate(__v);
}
private static POI_INDEX_TYPE_CONSTANTS
private static ConvType
__validate(int __v)
{
final POI_INDEX_TYPE_CONSTANTS __e = valueOf(__v);
final ConvType __e = valueOf(__v);
if(__e == null)
{
throw new Ice.MarshalException("enumerator value " + __v + " is out of range");
......
......@@ -11,27 +11,27 @@
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
// Generated from file `HDao_gps.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
package com.glsx.ice.HDaoGps;
public final class geocoding_resultHolder
public final class ConvTypeHolder
{
public
geocoding_resultHolder()
ConvTypeHolder()
{
}
public
geocoding_resultHolder(geocoding_result value)
ConvTypeHolder(ConvType value)
{
this.value = value;
}
public geocoding_result value;
public ConvType value;
}
......@@ -23,5 +23,5 @@ package com.glsx.ice.HDaoGps;
public interface DaoGpsService extends Ice.Object,
_DaoGpsServiceOperations, _DaoGpsServiceOperationsNC
{
public static final long serialVersionUID = 3050687698509607144L;
public static final long serialVersionUID = 1850847464L;
}
......@@ -561,4 +561,22 @@ public interface DaoGpsServicePrx extends Ice.ObjectPrx
public Ice.AsyncResult begin_getParadeCarAlarmRecords(AlarmGetRequest req, java.util.Map<String, String> __ctx, Callback_DaoGpsService_getParadeCarAlarmRecords __cb);
public boolean end_getParadeCarAlarmRecords(AlarmGetResponseHolder res, Ice.AsyncResult __result);
public boolean convGeoGps(ConvRequest req, ConvResponseResultHolder rsp);
public boolean convGeoGps(ConvRequest req, ConvResponseResultHolder rsp, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_convGeoGps(ConvRequest req);
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, Ice.Callback __cb);
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, java.util.Map<String, String> __ctx, Ice.Callback __cb);
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, Callback_DaoGpsService_convGeoGps __cb);
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, java.util.Map<String, String> __ctx, Callback_DaoGpsService_convGeoGps __cb);
public boolean end_convGeoGps(ConvResponseResultHolder rsp, Ice.AsyncResult __result);
}
......@@ -22,6 +22,142 @@ package com.glsx.ice.HDaoGps;
public final class DaoGpsServicePrxHelper extends Ice.ObjectPrxHelperBase implements DaoGpsServicePrx
{
private static final String __convGeoGps_name = "convGeoGps";
public boolean convGeoGps(ConvRequest req, ConvResponseResultHolder rsp)
{
return convGeoGps(req, rsp, null, false);
}
public boolean convGeoGps(ConvRequest req, ConvResponseResultHolder rsp, java.util.Map<String, String> __ctx)
{
return convGeoGps(req, rsp, __ctx, true);
}
private boolean convGeoGps(ConvRequest req, ConvResponseResultHolder rsp, java.util.Map<String, String> __ctx, boolean __explicitCtx)
{
if(__explicitCtx && __ctx == null)
{
__ctx = _emptyContext;
}
final Ice.Instrumentation.InvocationObserver __observer = IceInternal.ObserverHelper.get(this, "convGeoGps", __ctx);
int __cnt = 0;
try
{
while(true)
{
Ice._ObjectDel __delBase = null;
try
{
__checkTwowayOnly("convGeoGps");
__delBase = __getDelegate(false);
_DaoGpsServiceDel __del = (_DaoGpsServiceDel)__delBase;
return __del.convGeoGps(req, rsp, __ctx, __observer);
}
catch(IceInternal.LocalExceptionWrapper __ex)
{
__handleExceptionWrapper(__delBase, __ex, __observer);
}
catch(Ice.LocalException __ex)
{
__cnt = __handleException(__delBase, __ex, null, __cnt, __observer);
}
}
}
finally
{
if(__observer != null)
{
__observer.detach();
}
}
}
public Ice.AsyncResult begin_convGeoGps(ConvRequest req)
{
return begin_convGeoGps(req, null, false, null);
}
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, java.util.Map<String, String> __ctx)
{
return begin_convGeoGps(req, __ctx, true, null);
}
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, Ice.Callback __cb)
{
return begin_convGeoGps(req, null, false, __cb);
}
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, java.util.Map<String, String> __ctx, Ice.Callback __cb)
{
return begin_convGeoGps(req, __ctx, true, __cb);
}
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, Callback_DaoGpsService_convGeoGps __cb)
{
return begin_convGeoGps(req, null, false, __cb);
}
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, java.util.Map<String, String> __ctx, Callback_DaoGpsService_convGeoGps __cb)
{
return begin_convGeoGps(req, __ctx, true, __cb);
}
private Ice.AsyncResult begin_convGeoGps(ConvRequest req, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
{
__checkAsyncTwowayOnly(__convGeoGps_name);
IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __convGeoGps_name, __cb);
try
{
__result.__prepare(__convGeoGps_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
IceInternal.BasicStream __os = __result.__startWriteParams(Ice.FormatType.DefaultFormat);
req.__write(__os);
__result.__endWriteParams();
__result.__send(true);
}
catch(Ice.LocalException __ex)
{
__result.__exceptionAsync(__ex);
}
return __result;
}
public boolean end_convGeoGps(ConvResponseResultHolder rsp, Ice.AsyncResult __result)
{
Ice.AsyncResult.__check(__result, this, __convGeoGps_name);
boolean __ok = __result.__wait();
try
{
if(!__ok)
{
try
{
__result.__throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __result.__startReadParams();
rsp.value = new ConvResponseResult();
rsp.value.__read(__is);
boolean __ret;
__ret = __is.readBool();
__result.__endReadParams();
return __ret;
}
catch(Ice.LocalException ex)
{
Ice.Instrumentation.InvocationObserver __obsv = __result.__getObserver();
if(__obsv != null)
{
__obsv.failed(ex.ice_name());
}
throw ex;
}
}
private static final String __getBsRecords_name = "getBsRecords";
public boolean getBsRecords(BsGetRequest req, BsGetResponseHolder res)
......
......@@ -108,5 +108,5 @@ public class DataCardGetRequest implements Cloneable, java.io.Serializable
apType = __is.readInt();
}
public static final long serialVersionUID = -5320113910227661893L;
public static final long serialVersionUID = -129758277L;
}
......@@ -109,5 +109,5 @@ public class DataCardGetResponse implements Cloneable, java.io.Serializable
cardInfo.__read(__is);
}
public static final long serialVersionUID = -2449752915226477790L;
public static final long serialVersionUID = -193807582L;
}
......@@ -108,5 +108,5 @@ public class DataCardInfo implements Cloneable, java.io.Serializable
iccid = __is.readString();
}
public static final long serialVersionUID = -7879727172173275118L;
public static final long serialVersionUID = -1348575214L;
}
......@@ -148,5 +148,5 @@ public class DayLastGpsGetRequest implements Cloneable, java.io.Serializable
day = __is.readInt();
}
public static final long serialVersionUID = -1810599326986319986L;
public static final long serialVersionUID = 1282099086L;
}
......@@ -109,5 +109,5 @@ public class DayLastGpsGetResponse implements Cloneable, java.io.Serializable
record.__read(__is);
}
public static final long serialVersionUID = 9176182864599859523L;
public static final long serialVersionUID = -1501544125L;
}
......@@ -128,5 +128,5 @@ public class DiffVoltageGetRequest implements Cloneable, java.io.Serializable
endTime = __is.readInt();
}
public static final long serialVersionUID = -3265145535555248961L;
public static final long serialVersionUID = 1430707391L;
}
......@@ -105,5 +105,5 @@ public class DiffVoltageGetResponse implements Cloneable, java.io.Serializable
maxVolDiff = __is.readInt();
}
public static final long serialVersionUID = -7645548518755699457L;
public static final long serialVersionUID = 1250784511L;
}
......@@ -105,5 +105,5 @@ public class GpsBsGetResponse implements Cloneable, java.io.Serializable
records = GpsBsRecordsHelper.read(__is);
}
public static final long serialVersionUID = 6825863304550196439L;
public static final long serialVersionUID = -1323916073L;
}
......@@ -248,5 +248,5 @@ public class GpsBsRecord implements Cloneable, java.io.Serializable
bsInfos = BsInfoArrayHelper.read(__is);
}
public static final long serialVersionUID = -9010859437940285849L;
public static final long serialVersionUID = 815259239L;
}
......@@ -139,5 +139,5 @@ public class GpsDevInfo implements Cloneable, java.io.Serializable
onlineState = __is.readShort();
}
public static final long serialVersionUID = 8311223133356955085L;
public static final long serialVersionUID = -1329588787L;
}
......@@ -158,5 +158,5 @@ public class GpsGetExRequest implements Cloneable, java.io.Serializable
filterLevel = __is.readInt();
}
public static final long serialVersionUID = -4154489169697349187L;
public static final long serialVersionUID = -1862573635L;
}
......@@ -125,5 +125,5 @@ public class GpsGetExResponse implements Cloneable, java.io.Serializable
lastGpsTime = __is.readInt();
}
public static final long serialVersionUID = -8201661562309205121L;
public static final long serialVersionUID = 1788191615L;
}
......@@ -148,5 +148,5 @@ public class GpsGetRequest implements Cloneable, java.io.Serializable
reqCount = __is.readInt();
}
public static final long serialVersionUID = -250076893586403631L;
public static final long serialVersionUID = -415248687L;
}
......@@ -105,5 +105,5 @@ public class GpsGetResponse implements Cloneable, java.io.Serializable
records = GpsRecordsHelper.read(__is);
}
public static final long serialVersionUID = -3679199104191971258L;
public static final long serialVersionUID = 1890828358L;
}
......@@ -125,5 +125,5 @@ public class GpsParadeCarGetResponse implements Cloneable, java.io.Serializable
lastGpsTime = __is.readInt();
}
public static final long serialVersionUID = 4441480681087103025L;
public static final long serialVersionUID = -1057689551L;
}
......@@ -198,5 +198,5 @@ public class GpsRecord implements Cloneable, java.io.Serializable
storeTime = __is.readInt();
}
public static final long serialVersionUID = 2925719264529334661L;
public static final long serialVersionUID = -2100706939L;
}
......@@ -135,5 +135,5 @@ public class GpsWorkModeGetRequest implements Cloneable, java.io.Serializable
reqCount = __is.readInt();
}
public static final long serialVersionUID = 3598298132172006420L;
public static final long serialVersionUID = 739271700L;
}
......@@ -105,5 +105,5 @@ public class GpsWorkModeGetResponse implements Cloneable, java.io.Serializable
records = GpsWorkModeRecordsHelper.read(__is);
}
public static final long serialVersionUID = -558549772609281276L;
public static final long serialVersionUID = -297819388L;
}
......@@ -158,5 +158,5 @@ public class GpsWorkModeRecord implements Cloneable, java.io.Serializable
storeTime = __is.readInt();
}
public static final long serialVersionUID = 1393920200726737458L;
public static final long serialVersionUID = -1987120590L;
}
......@@ -118,5 +118,5 @@ public class LatestBatteryGetRequest implements Cloneable, java.io.Serializable
startTime = __is.readInt();
}
public static final long serialVersionUID = -5586830461623120965L;
public static final long serialVersionUID = -1566618693L;
}
......@@ -109,5 +109,5 @@ public class LatestBatteryGetResponse implements Cloneable, java.io.Serializable
record.__read(__is);
}
public static final long serialVersionUID = -2877914185822174361L;
public static final long serialVersionUID = -1140653209L;
}
......@@ -108,5 +108,5 @@ public class LatestBsGetRequest implements Cloneable, java.io.Serializable
apType = __is.readInt();
}
public static final long serialVersionUID = 2219610927713197877L;
public static final long serialVersionUID = -169107659L;
}
......@@ -109,5 +109,5 @@ public class LatestBsGetResponse implements Cloneable, java.io.Serializable
record.__read(__is);
}
public static final long serialVersionUID = -178554664728755429L;
public static final long serialVersionUID = 2077917979L;
}
......@@ -118,5 +118,5 @@ public class LatestGpsGetRequest implements Cloneable, java.io.Serializable
extraMapReq = __is.readInt();
}
public static final long serialVersionUID = 7517151522641986759L;
public static final long serialVersionUID = 1977402567L;
}
......@@ -128,5 +128,5 @@ public class LatestGpsGetRequestWithBindTime implements Cloneable, java.io.Seria
bindTime = __is.readInt();
}
public static final long serialVersionUID = -1042044385408153790L;
public static final long serialVersionUID = 126781250L;
}
......@@ -109,5 +109,5 @@ public class LatestGpsGetResponse implements Cloneable, java.io.Serializable
record.__read(__is);
}
public static final long serialVersionUID = 8086121753060878350L;
public static final long serialVersionUID = 1841342478L;
}
......@@ -105,5 +105,5 @@ public class LatestGpsTimeGetResponse implements Cloneable, java.io.Serializable
gpsTime = __is.readInt();
}
public static final long serialVersionUID = 5102733147753988679L;
public static final long serialVersionUID = 796705351L;
}
......@@ -118,5 +118,5 @@ public class LatestRgpsGetRequest implements Cloneable, java.io.Serializable
extraMapReq = __is.readInt();
}
public static final long serialVersionUID = -4501577091573261035L;
public static final long serialVersionUID = 1337810197L;
}
......@@ -109,5 +109,5 @@ public class LatestRgpsGetResponse implements Cloneable, java.io.Serializable
record.__read(__is);
}
public static final long serialVersionUID = 3668854994918965916L;
public static final long serialVersionUID = -258997604L;
}
......@@ -118,5 +118,5 @@ public class LatestVoltageGetRequest implements Cloneable, java.io.Serializable
startTime = __is.readInt();
}
public static final long serialVersionUID = -9181429822502246412L;
public static final long serialVersionUID = -1013749772L;
}
......@@ -109,5 +109,5 @@ public class LatestVoltageGetResponse implements Cloneable, java.io.Serializable
record.__read(__is);
}
public static final long serialVersionUID = 8821412119478754888L;
public static final long serialVersionUID = -1227137464L;
}
......@@ -208,5 +208,5 @@ public class ParadeCarGpsRecord implements Cloneable, java.io.Serializable
storeTime = __is.readInt();
}
public static final long serialVersionUID = -2736245075478195016L;
public static final long serialVersionUID = -508177224L;
}
......@@ -128,5 +128,5 @@ public class RecentBsGetRequest implements Cloneable, java.io.Serializable
reqCount = __is.readInt();
}
public static final long serialVersionUID = -811609851158574195L;
public static final long serialVersionUID = -176403571L;
}
......@@ -105,5 +105,5 @@ public class RecentBsGetResponse implements Cloneable, java.io.Serializable
records = BsRecordsHelper.read(__is);
}
public static final long serialVersionUID = -8891443859913109256L;
public static final long serialVersionUID = 361566456L;
}
......@@ -138,5 +138,5 @@ public class RecentGpsGetRequest implements Cloneable, java.io.Serializable
reqCount = __is.readInt();
}
public static final long serialVersionUID = -6820719026430746913L;
public static final long serialVersionUID = -455549217L;
}
......@@ -105,5 +105,5 @@ public class RecentGpsGetResponse implements Cloneable, java.io.Serializable
records = GpsRecordsHelper.read(__is);
}
public static final long serialVersionUID = -1901723550060578675L;
public static final long serialVersionUID = -911935347L;
}
......@@ -138,5 +138,5 @@ public class Sn2DdMapGetReq implements Cloneable, java.io.Serializable
reqCount = __is.readInt();
}
public static final long serialVersionUID = 8290705652123948662L;
public static final long serialVersionUID = 1412159094L;
}
......@@ -119,5 +119,5 @@ public class Sn2DdMapGetResponse implements Cloneable, java.io.Serializable
historyMapRecords = SnMapRecordsHelper.read(__is);
}
public static final long serialVersionUID = -3630537116772333763L;
public static final long serialVersionUID = 1256851261L;
}
......@@ -125,5 +125,5 @@ public class SnMapRecord implements Cloneable, java.io.Serializable
endTime = __is.readInt();
}
public static final long serialVersionUID = -5320854073092267609L;
public static final long serialVersionUID = 1604657575L;
}
......@@ -138,5 +138,5 @@ public class VoltageGetRequest implements Cloneable, java.io.Serializable
reqCount = __is.readInt();
}
public static final long serialVersionUID = -6991839028992347696L;
public static final long serialVersionUID = -1909263920L;
}
......@@ -125,5 +125,5 @@ public class VoltageGetResponse implements Cloneable, java.io.Serializable
lastRecTime = __is.readInt();
}
public static final long serialVersionUID = -4671615821687396652L;
public static final long serialVersionUID = 1429890772L;
}
......@@ -115,5 +115,5 @@ public class VoltageRecord implements Cloneable, java.io.Serializable
storeTime = __is.readInt();
}
public static final long serialVersionUID = 7218775353128459004L;
public static final long serialVersionUID = -594470148L;
}
......@@ -111,4 +111,7 @@ public interface _DaoGpsServiceDel extends Ice._ObjectDel
boolean getParadeCarAlarmRecords(AlarmGetRequest req, AlarmGetResponseHolder res, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv)
throws IceInternal.LocalExceptionWrapper;
boolean convGeoGps(ConvRequest req, ConvResponseResultHolder rsp, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv)
throws IceInternal.LocalExceptionWrapper;
}
......@@ -22,6 +22,58 @@ package com.glsx.ice.HDaoGps;
public final class _DaoGpsServiceDelD extends Ice._ObjectDelD implements _DaoGpsServiceDel
{
public boolean convGeoGps(final ConvRequest req, final ConvResponseResultHolder rsp, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
final Ice.Current __current = new Ice.Current();
__initCurrent(__current, "convGeoGps", Ice.OperationMode.Normal, __ctx);
final Ice.BooleanHolder __result = new Ice.BooleanHolder();
IceInternal.Direct __direct = null;
try
{
__direct = new IceInternal.Direct(__current)
{
public Ice.DispatchStatus run(Ice.Object __obj)
{
DaoGpsService __servant = null;
if(__obj == null || __obj instanceof DaoGpsService)
{
__servant = (DaoGpsService)__obj;
}
else
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
__result.value = __servant.convGeoGps(req, rsp, __current);
return Ice.DispatchStatus.DispatchOK;
}
};
try
{
Ice.DispatchStatus __status = __direct.getServant().__collocDispatch(__direct);
if(__status == Ice.DispatchStatus.DispatchUserException)
{
__direct.throwUserException();
}
assert __status == Ice.DispatchStatus.DispatchOK;
return __result.value;
}
finally
{
__direct.destroy();
}
}
catch(Ice.SystemException __ex)
{
throw __ex;
}
catch(Throwable __ex)
{
IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
}
return __result.value;
}
public boolean getBsRecords(final BsGetRequest req, final BsGetResponseHolder res, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
......
......@@ -23,6 +23,56 @@ package com.glsx.ice.HDaoGps;
public final class _DaoGpsServiceDelM extends Ice._ObjectDelM implements _DaoGpsServiceDel
{
public boolean
convGeoGps(ConvRequest req, ConvResponseResultHolder rsp, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
IceInternal.Outgoing __og = __handler.getOutgoing("convGeoGps", Ice.OperationMode.Normal, __ctx, __observer);
try
{
try
{
IceInternal.BasicStream __os = __og.startWriteParams(Ice.FormatType.DefaultFormat);
req.__write(__os);
__og.endWriteParams();
}
catch(Ice.LocalException __ex)
{
__og.abort(__ex);
}
boolean __ok = __og.invoke();
try
{
if(!__ok)
{
try
{
__og.throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __og.startReadParams();
rsp.value = new ConvResponseResult();
rsp.value.__read(__is);
boolean __ret;
__ret = __is.readBool();
__og.endReadParams();
return __ret;
}
catch(Ice.LocalException __ex)
{
throw new IceInternal.LocalExceptionWrapper(__ex, false);
}
}
finally
{
__handler.reclaimOutgoing(__og);
}
}
public boolean
getBsRecords(BsGetRequest req, BsGetResponseHolder res, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
......
......@@ -70,6 +70,11 @@ public abstract class _DaoGpsServiceDisp extends Ice.ObjectImpl implements DaoGp
return __ids[0];
}
public final boolean convGeoGps(ConvRequest req, ConvResponseResultHolder rsp)
{
return convGeoGps(req, rsp, null);
}
public final boolean getBsRecords(BsGetRequest req, BsGetResponseHolder res)
{
return getBsRecords(req, res, null);
......@@ -730,8 +735,26 @@ public abstract class _DaoGpsServiceDisp extends Ice.ObjectImpl implements DaoGp
return Ice.DispatchStatus.DispatchOK;
}
public static Ice.DispatchStatus ___convGeoGps(DaoGpsService __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
ConvRequest req;
req = new ConvRequest();
req.__read(__is);
__inS.endReadParams();
ConvResponseResultHolder rsp = new ConvResponseResultHolder();
boolean __ret = __obj.convGeoGps(req, rsp, __current);
IceInternal.BasicStream __os = __inS.__startWriteParams(Ice.FormatType.DefaultFormat);
rsp.value.__write(__os);
__os.writeBool(__ret);
__inS.__endWriteParams(true);
return Ice.DispatchStatus.DispatchOK;
}
private final static String[] __all =
{
"convGeoGps",
"getBsRecords",
"getBsWorkModeRecords",
"getDataCardInfo",
......@@ -780,138 +803,142 @@ public abstract class _DaoGpsServiceDisp extends Ice.ObjectImpl implements DaoGp
{
case 0:
{
return ___getBsRecords(this, in, __current);
return ___convGeoGps(this, in, __current);
}
case 1:
{
return ___getBsWorkModeRecords(this, in, __current);
return ___getBsRecords(this, in, __current);
}
case 2:
{
return ___getDataCardInfo(this, in, __current);
return ___getBsWorkModeRecords(this, in, __current);
}
case 3:
{
return ___getDayLastGpsRecord(this, in, __current);
return ___getDataCardInfo(this, in, __current);
}
case 4:
{
return ___getDevicesGpsInfo(this, in, __current);
return ___getDayLastGpsRecord(this, in, __current);
}
case 5:
{
return ___getFirstBsRecord(this, in, __current);
return ___getDevicesGpsInfo(this, in, __current);
}
case 6:
{
return ___getFirstGpsBsRecord(this, in, __current);
return ___getFirstBsRecord(this, in, __current);
}
case 7:
{
return ___getFirstGpsRecord(this, in, __current);
return ___getFirstGpsBsRecord(this, in, __current);
}
case 8:
{
return ___getGpsBsRecords(this, in, __current);
return ___getFirstGpsRecord(this, in, __current);
}
case 9:
{
return ___getGpsRecords(this, in, __current);
return ___getGpsBsRecords(this, in, __current);
}
case 10:
{
return ___getGpsRecordsByImei(this, in, __current);
return ___getGpsRecords(this, in, __current);
}
case 11:
{
return ___getGpsRecordsByMapSn(this, in, __current);
return ___getGpsRecordsByImei(this, in, __current);
}
case 12:
{
return ___getGpsRecordsEx(this, in, __current);
return ___getGpsRecordsByMapSn(this, in, __current);
}
case 13:
{
return ___getGpsWorkModeRecords(this, in, __current);
return ___getGpsRecordsEx(this, in, __current);
}
case 14:
{
return ___getLatestBatteryRecord(this, in, __current);
return ___getGpsWorkModeRecords(this, in, __current);
}
case 15:
{
return ___getLatestBsRecord(this, in, __current);
return ___getLatestBatteryRecord(this, in, __current);
}
case 16:
{
return ___getLatestGpsRecord(this, in, __current);
return ___getLatestBsRecord(this, in, __current);
}
case 17:
{
return ___getLatestGpsRecordByImei(this, in, __current);
return ___getLatestGpsRecord(this, in, __current);
}
case 18:
{
return ___getLatestGpsRecordByMapSn(this, in, __current);
return ___getLatestGpsRecordByImei(this, in, __current);
}
case 19:
{
return ___getLatestGpsTime(this, in, __current);
return ___getLatestGpsRecordByMapSn(this, in, __current);
}
case 20:
{
return ___getLatestLocationByLbsRecord(this, in, __current);
return ___getLatestGpsTime(this, in, __current);
}
case 21:
{
return ___getLatestRgpsRecord(this, in, __current);
return ___getLatestLocationByLbsRecord(this, in, __current);
}
case 22:
{
return ___getLatestVolRecord(this, in, __current);
return ___getLatestRgpsRecord(this, in, __current);
}
case 23:
{
return ___getMaxVolDiff(this, in, __current);
return ___getLatestVolRecord(this, in, __current);
}
case 24:
{
return ___getParadeCarAlarmRecords(this, in, __current);
return ___getMaxVolDiff(this, in, __current);
}
case 25:
{
return ___getParadeCarGpsRecords(this, in, __current);
return ___getParadeCarAlarmRecords(this, in, __current);
}
case 26:
{
return ___getRecentBsRecords(this, in, __current);
return ___getParadeCarGpsRecords(this, in, __current);
}
case 27:
{
return ___getRecentGpsRecords(this, in, __current);
return ___getRecentBsRecords(this, in, __current);
}
case 28:
{
return ___getSnMapRecords(this, in, __current);
return ___getRecentGpsRecords(this, in, __current);
}
case 29:
{
return ___getVoltageRecords(this, in, __current);
return ___getSnMapRecords(this, in, __current);
}
case 30:
{
return ___ice_id(this, in, __current);
return ___getVoltageRecords(this, in, __current);
}
case 31:
{
return ___ice_ids(this, in, __current);
return ___ice_id(this, in, __current);
}
case 32:
{
return ___ice_isA(this, in, __current);
return ___ice_ids(this, in, __current);
}
case 33:
{
return ___ice_isA(this, in, __current);
}
case 34:
{
return ___ice_ping(this, in, __current);
}
}
......
......@@ -81,4 +81,6 @@ public interface _DaoGpsServiceOperations
boolean getParadeCarGpsRecords(GpsGetRequest req, GpsParadeCarGetResponseHolder res, Ice.Current __current);
boolean getParadeCarAlarmRecords(AlarmGetRequest req, AlarmGetResponseHolder res, Ice.Current __current);
boolean convGeoGps(ConvRequest req, ConvResponseResultHolder rsp, Ice.Current __current);
}
......@@ -81,4 +81,6 @@ public interface _DaoGpsServiceOperationsNC
boolean getParadeCarGpsRecords(GpsGetRequest req, GpsParadeCarGetResponseHolder res);
boolean getParadeCarAlarmRecords(AlarmGetRequest req, AlarmGetResponseHolder res);
boolean convGeoGps(ConvRequest req, ConvResponseResultHolder rsp);
}
......@@ -129,5 +129,5 @@ public class DailyMileRecord implements Cloneable, java.io.Serializable
duration = __is.readLong();
}
public static final long serialVersionUID = 1388446688789285018L;
public static final long serialVersionUID = 987383962L;
}
......@@ -26,5 +26,5 @@ package com.glsx.ice.HDaoMile;
public interface DaoMileService extends Ice.Object,
_DaoMileServiceOperations, _DaoMileServiceOperationsNC
{
public static final long serialVersionUID = -3189819462676856L;
public static final long serialVersionUID = 1208454792L;
}
......@@ -118,5 +118,5 @@ public class Date implements Cloneable, java.io.Serializable
day = __is.readInt();
}
public static final long serialVersionUID = -3557880322531387628L;
public static final long serialVersionUID = 1982469908L;
}
......@@ -133,5 +133,5 @@ public class GetDailyMileRecordsReq implements Cloneable, java.io.Serializable
endDate.__read(__is);
}
public static final long serialVersionUID = 1749394467424814927L;
public static final long serialVersionUID = -622606513L;
}
......@@ -115,5 +115,5 @@ public class GetDailyMileRecordsRes implements Cloneable, java.io.Serializable
dailMileRecords = DailyMileRecordsHelper.read(__is);
}
public static final long serialVersionUID = 860531407694653936L;
public static final long serialVersionUID = -1984632336L;
}
......@@ -153,5 +153,5 @@ public class GetJourneyRecordsReq implements Cloneable, java.io.Serializable
extraMapReq = __is.readInt();
}
public static final long serialVersionUID = -9039673465073817988L;
public static final long serialVersionUID = -1262475652L;
}
......@@ -115,5 +115,5 @@ public class GetJourneyRecordsRes implements Cloneable, java.io.Serializable
jourRecords = JourneyRecordsHelper.read(__is);
}
public static final long serialVersionUID = -6463256744445455525L;
public static final long serialVersionUID = 388911963L;
}
......@@ -133,5 +133,5 @@ public class GetMonthMileRecordsReq implements Cloneable, java.io.Serializable
endMonth.__read(__is);
}
public static final long serialVersionUID = -4331670095660921786L;
public static final long serialVersionUID = -2014131130L;
}
......@@ -115,5 +115,5 @@ public class GetMonthMileRecordsRes implements Cloneable, java.io.Serializable
monMileRecords = MonthMileRecordsHelper.read(__is);
}
public static final long serialVersionUID = -2247324541816718315L;
public static final long serialVersionUID = 1845443605L;
}
......@@ -136,5 +136,5 @@ public class GetMonthResideRecordsReq implements Cloneable, java.io.Serializable
endMonth.__read(__is);
}
public static final long serialVersionUID = 1886382545766531079L;
public static final long serialVersionUID = 1323909127L;
}
......@@ -115,5 +115,5 @@ public class GetMonthResideRecordsRes implements Cloneable, java.io.Serializable
monResideRecords = MonthResideRecordsHelper.read(__is);
}
public static final long serialVersionUID = 8316678178853794869L;
public static final long serialVersionUID = 1909634101L;
}
......@@ -143,5 +143,5 @@ public class GetOverSpeedRecordsReq implements Cloneable, java.io.Serializable
extraMapReq = __is.readInt();
}
public static final long serialVersionUID = 431146081780692949L;
public static final long serialVersionUID = -1160316971L;
}
......@@ -115,5 +115,5 @@ public class GetOverSpeedRecordsRes implements Cloneable, java.io.Serializable
overSpdRecords = OverSpeedRecordsHelper.read(__is);
}
public static final long serialVersionUID = -6183393027398084567L;
public static final long serialVersionUID = 2001688617L;
}
......@@ -176,5 +176,5 @@ public class GetStayPointRecordsReq implements Cloneable, java.io.Serializable
extraMapReq = __is.readInt();
}
public static final long serialVersionUID = 768292535077320523L;
public static final long serialVersionUID = 1960720203L;
}
......@@ -115,5 +115,5 @@ public class GetStayPointRecordsRes implements Cloneable, java.io.Serializable
stayPoints = StayPointRecordsHelper.read(__is);
}
public static final long serialVersionUID = -9018067402838062396L;
public static final long serialVersionUID = 357485252L;
}
......@@ -138,5 +138,5 @@ public class GetTotalMileageReq implements Cloneable, java.io.Serializable
bReqDailyRecord = __is.readInt();
}
public static final long serialVersionUID = 4935223601545088542L;
public static final long serialVersionUID = -1187508706L;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!