2025-09-19 22:50:07 +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.interfaceCommon.mapper.LabResultMedMapper">
|
|
|
|
|
<select id="getLabResultMed" resultType="com.czlis.common.core.domain.entity.lis.LabResultMed">
|
|
|
|
|
select *
|
|
|
|
|
from lab_resultmed
|
|
|
|
|
<where>
|
|
|
|
|
<if test="jyrq != null ">
|
|
|
|
|
and jyrq = #{jyrq}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="yq != null and yq != ''">
|
|
|
|
|
and yq = #{yq}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ybh != null and ybh != ''">
|
|
|
|
|
and ybh = #{ybh}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="xmdh != null and xmdh != ''">
|
|
|
|
|
and xmdh = #{xmdh}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getLabResultMedCount" resultType="int">
|
|
|
|
|
select count(1)
|
|
|
|
|
from lab_resultmed
|
|
|
|
|
<where>
|
|
|
|
|
<if test="jyrq != null ">
|
|
|
|
|
and jyrq = #{jyrq}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="yq != null and yq != ''">
|
|
|
|
|
and yq = #{yq}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ybh != null and ybh != ''">
|
|
|
|
|
and ybh = #{ybh}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
2025-10-17 18:25:22 +08:00
|
|
|
<delete id="delLabResultMed" >
|
|
|
|
|
delete from lab_resultmed
|
|
|
|
|
where jyrq = #{jyrq}
|
|
|
|
|
and yq = #{yq,jdbcType=CHAR}
|
|
|
|
|
and ybh = #{ybh,jdbcType=VARCHAR}
|
|
|
|
|
and xmdh = #{xmdh,jdbcType=VARCHAR}
|
|
|
|
|
</delete>
|
|
|
|
|
<delete id="delLabResultMedAll" >
|
|
|
|
|
delete from lab_resultmed
|
|
|
|
|
where jyrq = #{jyrq}
|
|
|
|
|
and yq = #{yq,jdbcType=CHAR}
|
|
|
|
|
and ybh = #{ybh,jdbcType=VARCHAR}
|
|
|
|
|
</delete>
|
2025-09-19 22:50:07 +08:00
|
|
|
</mapper>
|