package com.diagbot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.diagbot.dto.DoctorAdviceDTO;
import com.diagbot.entity.DoctorAdvice;
import com.diagbot.vo.DoctorAdviceVO;
import com.diagbot.vo.FilterVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * <p>
 * 病人医嘱 Mapper 接口
 * </p>
 *
 * @author zhoutg
 * @time: 2024-04-13
 */
public interface DoctorAdviceMapper extends BaseMapper<DoctorAdvice> {
    public void updateBatchByKey(List<DoctorAdvice> list);
    IPage<DoctorAdviceDTO> getPage(@Param("doctorAdviceVO")DoctorAdviceVO doctorAdviceVO, @Param("infos") Set<String> infos);
    List<String> getInfo(@Param("hospitalId")Long hospitalId, @Param("behospitalCode")String behospitalCode);

    Map<String,Long> getCTAndMR( @Param("filterVO")FilterVO filterVO);
    List<Map<String, String>> getDoctorAdviceNum(@Param("filterVO") FilterVO filterVO);
}
