<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.info.hospital.mapper.HospitalMapper">

    <resultMap type="com.ruoyi.info.hospital.domain.Hospital" id="HospitalResult">
        <result property="id" column="id"/>
        <result property="name" column="name"/>
        <result property="responsiblePerson" column="responsible_person"/>
        <result property="contactMobile" column="contact_mobile"/>
        <result property="address" column="address"/>
        <result property="businessStatus" column="business_status"/>
        <result property="rackStatus" column="rack_status"/>
        <result property="level" column="level"/>
        <result property="label" column="label"/>
        <result property="provinceId" column="province_id"/>
        <result property="provinceName" column="province_name"/>
        <result property="cityId" column="city_id"/>
        <result property="cityName" column="city_name"/>
        <result property="areaId" column="area_id"/>
        <result property="areaName" column="area_name"/>
        <result property="coordinates" column="coordinates"/>
        <result property="serviceMobile" column="service_mobile"/>
        <result property="introduction" column="introduction"/>
        <result property="logoUrl" column="logo_url"/>
        <result property="qrCodeUrl" column="qr_code_url"/>
        <result property="businessHours" column="business_hours"/>
        <result property="sortOrder" column="sort_order"/>
        <result property="delFlag" column="del_flag"/>
        <result property="createTime" column="create_time"/>
        <result property="createBy" column="create_by"/>
        <result property="updateTime" column="update_time"/>
        <result property="updateBy" column="update_by"/>
    </resultMap>

    <select id="queryDelById" resultType="com.ruoyi.info.hospital.domain.vo.HospitalVo">
        SELECT * FROM tb_hospital WHERE id = #{id}
    </select>

    <select id="queryNameById" resultType="java.lang.String">
        SELECT name FROM tb_hospital WHERE id = #{id}
    </select>


</mapper>
