|
|
@@ -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); |
|
|
|
} |
|
|
|
|
|
|
|
} |