lis8.0/liswork/src/main/resources/mapper/LabReportinstrMapper.xml

36 lines
1.1 KiB
XML
Raw Normal View History

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(
bgdh,yq,xh,yljg
)values(
#{bgdh},#{yq},#{xh},#{yljg}
)
</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>
bgdh = #{bgdh}
</set>
where yq = #{yq} and xh = #{xh}
</update>
</mapper>