package com.kcim.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kcim.common.util.PageUtils;
import com.kcim.common.util.Result;
import com.kcim.dao.model.Department;
import com.kcim.dao.model.dto.DepartmentRequest;

import java.util.List;

/**
 * 科室表
 *
 * @author KCYG
 * @email KCYG@xinxicom
 * @date 2021-07-27 08:49:37
 */
public interface DepartmentService extends IService<Department> {
    /**
     * 分页查询科室信息
     * @param current
     * @param pageSize
     * @param hospId
     * @param name
     * @return
     */
    PageUtils queryList(Integer current, Integer pageSize, Long hospId , String name);

    /**
     * 根据指定条件查询科室的相关信息
     * @param id
     * @param departmentName
     * @param departmentCode
     * @param hospId
     * @return
     */
    List<Department> getByDepartment(Integer id,String departmentName,String departmentCode,Long hospId);

    /**
     * 保存科室信息
     * @param departmentRequest
     */
    void addDepartment(DepartmentRequest departmentRequest);

    /**
     * 修改科室信息
     * @param departmentRequest
     */
    void updateByDepartment(DepartmentRequest departmentRequest);

    /**
     * 导入科室信息
     * @param read
     * @param hospId
     * @return
     */
    Result importDepartment(List<List<Object>> read, Long hospId);

    /**
     * 批量删除科室信息
     * @param idList 科室Id集合
     */
    void deleteByIds(List<Integer> idList);

    List<Department> getDepartments();
}

