20 lines
1.1 KiB
XML
20 lines
1.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.liswork.mapper.work.BatchCheckMapper">
|
|
<select id="queryData" resultType="com.czlis.common.core.domain.entity.lis.LabPat">
|
|
<![CDATA[
|
|
select * from lab_pat where jyrq >= #{jyrq1} and jyrq <= #{jyrq2} and yq = #{yq}
|
|
]]>
|
|
<if test="ybh1 != null and ybh1 != ''">and ( CASE WHEN ybh NOT LIKE '%[^0-9]%' THEN CAST(ybh AS bigint) ELSE 0 END) between #{ybh1} and #{ybh2}</if>
|
|
<if test="ksdh != null and ksdh != ''">and ksdh = #{ksdh}</if>
|
|
<if test="yhdh != null and yhdh != ''">and yhdh = #{yhdh}</if>
|
|
<if test="brly != null and brly != ''">and brly = #{brly}</if>
|
|
<if test="jgbz != null and jgbz != ''">and jgbz = #{jgbz}</if>
|
|
<if test="lisgroup != null and lisgroup != ''">and yq in (select yq from lab_instr where lisgroup=#{lisgroup})</if>
|
|
<if test="yljg != null and yljg != ''">and yljg = #{yljg}</if>
|
|
<if test="jzbz != null and jzbz != ''">and jzbz = #{jzbz}</if>
|
|
</select>
|
|
|
|
</mapper>
|