package com.kcim.dao.mapper;

import com.kcim.dao.model.ImportPatientInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kcim.vo.CommonDepartVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 患者信息导入
 * 
 * @author Wang.YS
 * @date 2023-10-17 15:35:58
 */
@Mapper
public interface ImportPatientInfoMapper extends BaseMapper<ImportPatientInfo> {

    List<CommonDepartVo> getPatientInfoDepartment(@Param("type") Integer type,
                                                  @Param("filter")String filter,
                                                  @Param("computeDate")String computeDate,
                                                  @Param("hospId") Long hospId);

    void reducingPatientInfoByFileId(@Param("computeDate") String computeDate,
                                 @Param("hospId")Long hospId,
                                 @Param("fileId")Long fileId,
                                 @Param("date") Date date,
                                 @Param("userId")String userId);
}
