Вот что есть:
Вложение:
npay.png [ 22.79 КБ | Просмотров: 2067 ]
Код:
mysql> SELECT * FROM `bgbilling`.`npay_detail_3_201304` WHERE cid=10098;
+-------+-----+-----+-----+--------+-----+--------+
| cid | mid | eid | sid | treeId | col | summa |
+-------+-----+-----+-----+--------+-----+--------+
| 10098 | 0 | 0 | 104 | 93 | 2 | 200.00 |
| 10098 | 0 | 0 | 104 | 94 | 1 | 100.00 |
+-------+-----+-----+-----+--------+-----+--------+
2 rows in set (0.00 sec)
Это ошибка?
Я ожидал, что абонплата начислится один раз, а не три.
Логи:
Код:
04-18/14:14:51 INFO [Thread-12] TaskRunProcessor - Running Task: bitel.billing.server.npay.Recalculator@471596b
04-18/14:14:51 INFO [pool-1-thread-4] Recalculator - PaymentRecalculator time: 18.04.2013 23
04-18/14:14:51 DEBUG [pool-1-thread-4] Calculator - Services: 5,10,11,12,13,14,15,17,16,19,18,21,20,22,27,29,28,30,34,35,32,33,38,39,36,37,42,43,40,41,46,47,44,45,50,49,55,53,59,58,57,56,63,62,61,60,69,70,71,64,65,66,76,77,78,79,73,74,75,84,87,86,81,80,83,82,93,92,95,94,
91,90,102,103,100,101,98,99,96,97,104
04-18/14:14:51 INFO [pool-1-thread-4] Calculator - Memory total: 380 698 624; max: 477 233 152; free: 261 677 000
Memory pools:
Non-heap memory[Code Cache]: max: 50 331 648; used: 4 164 992; peek: 4 174 528
Heap memory[PS Eden Space]: max: 175 112 192; used: 11 344 480; peek: 132 055 040
Heap memory[PS Survivor Space]: max: 1 769 472; used: 983 072; peek: 7 372 448
Heap memory[PS Old Gen]: max: 357 957 632; used: 106 694 072; peek: 106 694 072
Non-heap memory[PS Perm Gen]: max: 85 983 232; used: 29 046 880; peek: 29 046 880
Thread count: 33
04-18/14:14:51 INFO [pool-1-thread-4] Calculator - Setting balances for independ and subs..
04-18/14:14:51 INFO [pool-1-thread-4] Calculator - Selected.
04-18/14:14:51 INFO [pool-1-thread-4] Calculator - Selecting sub account
04-18/14:14:51 INFO [pool-1-thread-4] Calculator - Selected.
04-18/14:14:51 INFO [pool-1-thread-4] Calculator - Setting balance for super..
04-18/14:14:51 INFO [pool-1-thread-4] Calculator - Selected.
04-18/14:14:51 INFO [pool-1-thread-4] Calculator - Task finished time=18 ms.
04-18/14:14:51 INFO [pool-1-thread-4] Recalculator - RunTask finished time=18 ms.
04-18/14:15:01 INFO [Thread-12] TaskRunProcessor - Running Task: bitel.billing.server.npay.Recalculator@cbdf7be
04-18/14:15:01 INFO [pool-1-thread-2] Recalculator - PaymentRecalculator time: 18.04.2013 23
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Services: 5,10,11,12,13,14,15,17,16,19,18,21,20,22,27,29,28,30,34,35,32,33,38,39,36,37,42,43,40,41,46,47,44,45,50,49,55,53,59,58,57,56,63,62,61,60,69,70,71,64,65,66,76,77,78,79,73,74,75,84,87,86,81,80,83,82,93,92,95,94,
91,90,102,103,100,101,98,99,96,97,104
04-18/14:15:01 INFO [pool-1-thread-2] Calculator - Memory total: 380 698 624; max: 477 233 152; free: 260 548 184
Memory pools:
Non-heap memory[Code Cache]: max: 50 331 648; used: 4 164 992; peek: 4 174 528
Heap memory[PS Eden Space]: max: 175 112 192; used: 12 473 296; peek: 132 055 040
Heap memory[PS Survivor Space]: max: 1 769 472; used: 983 072; peek: 7 372 448
Heap memory[PS Old Gen]: max: 357 957 632; used: 106 694 072; peek: 106 694 072
Non-heap memory[PS Perm Gen]: max: 85 983 232; used: 29 046 880; peek: 29 046 880
Thread count: 33
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Found service taker cid: 10098; sid: 104; date1: 01.04.2013; date2: ; col: 1
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - After trimming cid: 10098; sid: 104; date1: 01.04.2013; date2: 30.04.2013
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Tariff period: 01.04.2013-04.04.2013
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Trim right
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Request in tree: 93
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - accepted => false
PARAMS: mid: 3; cid: 10098
NPayServiceCost [serviceId: 104; date1: 01.04.2013; date2: 04.04.2013; serviceStart: 01.04.2013; serviceEnd: ; accountingPeriodDays: 4; amount: 1; cost: null; addCost: null; periodAmount: null; monthAmount: null]
HIST:
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Request after processing: 93
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - accepted => true
PARAMS: mid: 3; cid: 10098
NPayServiceCost [serviceId: 104; date1: 01.04.2013; date2: 04.04.2013; serviceStart: 01.04.2013; serviceEnd: ; accountingPeriodDays: 4; amount: 1; cost: 100.0; addCost: null; periodAmount: null; monthAmount: null]
HIST:
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Add cost cache cid: 10098; sid: 104; cost: 100.0
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Add detail amount cache cid: 10098; sid: 104; mid: 3; eid: 0; cost: 100.0
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Tariff period: 05.04.2013-10.04.2013
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Trim left
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Trim right
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Request in tree: 94
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - accepted => false
PARAMS: mid: 3; cid: 10098
NPayServiceCost [serviceId: 104; date1: 05.04.2013; date2: 10.04.2013; serviceStart: 01.04.2013; serviceEnd: ; accountingPeriodDays: 6; amount: 1; cost: null; addCost: null; periodAmount: null; monthAmount: null]
HIST:
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Request after processing: 94
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - accepted => true
PARAMS: mid: 3; cid: 10098
NPayServiceCost [serviceId: 104; date1: 05.04.2013; date2: 10.04.2013; serviceStart: 01.04.2013; serviceEnd: ; accountingPeriodDays: 6; amount: 1; cost: 100.0; addCost: null; periodAmount: null; monthAmount: null]
HIST:
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Add cost cache cid: 10098; sid: 104; cost: 100.0
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Add detail amount cache cid: 10098; sid: 104; mid: 3; eid: 0; cost: 100.0
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Tariff period: 11.04.2013-
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Trim left
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Request in tree: 93
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - accepted => false
PARAMS: mid: 3; cid: 10098
NPayServiceCost [serviceId: 104; date1: 11.04.2013; date2: 30.04.2013; serviceStart: 01.04.2013; serviceEnd: ; accountingPeriodDays: 20; amount: 1; cost: null; addCost: null; periodAmount: null; monthAmount: null]
HIST:
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Request after processing: 93
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - accepted => true
PARAMS: mid: 3; cid: 10098
NPayServiceCost [serviceId: 104; date1: 11.04.2013; date2: 30.04.2013; serviceStart: 01.04.2013; serviceEnd: ; accountingPeriodDays: 20; amount: 1; cost: 100.0; addCost: null; periodAmount: null; monthAmount: null]
HIST:
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Add cost cache cid: 10098; sid: 104; cost: 100.0
04-18/14:15:01 DEBUG [pool-1-thread-2] Calculator - Add detail amount cache cid: 10098; sid: 104; mid: 3; eid: 0; cost: 100.0
04-18/14:15:01 INFO [pool-1-thread-2] Calculator - Setting balances for independ and subs..
04-18/14:15:01 INFO [pool-1-thread-2] Calculator - Selected.
04-18/14:15:01 INFO [pool-1-thread-2] Calculator - Selecting sub account
04-18/14:15:01 INFO [pool-1-thread-2] Calculator - Selected.
04-18/14:15:01 INFO [pool-1-thread-2] Calculator - Setting balance for super..
04-18/14:15:01 INFO [pool-1-thread-2] Calculator - Selected.
04-18/14:15:01 INFO [pool-1-thread-2] Calculator - Task finished time=23 ms.
04-18/14:15:01 INFO [pool-1-thread-2] Recalculator - RunTask finished time=23 ms.