<?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.docus.server.mzzyy.mapper.MzZyyXinDianViewMapper">

    <select id="getPatientXinDianView" resultType="com.docus.server.mzzyy.entity.MzZyyXinDianView">
        SELECT
            JZH as jzh,
            BGID as bgid,
            BGMC as bgmc,
            BGDZ as bgdz
        FROM dbo.V_JSWZH_XD
        WHERE 1=1 AND JZH = #{jzh}
        <if test="ext != null and ext != ''">
            ${ext}
        </if>
    </select>
</mapper>
