|
|
@@ -4,6 +4,7 @@ namespace app\admin\controller; |
|
|
|
|
|
|
|
use app\admin\model\Area; |
|
|
|
use app\admin\service\OrderMainDao; |
|
|
|
use app\admin\service\OrderMainService; |
|
|
|
use app\common\controller\Backend; |
|
|
|
use think\Db; |
|
|
|
use think\exception\PDOException; |
|
|
@@ -228,8 +229,8 @@ class OrderMain extends Backend |
|
|
|
*/ |
|
|
|
public function newAdd(){ |
|
|
|
$params=$this->request->post(); |
|
|
|
$orderMainDao = new OrderMainDao(); |
|
|
|
return json($orderMainDao->addMain($params)); |
|
|
|
$orderMainService = new OrderMainService(); |
|
|
|
return json($orderMainService->createOrder($params)); |
|
|
|
} |
|
|
|
|
|
|
|
private function insertOrderMain($params){ |
|
|
|