package thyyxxk.webserver.dao.his.zhuyuanyisheng.emr;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import thyyxxk.webserver.entity.zhuyuanyisheng.emr.EmrFolder;
import thyyxxk.webserver.entity.zhuyuanyisheng.emr.EmrPatientData;

import java.util.List;

public interface EmrFolderDao extends BaseMapper<EmrFolder> {

    @Select("select id as emr_document_id, " +
            "       name as emr_name, name," +
            "       'This is Dir' as emr_category_code," +
            "       parent, sort " +
            "from emr_folder where folder_name = '${folderName}' ")
    List<EmrPatientData> getFolderByName(String folderName);
}
