package thyyxxk.webserver.dao.his.ca;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import thyyxxk.webserver.entity.ca.PatientIdCardType;

import java.util.List;

@Mapper
public interface PatientIdCardTypeDao extends BaseMapper<PatientIdCardType> {


    @Select("select * from patient_id_card_type where pat_no = #{patNo}")
    List<PatientIdCardType> getIdCardTypeList(String patNo);

    @Select("select social_no as id_card, rtrim(name) as name " +
            "from a_patient_mi where inpatient_no = #{patNo}")
    PatientIdCardType getPatientIdCard(String patNo);

}
