|
@@ -1243,6 +1243,12 @@ class WholeController extends Curd
|
|
|
'pay_status'=>'CANCEL',
|
|
|
'pay_extend_json' => json_encode(['cancel_times'=>date('Y-m-d H:i:s')])
|
|
|
]);
|
|
|
+ if (!empty($order->order_config_json)){
|
|
|
+ $orderConfigJson = json_decode($order->order_config_json,true);
|
|
|
+ if (isset($orderConfigJson['tableid']) && !empty($orderConfigJson['tableid'])){
|
|
|
+ SysDept::where('dept_id',$orderConfigJson['tableid'])->update(['dept_status'=>'ACTIVED']);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
$order->order_is_complete = 'Y';
|
|
|
$order->order_status_system = 'CANCEL';
|