|
|
@@ -3,6 +3,7 @@ |
|
|
|
namespace app\admin\controller; |
|
|
|
|
|
|
|
use app\admin\dao\GroupDao; |
|
|
|
use app\admin\dao\OrderMainDao; |
|
|
|
use app\admin\dao\OrderMemoDao; |
|
|
|
use app\admin\model\Area; |
|
|
|
use app\admin\service\OrderMainService; |
|
|
@@ -19,7 +20,7 @@ use think\Loader; |
|
|
|
*/ |
|
|
|
class OrderMain extends Backend |
|
|
|
{ |
|
|
|
protected $noNeedRight = ['getOrderList',"save","delSubOrder","subOrderSave","getShowInfo","newAdd","insertOrderMain","addMemo","getMemoList"]; |
|
|
|
protected $noNeedRight = ['getOrderList',"save","delSubOrder","subOrderSave","getShowInfo","newAdd","insertOrderMain","addMemo","getMemoList","setHotFlag"]; |
|
|
|
/** |
|
|
|
* OrderMain模型对象 |
|
|
|
* @var \app\admin\model\OrderMain |
|
|
@@ -157,4 +158,14 @@ class OrderMain extends Backend |
|
|
|
return json($result); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 添加日志记录 |
|
|
|
* @return \think\response\Json |
|
|
|
*/ |
|
|
|
public function setHotFlag(){ |
|
|
|
$params=$this->request->post(); |
|
|
|
$model = new OrderMainDao(); |
|
|
|
$result = $model->setHotFlag($params["order_id"],$params["val"]); |
|
|
|
return json($result); |
|
|
|
} |
|
|
|
} |