nizongfeng 3 years ago
parent
commit
5ae3dbff1f
1 changed files with 23 additions and 0 deletions
  1. +23
    -0
      application/admin/controller/ReceiptOrder.php

+ 23
- 0
application/admin/controller/ReceiptOrder.php View File

@@ -196,4 +196,27 @@ class ReceiptOrder extends Backend
$result = $service->save($params);
return json($result);
}

/**
* 获取列表
* @return \think\response\Json
*/
public function getList(){
$params=$this->request->post();
$service = new ReceiptOrderDao();
$result = $service->getList($params);
return json($result);
}

/**
* 状态设置
* @return \think\response\Json
*/
public function setStatus(){
$params=$this->request->post();
$service = new ReceiptOrderDao();
$result = $service->setStatus($params['id'],$params['status']);
return json($result);
}

}

Loading…
Cancel
Save