...
|
...
|
@@ -10,9 +10,13 @@ namespace app\admin\model; |
|
|
|
|
|
|
|
|
use think\Model;
|
|
|
use traits\model\SoftDelete;
|
|
|
|
|
|
class HospitalModel extends Model
|
|
|
{
|
|
|
|
|
|
use SoftDelete;
|
|
|
protected $deleteTime = 'delete_time';
|
|
|
/**
|
|
|
* 返回平台信息
|
|
|
* @return false|\PDOStatement|string|\think\Collection
|
...
|
...
|
@@ -27,10 +31,24 @@ class HospitalModel extends Model |
|
|
return $platment;
|
|
|
}
|
|
|
|
|
|
public function getHospital(){
|
|
|
$map['platment_id']='0';
|
|
|
$map['deleteTime']='0';
|
|
|
$hospital=db('hospital')->where($map)->select();
|
|
|
/**
|
|
|
* 获取医院
|
|
|
* @return false|\PDOStatement|string|\think\Collection
|
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
public function getHospital($platform_id){
|
|
|
$map['platform_id']=$platform_id;
|
|
|
$hospital=$this->where($map)->select();
|
|
|
return $hospital;
|
|
|
}
|
|
|
|
|
|
public function hospitalDel($hosptial_id){
|
|
|
$result=$this::destroy($hosptial_id);
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|