package com.xinelu.manage.mapper.nursestationdepartment;


import com.xinelu.manage.domain.nursestationdepartment.NurseStationDepartment;
import com.xinelu.manage.vo.nursestationdepartment.NurseStationDepartmentVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 护理站部门信息Mapper接口
 *
 * @author xinyilu
 * @date 2022-09-13
 */
public interface NurseStationDepartmentMapper {
    /**
     * 查询护理站部门信息
     *
     * @param id 护理站部门信息主键
     * @return 护理站部门信息
     */
    NurseStationDepartmentVO selectNurseStationDepartmentById(Long id);

    /**
     * 查询护理站部门信息列表
     *
     * @param nurseStationDepartment 护理站部门信息
     * @return 护理站部门信息集合
     */
    List<NurseStationDepartmentVO> selectNurseStationDepartmentList(NurseStationDepartmentVO nurseStationDepartment);

    /**
     * 新增护理站部门信息
     *
     * @param nurseStationDepartment 护理站部门信息
     * @return 结果
     */
    int insertNurseStationDepartmentList(List<NurseStationDepartment> nurseStationDepartment);

    /**
     * 修改护理站部门信息
     *
     * @param nurseStationDepartment 护理站部门信息
     * @return 结果
     */
    int updateNurseStationDepartment(NurseStationDepartment nurseStationDepartment);

    /**
     * 删除护理站部门信息
     *
     * @param id 护理站部门信息主键
     * @return 结果
     */
    int deleteNurseStationDepartmentById(Long id);

    /**
     * 批量删除护理站部门信息
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteNurseStationDepartmentByIds(Long[] ids);

    /**
     * 根据名称是否有重复的
     *
     * @param nurseStationId 科室id
     * @param departmentName 科室名称
     * @return int 结果
     **/
    int getDepartmentName(@Param("nurseStationId") Long nurseStationId, @Param("departmentName") String departmentName);

    /**
     * 根据电话是否有重复的
     *
     * @param phone 科室电话
     * @return int 结果
     **/
    int getDepartmentPhone(String phone);
}