|
|
@@ -51,31 +51,31 @@ public class TosChannelGlobalAwareMessageListener implements ChannelAwareMessage
|
|
|
if (tosActionEnums != null) {
|
|
|
switch (tosActionEnums) {
|
|
|
case TOS_DEVICE_TYPE_CREATE:
|
|
|
- tosDevicetypeService.insertTosDevicetype(synGlobalTenantInfoDto.getData().to(TosDevicetype.class));
|
|
|
+ tosDevicetypeService.insertTosDevicetypeByTosMsg(synGlobalTenantInfoDto.getData().to(TosDevicetype.class));
|
|
|
break;
|
|
|
case TOS_DEVICE_TYPE_UPDATE:
|
|
|
- tosDevicetypeService.updateTosDevicetype(synGlobalTenantInfoDto.getData().to(TosDevicetype.class));
|
|
|
+ tosDevicetypeService.updateTosDevicetypeByTosMsg(synGlobalTenantInfoDto.getData().to(TosDevicetype.class));
|
|
|
break;
|
|
|
case TOS_DEVICE_TYPE_DELETE:
|
|
|
- tosDevicetypeService.deleteTosDevicetypeByDevtypeBid(synGlobalTenantInfoDto.getData().to(TosDevicetype.class));
|
|
|
+ tosDevicetypeService.deleteTosDevicetypeByTosMsg(synGlobalTenantInfoDto.getData().to(TosDevicetype.class));
|
|
|
break;
|
|
|
case TOS_DEVICE_CLASS_CREATE:
|
|
|
- tosDeviceclassService.insertTosDeviceclass(synGlobalTenantInfoDto.getData().to(TosDeviceclass.class));
|
|
|
+ tosDeviceclassService.insertTosDeviceclassByTosMsg(synGlobalTenantInfoDto.getData().to(TosDeviceclass.class));
|
|
|
break;
|
|
|
case TOS_DEVICE_CLASS_UPDATE:
|
|
|
- tosDeviceclassService.updateTosDeviceclass(synGlobalTenantInfoDto.getData().to(TosDeviceclass.class));
|
|
|
+ tosDeviceclassService.updateTosDeviceclassByTosMsg(synGlobalTenantInfoDto.getData().to(TosDeviceclass.class));
|
|
|
break;
|
|
|
case TOS_DEVICE_CLASS_DELETE:
|
|
|
- tosDeviceclassService.deleteTosDeviceclassByDevclassBid(synGlobalTenantInfoDto.getData().to(TosDeviceclass.class));
|
|
|
+ tosDeviceclassService.deleteTosDeviceclassByTosMsg(synGlobalTenantInfoDto.getData().to(TosDeviceclass.class));
|
|
|
break;
|
|
|
case TOS_FIRM_CREATE:
|
|
|
- tosFirmService.insertTosFirm(synGlobalTenantInfoDto.getData().to(TosFirm.class));
|
|
|
+ tosFirmService.insertTosFirmByTosMsg(synGlobalTenantInfoDto.getData().to(TosFirm.class));
|
|
|
break;
|
|
|
case TOS_FIRM_UPDATE:
|
|
|
- tosFirmService.updateTosFirm(synGlobalTenantInfoDto.getData().to(TosFirm.class));
|
|
|
+ tosFirmService.updateTosFirmByTosMsg(synGlobalTenantInfoDto.getData().to(TosFirm.class));
|
|
|
break;
|
|
|
case TOS_FIRM_DELETE:
|
|
|
- tosFirmService.deleteTosFirmByFirmBid(synGlobalTenantInfoDto.getData().to(TosFirm.class));
|
|
|
+ tosFirmService.deleteTosFirmByFirmBidByTosMsg(synGlobalTenantInfoDto.getData().to(TosFirm.class));
|
|
|
break;
|
|
|
}
|
|
|
} else {
|