...
|
...
|
@@ -92,9 +92,15 @@ class AdminEquipmentController extends AdminBaseController{ |
|
|
}
|
|
|
|
|
|
public function editPost(){
|
|
|
$data=$this->request->post();
|
|
|
$param=$this->request->post();
|
|
|
$id=$param['id'];
|
|
|
$data=[
|
|
|
'serial_number'=>$param['serial_number'],
|
|
|
'hospital'=>$param['hospital'],
|
|
|
'note'=>$param['note']
|
|
|
];
|
|
|
$Equipment=new EquipmentModel();
|
|
|
$res=$Equipment->save($data);
|
|
|
$res=$Equipment->save($data,['id'=>$id]);
|
|
|
if ($res){
|
|
|
$this->apiResponse(200,'保存成功');
|
|
|
}else{
|
...
|
...
|
|