<?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="org.springblade.epidemic.epidemic.mapper.EpidemicMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="epidemicResultMap" type="org.springblade.epidemic.epidemic.entity.Epidemic">
        <result column="id" property="id"/>
        <result column="create_user" property="createUser"/>
        <result column="create_dept" property="createDept"/>
        <result column="create_time" property="createTime"/>
        <result column="update_user" property="updateUser"/>
        <result column="update_time" property="updateTime"/>
        <result column="status" property="status"/>
        <result column="is_deleted" property="isDeleted"/>
        <result column="report_time" property="reportTime"/>
        <result column="person" property="person"/>
        <result column="phone" property="phone"/>
        <result column="residential_id" property="residentialId"/>
        <result column="relationship" property="relationship"/>
        <result column="person_num" property="personNum"/>
        <result column="reach_wuhan" property="reachWuhan"/>
        <result column="through_wuhan" property="throughWuhan"/>
        <result column="touch_wuhan" property="touchWuhan"/>
        <result column="temperature" property="temperature"/>
        <result column="body_status" property="bodyStatus"/>
        <result column="know_coronavirus" property="knowCoronavirus"/>
    </resultMap>


    <select id="selectEpidemicPage" resultMap="epidemicResultMap">
        select * from yc_epidemic where is_deleted = 0
    </select>

</mapper>
