|
@@ -437,8 +437,7 @@ class Sale extends Base
|
|
|
|
|
|
//处理台账
|
|
|
if (isset($standing_book_da['outCode'])) $standing_book_da['outCode'] = implode(',', $standing_book_da['outCode']);//发货单号拼接
|
|
|
- if (isset($standing_book_da['cgdNo'])) Db::name('standing_book')->where('cgdNo', $standing_book_da['cgdNo'])->update($standing_book_da);
|
|
|
- else Db::name('standing_book')->insert(array_merge($standing_book_da, ['addtime' => date('Y-m-d H:i:s'), 'standBookNo' => makeNo('IO')]));
|
|
|
+ Db::name('standing_book')->insert(array_merge($standing_book_da, ['addtime' => date('Y-m-d H:i:s'),'updatetime' => date('Y-m-d H:i:s'), 'standBookNo' => makeNo('IO')]));
|
|
|
|
|
|
Db::commit();
|
|
|
return error_show(0,"咨询订单创建成功",["order_code"=>$orderCode]);
|