Browse Source

订单提交

dev
nizongfeng 3 years ago
parent
commit
935caa4f74
1 changed files with 7 additions and 4 deletions
  1. +7
    -4
      application/admin/controller/OrderMain.php

+ 7
- 4
application/admin/controller/OrderMain.php View File

@@ -3,6 +3,7 @@
namespace app\admin\controller;

use app\admin\model\Area;
use app\admin\service\OrderMainDao;
use app\common\controller\Backend;
use think\Db;
use think\exception\PDOException;
@@ -221,12 +222,14 @@ class OrderMain extends Backend
return json($result);
}


/**
* 新增主订单
* @return \think\response\Json
*/
public function newAdd(){
$params=$this->request->post();
$hotelMain = $params["orderMain"];
$this->insertOrderMain($hotelMain);
return ;
$orderMainDao = new OrderMainDao();
return json($orderMainDao->addMain($params));
}

private function insertOrderMain($params){


Loading…
Cancel
Save