|
@@ -518,27 +518,6 @@ class AfterChild extends Base
|
|
|
->where(['is_del' => 0, 'returnCode' => $param['returnCode'], 'status' => 12])
|
|
|
->update(['status' => 5, 'updatetime' => $date]);
|
|
|
|
|
|
- $ins = [];
|
|
|
- foreach ($info as $child) {
|
|
|
-
|
|
|
- // ->column('a.id,a.return_wsm_code,a.outChildCode,b.wsm_code,a.status,a.return_num,c.addr,c.addrs_code,c.mobile,c.contactor_name', 'a.id');
|
|
|
- $ins[] = [
|
|
|
- 'returnCode' => $param['returnCode'],
|
|
|
- 'return_wsm' => $child['return_wsm_code'],
|
|
|
- 'contactor' => $child['contactor_name'],
|
|
|
- 'mobile' => $child['mobile'],
|
|
|
- 'addr' => $child['addr'],
|
|
|
- 'addr_code' => $child['addrs_code'],
|
|
|
- 'post_code' => '',
|
|
|
- 'post_company' => '',
|
|
|
- 'post_fee' => '',
|
|
|
- 'gys_remark' => '',
|
|
|
- 'addtime' => $date,
|
|
|
- ];
|
|
|
-
|
|
|
- }
|
|
|
- if ($ins) Db::name('order_returninfo')->insertAll($ins);
|
|
|
-
|
|
|
Db::commit();
|
|
|
return json_show(0, '库管收货成功');
|
|
|
} catch (Exception $exception) {
|