Przeglądaj źródła

计划任务-完善将养老金推入公证处明细表

sunxbiao 1 rok temu
rodzic
commit
bb49a65adf

+ 4 - 0
app/command/GzcAddByBillCommand.php

@@ -106,6 +106,10 @@ class GzcAddByBillCommand extends Command
106
                             ->where('paid', 1)
106
                             ->where('paid', 1)
107
                             ->where('status', 1)
107
                             ->where('status', 1)
108
                             ->find();
108
                             ->find();
109
+                        if (!empty($online)) {
110
+                            $online = $online->toArray();
111
+                            $online['order_sn'] = $online['out_trade_no'];
112
+                        }
109
                         break;
113
                         break;
110
                     default:
114
                     default:
111
                         $online = Db::table('rrx_store_order')->where('uid', $bill['uid'])->where('order_sn', $bill['order_sn'])->where('paid', 1)->find();
115
                         $online = Db::table('rrx_store_order')->where('uid', $bill['uid'])->where('order_sn', $bill['order_sn'])->where('paid', 1)->find();

+ 4 - 0
app/command/PensionTasks.php

@@ -149,6 +149,10 @@ class PensionTasks extends Command
149
                             ->where('paid', 1)
149
                             ->where('paid', 1)
150
                             ->where('status', 1)
150
                             ->where('status', 1)
151
                             ->find();
151
                             ->find();
152
+                        if (!empty($online)) {
153
+                            $online = $online->toArray();
154
+                            $online['order_sn'] = $online['out_trade_no'];
155
+                        }
152
                         break;
156
                         break;
153
                     default:
157
                     default:
154
                         $online = Db::table('rrx_store_order')->where('uid', $bill['uid'])->where('order_sn', $bill['order_sn'])->where('paid', 1)->find();
158
                         $online = Db::table('rrx_store_order')->where('uid', $bill['uid'])->where('order_sn', $bill['order_sn'])->where('paid', 1)->find();