1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- namespace app\common\model;
- /**
- * 科室信息表
- * Class DepartmentModel
- * @package app\common\model
- */
- class DepartmentModel extends BaseModel
- {
- protected $table='department';
- /**
- *添加科室
- *@param array 科室信息
- *@return int 科室id
- */
- public function department_add($params){
- return $this->kuyun_insert($params,'');
- }
- /**
- *查询科室单条信息
- *@param array 查询条件
- *@return array 科室信息
- */
- public function department_find($where){
- return $this->kuyun_find($where,'','');
- }
- /**
- *科室列表
- *@param array 页码
- *@param bull
- *@return array 所有科室的信息
- */
- public function department_list($page,$is_count){
- return $this->kuyun_select('','','','','',$page,$is_count);
- }
- /**
- *编辑科室
- *@param array 添加的数据
- *@param array 条件
- *@return int
- */
- public function department_edit($data,$where){
- return $this->kuyun_insert($data,$where);
- }
- /**
- *删除科室
- *@param array 删除条件
- *@return int 返回删除id
- */
- public function department_delete($where){
- return $this->kuyun_delete($where);
- }
- }
|