package com.diagbot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.diagbot.dto.SymptomSearchDTO;
import com.diagbot.entity.Symptom;
import com.diagbot.entity.SymptomWrapper;

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

/**
 * @Description: 部位mapper
 * @Author: ztg
 * @Date: 2018/10/24 15:55
 */
public interface SymptomMapper extends BaseMapper<Symptom> {

    /**
     * 根据部位ids获取症状信息
     * @param map
     * @return
     */
    public List<SymptomWrapper> getByPartIds(Map map);


    /**
     * 获取常用症状
     * @return 常用症状
     */
    public List<Symptom> getUsual(Map map);


    /**
     * 检索
     * @param map
     * @return
     */
    public List<SymptomSearchDTO> search(Map map);
}
