Доброго дня,
Аналогичная ситуация. Не получается через биллинг выставить приставке в сталкере тариф или пакет каналов.
При создании аккаунта-приставки:
Код:
connection 02-23/14:47:27 INFO [sa-p-6-t-11] OrderManagerSet - Connecting to device
connection 02-23/14:47:27 INFO [sa-p-6-t-11] OrderManagerDeviceWorker - Do task deviceId: 2; Event[ru.bitel.bgbilling.modules.tv.access.om.event.OmTvAccountModifyEvent] moduleId: 1; pluginId: no; cid: global; scid: -1; userId: -1; deviceId: 0; oldTvAccount: null; newTvAccount: MAG-250: 112244556633; newState: 1; timestamp: 1456224447795
connection 02-23/14:47:27 INFO [sa-p-6-t-11] TvAccountRuntimeMap - Adding new accountRuntime: 13
connection 02-23/14:47:27 INFO [sa-p-6-t-11] TvAccountRuntimeMap - Loading TvAccount from database.
connection 02-23/14:47:27 INFO [sa-p-6-t-11] TvAccountRuntimeMap - Adding TvAccountRuntime: 13
connection 02-23/14:47:27 INFO [sa-p-6-t-11] TvAccountRuntimeMap - ContractId: 1; tvAccountId: 13
MAG-250: 112244556633
Products [] TariffModuleTreeSet [1:22.02.2016-?; ]
Device state: 0; serviceIds:
connection 02-23/14:47:27 INFO [sa-p-6-t-11] OrderManagerDeviceWorker - Command result event: ru.bitel.bgbilling.modules.tv.access.om.AccountOrderEvent@2abf8649
connection 02-23/14:47:27 INFO [sa-p-6-t-11] OrderManagerDeviceWorker - Processing deviceId:2; command ru.bitel.bgbilling.modules.tv.access.om.AccountOrderEvent@2abf8649
connection 02-23/14:47:27 INFO [sa-p-6-t-11] OrderManagerSet - Invoking accountCreate
connection 02-23/14:47:27 INFO [sa-p-6-t-11] StalkerOrderManager - accountModify
connection 02-23/14:47:27 INFO [sa-p-6-t-11] StalkerOrderManager - Custom tariff not found
mq 02-23/14:47:27 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - Caught event: Event[ru.bitel.bgbilling.modules.tv.api.common.event.TvAccountModifiedEvent] moduleId: 1; pluginId: no; cid: 1; scid: -1; userId: 1; timestamp: 1456224447822
mq 02-23/14:47:27 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - Reload accountRuntime: 13
connection 02-23/14:47:27 INFO [sa-p-6-t-11] StalkerOrderManager - accountModify0
connection 02-23/14:47:27 INFO [sa-p-6-t-11] StalkerOrderManager - Old state -1
connection 02-23/14:47:27 INFO [sa-p-6-t-11] JsonClient - {account_number=13, subscribed=, stb_mac=11:22:44:55:66:33, password=, full_name=123456789 (TEST), tariff_plan=10, login=13, stb_type=1, status=1}
connection 02-23/14:47:27 INFO [sa-p-6-t-11] JsonClient - post: http://***:189/stalker_portal/api/accounts
connection 02-23/14:47:27 INFO [sa-p-6-t-11] JsonClient - >> account_number=13&subscribed=&stb_mac=11%3A22%3A44%3A55%3A66%3A33&password=&full_name=123456789+%28TEST%29&tariff_plan=10&login=13&stb_type=1&status=1
connection 02-23/14:47:27 INFO [sa-p-6-t-11] JsonClient - << {"status":"OK","results":true}
connection 02-23/14:47:27 INFO [sa-p-6-t-11] StalkerOrderManager - {"results":true,"status":"OK"}
connection 02-23/14:47:27 INFO [sa-p-6-t-11] OrderManagerDeviceWorker - Process event type[1] result=true
mq 02-23/14:47:27 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - Removing accountRuntime: 13
mq 02-23/14:47:27 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - Adding TvAccountRuntime: 13
mq 02-23/14:47:27 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - ContractId: 1; tvAccountId: 13
MAG-250: 112244556633
Products [] TariffModuleTreeSet [1:22.02.2016-?; ]
Device state: 0; serviceIds:
connection 02-23/14:47:27 INFO [sa-p-6-t-11] OrderManagerDeviceWorker - Changing TvAccount:13 state and/or options
mq 02-23/14:47:27 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - Caught event: Event[ru.bitel.bgbilling.modules.tv.access.event.TvAccountDeviceStateAndOptionsModifiedEvent] moduleId: 1; pluginId: no; cid: global; scid: -1; userId: -1; deviceId: 2; tvAccountId: 13; state: 1; optionIds: ; timestamp: 1456224447901
При активации продукта:
Код:
mq 02-23/14:49:56 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - Caught event: Event[ru.bitel.oss.systems.inventory.product.common.event.ProductModifiedEvent] moduleId: 1; pluginId: no; cid: 1; scid: -1; userId: 1; timestamp: 1456224596840
mq 02-23/14:49:56 INFO [event-proc-p-2-t-1] ContractRuntimeMap - Taked event: Event[ru.bitel.oss.systems.inventory.product.common.event.ProductPeriodModifiedEvent] moduleId: 1; pluginId: no; cid: 1; scid: -1; userId: 0; timestamp: 1456224596869
mq 02-23/14:49:56 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - Caught event: Event[ru.bitel.oss.systems.inventory.product.common.event.ProductPeriodModifiedEvent] moduleId: 1; pluginId: no; cid: 1; scid: -1; userId: 0; timestamp: 1456224596869
mq 02-23/14:49:56 INFO [event-proc-p-2-t-1] ContractRuntimeMap - Taked event: Event[ru.bitel.oss.systems.inventory.product.common.event.ProductPeriodModifiedEvent] moduleId: 1; pluginId: no; cid: 1; scid: -1; userId: 0; timestamp: 1456224596869
connection 02-23/14:49:56 INFO [sa-p-6-t-33] OrderManagerSet - Connecting to device
connection 02-23/14:49:56 INFO [sa-p-6-t-33] OrderManagerDeviceWorker - Do task deviceId: 2; Event[ru.bitel.bgbilling.modules.tv.access.om.event.OmTvProductsModifyEvent] moduleId: 1; pluginId: no; cid: 1; scid: -1; userId: 0
ProductEntry [oldProduct=Product [cid-aid=1-13, productSpecId=1, period=23.02.2016 14:49:56-/23.03.2016 14:49:55, activationModeId=1, activationTime=null, deactivationTime=null, deviceState=0, serviceList=null], newProduct=Product [cid-aid=1-13, productSpecId=1, period=23.02.2016 14:49:56-/23.03.2016 14:49:55, activationModeId=1, activationTime=null, deactivationTime=null, deviceState=0, serviceList=null], oldState=-1, newState=1, serviceEntryList=[ServiceEntry [oldService=Service [cid=1, aid=13, productId=12, serviceSpecId=1, timeFrom=Tue Feb 23 14:49:56 2016, timeTo=null, deviceState=-1], newService=Service [cid=1, aid=13, productId=12, serviceSpecId=1, timeFrom=Tue Feb 23 14:49:56 2016, timeTo=null, deviceState=-1], oldState=-1, newState=1], ServiceEntry [oldService=Service [cid=1, aid=13, productId=12, serviceSpecId=3, timeFrom=Tue Feb 23 14:49:56 2016, timeTo=null, deviceState=-1], newService=Service [cid=1, aid=13, productId=12, serviceSpecId=3, timeFrom=Tue Feb 23 14:49:56 2016, timeTo=null, deviceState=-1], oldState=-1, newState=1], ServiceEntry [oldService=Service [cid=1, aid=13, productId=12, serviceSpecId=4, timeFrom=Tue Feb 23 14:49:56 2016, timeTo=null, deviceState=-1], newService=Service [cid=1, aid=13, productId=12, serviceSpecId=4, timeFrom=Tue Feb 23 14:49:56 2016, timeTo=null, deviceState=-1], oldState=-1, newState=1]]]; timestamp: 1456224596869
connection 02-23/14:49:56 INFO [sa-p-6-t-33] OrderManagerDeviceWorker - Command result event: ru.bitel.bgbilling.modules.tv.access.om.ProductOrderEvent@2142f590
connection 02-23/14:49:56 INFO [sa-p-6-t-33] OrderManagerDeviceWorker - Processing deviceId:2; command ru.bitel.bgbilling.modules.tv.access.om.ProductOrderEvent@2142f590
connection 02-23/14:49:56 INFO [sa-p-6-t-33] OrderManagerSet - Invoking productsModify
connection 02-23/14:49:56 INFO [sa-p-6-t-33] StalkerOrderManager - Full sync mode
connection 02-23/14:49:56 INFO [sa-p-6-t-33] StalkerOrderManager - Product: Product1
connection 02-23/14:49:56 INFO [sa-p-6-t-33] StalkerOrderManager - Custom tariff not found
connection 02-23/14:49:56 INFO [sa-p-6-t-33] StalkerOrderManager - Update tariff to 10
connection 02-23/14:49:56 INFO [sa-p-6-t-33] StalkerOrderManager - Changing tariff for MAG-250: 112244556633 to 10
connection 02-23/14:49:56 INFO [sa-p-6-t-33] JsonClient - {tariff_plan=10}
connection 02-23/14:49:56 INFO [sa-p-6-t-33] JsonClient - put: http://***:189/stalker_portal/api/accounts/11:22:44:55:66:33
connection 02-23/14:49:56 INFO [sa-p-6-t-33] JsonClient - >> tariff_plan=10
connection 02-23/14:49:56 INFO [sa-p-6-t-33] JsonClient - << {"status":"OK","results":true}
connection 02-23/14:49:56 INFO [sa-p-6-t-33] StalkerOrderManager - {"results":true,"status":"OK"}
connection 02-23/14:49:56 INFO [sa-p-6-t-33] StalkerOrderManager - Update subscriptions
connection 02-23/14:49:56 INFO [sa-p-6-t-33] JsonClient - {subscribed[]=[1]}
connection 02-23/14:49:56 INFO [sa-p-6-t-33] JsonClient - post: http://***:189/stalker_portal/api/account_subscription/13
connection 02-23/14:49:56 INFO [sa-p-6-t-33] JsonClient - >> subscribed[]=1
connection 02-23/14:49:57 INFO [sa-p-6-t-33] JsonClient - << {"status":"OK","results":false}
connection 02-23/14:49:57 INFO [sa-p-6-t-33] StalkerOrderManager - {"results":false,"status":"OK"}
connection 02-23/14:49:57 INFO [sa-p-6-t-33] OrderManagerDeviceWorker - Process event type[2] result=true
connection 02-23/14:49:57 INFO [sa-p-6-t-33] OrderManagerDeviceWorker - Changing TvAccount:13 products state
mq 02-23/14:49:57 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - Caught event: Event[ru.bitel.bgbilling.modules.tv.access.event.TvProductsDeviceStateModifiedEvent] moduleId: 1; pluginId: no; cid: global; scid: -1; userId: -1; deviceId: 2; tvAccountId: 13; state: 0; productEntryList: [ProductEntry [productId=12, productSpecId=1, deviceState=1, serviceEntryList=[ServiceEntry [serviceId=0, serviceSpecId=1, deviceState=1], ServiceEntry [serviceId=0, serviceSpecId=3, deviceState=1], ServiceEntry [serviceId=0, serviceSpecId=4, deviceState=1]]]]; timestamp: 1456224597027
connection 02-23/14:49:57 INFO [sa-p-6-t-33] OrderManagerDeviceWorker - Do task deviceId: 2; Event[ru.bitel.bgbilling.modules.tv.access.om.event.OmTvAccountModifyEvent] moduleId: 1; pluginId: no; cid: global; scid: -1; userId: -1; deviceId: 0; oldTvAccount: MAG-250: 112244556633; newTvAccount: MAG-250: 112244556633; newState: 1; timestamp: 1456224597969
connection 02-23/14:49:57 INFO [sa-p-6-t-33] OrderManagerDeviceWorker - Command result event: ru.bitel.bgbilling.modules.tv.access.om.AccountOrderEvent@7cd3ab04
connection 02-23/14:49:57 INFO [sa-p-6-t-33] OrderManagerDeviceWorker - Processing deviceId:2; command ru.bitel.bgbilling.modules.tv.access.om.AccountOrderEvent@7cd3ab04
connection 02-23/14:49:57 INFO [sa-p-6-t-33] OrderManagerSet - Invoking accountModify
connection 02-23/14:49:57 INFO [sa-p-6-t-33] StalkerOrderManager - accountModify
mq 02-23/14:49:58 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - Caught event: Event[ru.bitel.bgbilling.modules.tv.api.common.event.TvAccountModifiedEvent] moduleId: 1; pluginId: no; cid: 1; scid: -1; userId: 1; timestamp: 1456224597983
mq 02-23/14:49:58 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - Reload accountRuntime: 13
connection 02-23/14:49:58 INFO [sa-p-6-t-33] StalkerOrderManager - Product: Product1
connection 02-23/14:49:58 INFO [sa-p-6-t-33] StalkerOrderManager - Custom tariff not found
connection 02-23/14:49:58 INFO [sa-p-6-t-33] StalkerOrderManager - accountModify0
connection 02-23/14:49:58 INFO [sa-p-6-t-33] StalkerOrderManager - Old state 1
connection 02-23/14:49:58 INFO [sa-p-6-t-33] JsonClient - {account_number=13, subscribed=, stb_mac=11:22:44:55:66:33, password=, full_name=123456789 (TEST), tariff_plan=10, login=13, stb_type=1, status=1}
connection 02-23/14:49:58 INFO [sa-p-6-t-33] JsonClient - put: http://***:189/stalker_portal/api/accounts/11:22:44:55:66:33
connection 02-23/14:49:58 INFO [sa-p-6-t-33] JsonClient - >> account_number=13&subscribed=&stb_mac=11%3A22%3A44%3A55%3A66%3A33&password=&full_name=123456789+%28TEST%29&tariff_plan=10&login=13&stb_type=1&status=1
connection 02-23/14:49:58 INFO [sa-p-6-t-33] JsonClient - << {"status":"OK","results":true}
connection 02-23/14:49:58 INFO [sa-p-6-t-33] StalkerOrderManager - {"results":true,"status":"OK"}
connection 02-23/14:49:58 INFO [sa-p-6-t-33] OrderManagerDeviceWorker - Process event type[2] result=true
mq 02-23/14:49:58 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - Removing accountRuntime: 13
mq 02-23/14:49:58 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - Adding TvAccountRuntime: 13
mq 02-23/14:49:58 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - ContractId: 1; tvAccountId: 13
MAG-250: 112244556633
Products [12:23.02.2016-23.03.2016; ] TariffModuleTreeSet [1:22.02.2016-?; ]
Device state: 1; serviceIds:
connection 02-23/14:50:03 INFO [sa-p-6-t-33] OrderManagerSet - Disconnecting from device
Удивляет tariff_plan=10. Если у конфигурации модуля выставить om.tariff.default=N, то меняется на N. То есть актуальное значение продукта биллинг игнорирует.
Параметр om.tariff.product.parentIds= не помог.
Версии:
Код:
Сервер: вер. 6.2.1019 / 19.02.2016 12:33:22
os: Linux; java: Java HotSpot(TM) 64-Bit Server VM, v.1.8.0_73
tv: вер. 6.2.204 / 08.02.2016 14:58:01