40 lines
2.1 KiB
XML
40 lines
2.1 KiB
XML
<?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.czlis.zybgcx.mapper.ZybgcxMapper">
|
|
|
|
|
|
<select id="getReportsList" resultType="com.czlis.zybgcx.pojo.Web_getReportsList">
|
|
<![CDATA[select * from web_getReportsList where jyrq >= CONVERT(varchar(100), #{st}, 120) and jyrq <= CONVERT(varchar(100), #{et}, 120) and brlyname = '住院']]>
|
|
<if test="brxm != null and brxm != ''"> AND brxm like '%'+#{brxm}+'%'</if>
|
|
<if test="brdh != null and brdh != ''"> AND brdh like '%'+#{brdh}+'%'</if>
|
|
<if test="sqh != null and sqh != ''"> AND sqh like '%'+#{sqh}+'%'</if>
|
|
<if test="dybz != null and dybz != ''"> AND dybz = #{dybz}</if>
|
|
<if test="ksdh !=null and ksdh != ''"> and ksdh = #{ksdh}</if>
|
|
<if test="alarmflag != null"> <![CDATA[AND alarmflag = #{alarmflag}]]></if>
|
|
<if test="ch != null and ch !=''"> and ch = #{ch}</if>
|
|
<if test="jzbz != null">and jzbz = #{jzbz}</if>
|
|
</select>
|
|
|
|
<select id="getResultMed" resultType="com.czlis.zybgcx.pojo.Web_getResultMed">
|
|
select * from web_getresultmed where jyrq = #{jyrq} and yq = #{yq} and ybh = #{ybh}
|
|
<if test="xmdh != null and xmdh != ''"> and xmdh = #{xmdh}</if>
|
|
</select>
|
|
|
|
<select id="getLisResult" resultType="com.czlis.zybgcx.pojo.Web_result">
|
|
select * from web_result where jyrq = #{jyrq} and yq = #{yq} and ybh = #{ybh}
|
|
<if test="xmdh != null and xmdh != ''"> and xmdh = #{xmdh}</if>
|
|
</select>
|
|
|
|
<select id="getFSResult" resultType="com.czlis.zybgcx.pojo.Web_fs_printReport">
|
|
select * from web_fs_printReport where brdh = #{brdh} and jyrq > getdate() - 90 and brlyname = '住院'
|
|
<if test="xmdh != null and xmdh != ''"> and xmdh = #{xmdh}</if>
|
|
<if test="bgdh != null and bgdh != ''"> and bgdh = #{bgdh}</if>
|
|
<if test="yqdl != null and yqdl != ''"> and yqdl = #{yqdl}</if>
|
|
<if test="bgdhTemp != null and bgdhTemp != ''"> and bgdh in (${bgdhTemp})</if>
|
|
order by bgdh
|
|
</select>
|
|
|
|
|
|
</mapper> |