Browse Source

计划任务-将养老金任务独立出来,完善将养老金推入公证处明细表

sunxbiao 1 year ago
parent
commit
ee2f6da8b9
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/command/GzcAddByBillCommand.php

+ 3 - 2
app/command/GzcAddByBillCommand.php

@@ -112,7 +112,9 @@ class GzcAddByBillCommand extends Command
112 112
                     'pension' => $pension,
113 113
                     'order_type' => $typeShop,
114 114
                     'out_trade_no' => $online['order_sn'],
115
-                    'link_id' => $bill['bill_id']
115
+                    'link_id' => $bill['bill_id'],
116
+                    'create_time' => date('Y-m-d H:i:s'),
117
+                    'update_time' => date('Y-m-d H:i:s')
116 118
                 ]);
117 119
 
118 120
                 Db::name('user_bill')->where('bill_id', $bill['bill_id'])->update([
@@ -127,7 +129,6 @@ class GzcAddByBillCommand extends Command
127 129
     {
128 130
         $config = $orderMap[$typeShop] ?? $orderMap[0];
129 131
         $query = Db::table($config['table'])
130
-            ->where('uid', $bill['uid'])
131 132
             ->where($config['field_map']['order_sn'] ?? 'order_sn', $bill['order_sn']);
132 133
 
133 134
         if (!empty($config['condition'])) {