lis8.0/zybgcx/src/main/resources/mapper/ZybgcxMapper.xml

40 lines
2.1 KiB
XML
Raw Normal View History

2025-06-10 12:03:23 +08:00
<?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">
2025-06-11 16:25:03 +08:00
2025-06-10 12:03:23 +08:00
<select id="getReportsList" resultType="com.czlis.zybgcx.pojo.Web_getReportsList">
2025-09-02 17:49:21 +08:00
<![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>
2025-09-20 22:37:20 +08:00
<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>
2025-06-11 16:25:03 +08:00
</select>
<select id="getResultMed" resultType="com.czlis.zybgcx.pojo.Web_getResultMed">
2025-09-02 17:49:21 +08:00
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">
2025-09-04 16:57:39 +08:00
select * from web_fs_printReport where brdh = #{brdh} and jyrq > getdate() - 90 and brlyname = '住院'
2025-09-02 17:49:21 +08:00
<if test="xmdh != null and xmdh != ''"> and xmdh = #{xmdh}</if>
<if test="bgdh != null and bgdh != ''"> and bgdh = #{bgdh}</if>
2025-09-04 16:57:39 +08:00
<if test="yqdl != null and yqdl != ''"> and yqdl = #{yqdl}</if>
<if test="bgdhTemp != null and bgdhTemp != ''"> and bgdh in (${bgdhTemp})</if>
2025-09-02 17:49:21 +08:00
order by bgdh
2025-06-10 12:03:23 +08:00
</select>
</mapper>