Browse Source

订单提交

dev
nizongfeng 3 years ago
parent
commit
3d1d20d4a1
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      application/admin/service/OrderItemDao.php

+ 3
- 4
application/admin/service/OrderItemDao.php View File

@@ -11,7 +11,6 @@ namespace app\admin\service;

use app\admin\command\Util;
use app\admin\model\CfItem;
use app\admin\model\OrderHotel;
use app\admin\model\OrderItem;
use app\admin\model\Purchase;
use think\Exception;
@@ -55,12 +54,12 @@ class OrderItemDao
"trade_order_number" => $param['trade_order_number'],
"del_flag"=>0
];
$orderHotelModel = new OrderHotel();
$model = new OrderItem();
if (empty($param['id'])) {
$id = $orderHotelModel->insertGetId($data);
$id = $model->insertGetId($data);
return Util::returnArrSu("",$id);
}else {
$orderHotelModel->save($data,["id"=>$param['id']]);
$model->save($data,["id"=>$param['id']]);
return Util::returnArrSu("",$param['id']);
}
}catch (Exception $e){


Loading…
Cancel
Save