Commit bf2b9415 by 刘宇峰

修复obd设备类型错误bug

1 parent d599a6e9
...@@ -486,7 +486,7 @@ public class HdaoGpsComponent { ...@@ -486,7 +486,7 @@ public class HdaoGpsComponent {
BsDataReq req = new BsDataReq(bsData); BsDataReq req = new BsDataReq(bsData);
BsDataRespHolder respHolder = new BsDataRespHolder(); BsDataRespHolder respHolder = new BsDataRespHolder();
boolean resultFlag = baseStationServicePrx.GetGpsByBs(req, respHolder); boolean resultFlag = baseStationServicePrx.GetGpsByBs(req, respHolder);
if (!resultFlag || respHolder == null || respHolder.value.ret != 0) { if (!resultFlag || respHolder.value.ret != 0) {
log.info("failed to getBaseStationByIce!"); log.info("failed to getBaseStationByIce!");
return null; return null;
} }
...@@ -598,7 +598,7 @@ public class HdaoGpsComponent { ...@@ -598,7 +598,7 @@ public class HdaoGpsComponent {
List<DataGpsLocation> dataGpsLocationList = new ArrayList<>(); List<DataGpsLocation> dataGpsLocationList = new ArrayList<>();
try { try {
boolean ret = daoGpsServicePrx.getGpsRecords(req, res); boolean ret = daoGpsServicePrx.getGpsRecords(req, res);
log.info("getGpsRecords return is {}", JSONUtil.toJsonStr(res)); //log.info("getGpsRecords return is {}", JSONUtil.toJsonStr(res));
if (ret && res.value != null && res.value.oprResult == 0) { if (ret && res.value != null && res.value.oprResult == 0) {
GpsRecord[] r = res.value.records; GpsRecord[] r = res.value.records;
for (int i = 0; i < r.length; i++) { for (int i = 0; i < r.length; i++) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!