|
...
|
...
|
@@ -82,7 +82,8 @@ public class WenDuBaoProtocolSyncFactoryImpl implements ProtocolSyncFactory { |
|
|
|
JsonObject dataObject = parserDeviceInfoDto.getData();
|
|
|
|
if(null != dataObject && dataObject.size() != 0)
|
|
|
|
{
|
|
|
|
String deviceInfoId =dataObject.get("sn").getAsJsonObject().get("value").getAsString()+"_1_1"; //25636548,//主机sn号 int 型
|
|
|
|
String sn = dataObject.get("sn").getAsJsonObject().get("value").getAsString();
|
|
|
|
String deviceInfoId =sn+"_1_1"; //25636548,//主机sn号 int 型
|
|
|
|
dataObject.remove("sn");
|
|
|
|
|
|
|
|
WdbTerminal wdbTerminal = (WdbTerminal) ly_baseDao.get(WdbTerminal.class,deviceInfoId);
|
|
...
|
...
|
@@ -92,8 +93,8 @@ public class WenDuBaoProtocolSyncFactoryImpl implements ProtocolSyncFactory { |
|
|
|
wdbTerminal = new WdbTerminal();
|
|
|
|
wdbTerminal.setId(deviceInfoId);
|
|
|
|
wdbTerminal.setCreateTime(parserDeviceInfoDto.getUpdateTime());
|
|
|
|
wdbTerminal.setBaseStationId(deviceInfoId);
|
|
|
|
wdbTerminal.setBaseStationName(deviceInfoId);
|
|
|
|
wdbTerminal.setBaseStationId(sn);
|
|
|
|
wdbTerminal.setBaseStationName(sn);
|
|
|
|
ly_baseDao.insert(wdbTerminal);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|