|
|
@@ -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){ |
|
|
|