<?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.bonus.boot.manager.anomaly.dao.AnomalyDao">

    <select id="getList" resultType="com.bonus.boot.manager.basic.entity.HospitalBean">
        SELECT
            id,
            '' as unit,
            '' as disease,
            '' as totalNumberOfUnit ,
            '' as thisCountNum,
            '' as under40InspectionNum,
            '' as over40InspectionNum,
            '' as checkOutNumForAnomalies,
            '' as checkOutNumForUnder40,
            '' as checkOutNumForOver40,
            '' as totalDetectionRate
        FROM ''
        where is_active = '1'
        <if test="unit != null and unit != ''">
            AND '' LIKE concat ('%',#{unit},'%')
        </if>
        <if test="disease != null and disease != ''">
            AND '' LIKE concat ('%',#{disease},'%')
        </if>
    </select>
</mapper>

