|
|
@@ -128,6 +128,25 @@ class SupervisorConsultRecordService extends BaseService
|
|
|
*/
|
|
|
public function status($adminId=0)
|
|
|
{
|
|
|
- return parent::status($adminId); // TODO: Change the autogenerated stub
|
|
|
+ $data = request()->all();
|
|
|
+ if (!$data['id']) {
|
|
|
+ return message('记录ID不能为空', false);
|
|
|
+ }
|
|
|
+ if (!$data['status']) {
|
|
|
+ return message('记录状态不能为空', false);
|
|
|
+ }
|
|
|
+ $error = '';
|
|
|
+ $item = [
|
|
|
+ 'id' => $data['id'],
|
|
|
+ 'status' => $data['status']
|
|
|
+ ];
|
|
|
+ if($adminId){
|
|
|
+ $item['admin_id'] = $data['admin_id'];
|
|
|
+ }
|
|
|
+ $rowId = $this->model->edit($item, $error);
|
|
|
+ if (!$rowId) {
|
|
|
+ return message($error, false);
|
|
|
+ }
|
|
|
+ return message();
|
|
|
}
|
|
|
}
|