2025-10-09 17:33:53 +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.liswork.mapper.xtwh.LabReportinstrMapper">
|
|
|
|
|
|
|
|
|
|
<select id="getLabReportinstr" resultType="com.czlis.common.core.domain.entity.lis.LabReportinstr">
|
|
|
|
|
select * from lab_reportinstr
|
|
|
|
|
<where>
|
|
|
|
|
<if test="bgdh != null and bgdh != ''"> and bgdh = #{bgdh}</if>
|
|
|
|
|
<if test="yq != null and bgdh != ''"> and yq = #{yq}</if>
|
|
|
|
|
<if test="xh != null"> and xh = #{xh}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="add">
|
|
|
|
|
insert into lab_reportinstr(
|
2025-10-31 18:06:42 +08:00
|
|
|
bgdh,yq,xh,yljg,type,condition
|
2025-10-09 17:33:53 +08:00
|
|
|
)values(
|
2025-10-31 18:06:42 +08:00
|
|
|
#{bgdh},#{yq},#{xh},#{yljg},#{type},#{condition}
|
2025-10-09 17:33:53 +08:00
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<delete id="delete">
|
|
|
|
|
delete from lab_reportinstr where bgdh = #{bgdh} and yq = #{yq} and xh = #{xh}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<update id="update">
|
|
|
|
|
update lab_reportinstr
|
|
|
|
|
<set>
|
2025-10-31 18:06:42 +08:00
|
|
|
<if test="bgdh != null and bgdh != ''">bgdh = #{bgdh},</if>
|
|
|
|
|
<if test="type != null and type != ''">type = #{type},</if>
|
|
|
|
|
<if test="condition != null and condition != ''">condition = #{condition},</if>
|
|
|
|
|
yq = #{yq}
|
2025-10-09 17:33:53 +08:00
|
|
|
</set>
|
|
|
|
|
where yq = #{yq} and xh = #{xh}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
</mapper>
|