valueOrders
This commit is contained in:
parent
7ffd2bd477
commit
e67c421852
@ -113,7 +113,7 @@ class AddedOrderSync extends Command
|
|||||||
foreach ($data as &$value) {
|
foreach ($data as &$value) {
|
||||||
$i = array_count_values($simArray)[$value['sim']] ?? 0;
|
$i = array_count_values($simArray)[$value['sim']] ?? 0;
|
||||||
array_push($simArray, $value['sim']);
|
array_push($simArray, $value['sim']);
|
||||||
$valueOrders = $orders[$value['sim']];
|
$valueOrders = $orders[$value['sim']] ?? 0;
|
||||||
|
|
||||||
$value['virtual_order_id'] = 0;
|
$value['virtual_order_id'] = 0;
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ BEGIN
|
|||||||
FOR i IN 1..array_length(orders, 1)
|
FOR i IN 1..array_length(orders, 1)
|
||||||
LOOP
|
LOOP
|
||||||
order_row := orders [ i];
|
order_row := orders [ i];
|
||||||
activated_at := activate_cards -> (order_row->>'sim')->>'virtual_activated_at';
|
activated_at := activate_cards -> (order_row->>'sim');
|
||||||
package_row := packages -> (order_row->>'package_id');
|
package_row := packages -> (order_row->>'package_id');
|
||||||
-- 服务时间
|
-- 服务时间
|
||||||
CASE (order_row->>'type')
|
CASE (order_row->>'type')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user