2026-06-05 17:59:16 +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.czblood.bus.mapper.XkTransfuseApplyTestitemMapper">
|
|
|
|
|
<select id="queryList" resultType="com.czblood.bus.pojo.XkTransfuseApplyTestitem">
|
|
|
|
|
select * from xk_transfuse_apply_testitem where bill_no = #{bill_no}
|
|
|
|
|
</select>
|
2026-06-09 11:35:55 +08:00
|
|
|
|
|
|
|
|
<insert id="insertXkTransfuseApplyTestitem">
|
|
|
|
|
insert into xk_transfuse_apply_testitem(
|
|
|
|
|
<if test="item_name != null and item_name != ''">item_name,</if>
|
|
|
|
|
<if test="item_result != null and item_result != ''">item_result,</if>
|
|
|
|
|
<if test="Item_unit != null and Item_unit != ''">Item_unit,</if>
|
|
|
|
|
<if test="test_date != null">test_date,</if>
|
|
|
|
|
<if test="upload_flag != null and upload_flag != ''">upload_flag,</if>
|
2026-06-15 15:59:06 +08:00
|
|
|
bill_no,sid,hos_id
|
2026-06-09 11:35:55 +08:00
|
|
|
)values (
|
|
|
|
|
<if test="item_name != null and item_name != ''">#{item_name},</if>
|
|
|
|
|
<if test="item_result != null and item_result != ''">#{item_result},</if>
|
|
|
|
|
<if test="Item_unit != null and Item_unit != ''">#{Item_unit},</if>
|
|
|
|
|
<if test="test_date != null ">#{test_date},</if>
|
|
|
|
|
<if test="upload_flag != null and upload_flag != ''">#{upload_flag},</if>
|
2026-06-15 15:59:06 +08:00
|
|
|
#{bill_no},#{sid},#{hos_id}
|
2026-06-09 11:35:55 +08:00
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<update id="updateXkTransfuseApplyTestitem">
|
|
|
|
|
update xk_transfuse_apply_testitem set
|
|
|
|
|
<if test="item_result != null and item_result != ''">item_result=#{item_result},</if>
|
|
|
|
|
<if test="Item_unit != null and Item_unit != ''">Item_unit=#{Item_unit},</if>
|
|
|
|
|
<if test="test_date != null">test_date=#{test_date},</if>
|
|
|
|
|
<if test="upload_flag != null and upload_flag != ''">upload_flag=#{upload_flag},</if>
|
2026-06-15 15:59:06 +08:00
|
|
|
item_name=#{item_name},hos_id = #{hos_id}
|
2026-06-09 11:35:55 +08:00
|
|
|
where bill_no=#{bill_no}
|
|
|
|
|
<if test="sid != null">and sid=#{sid}</if>
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteXkTransfuseApplyTestitem">
|
|
|
|
|
delete from xk_transfuse_apply_testitem where bill_no=#{bill_no}
|
|
|
|
|
<if test="sid != null">and sid=#{sid}</if>
|
|
|
|
|
</delete>
|
2026-06-05 17:59:16 +08:00
|
|
|
</mapper>
|