2026-06-04 17:20:02 +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.XkTransfuseApplyCausalisMapper">
|
2026-07-01 09:15:39 +08:00
|
|
|
<insert id="insert">
|
|
|
|
|
insert into xk_transfuse_apply_causalis (Bill_No, Hos_ID, SID,Causalis_Code,Causalis_Type,Causalis_Name,Causalis_Result,Use_Flag,Upload_Flag,Explain)
|
|
|
|
|
values (#{bill_no}, #{hos_id}, #{sid}, #{causalis_code}, #{causalis_type}, #{causalis_name}, #{causalis_result}, #{use_flag}, #{upload_flag}, #{explain})
|
|
|
|
|
</insert>
|
2026-07-02 17:21:33 +08:00
|
|
|
<update id="update">
|
|
|
|
|
update xk_transfuse_apply_causalis
|
|
|
|
|
<set>
|
|
|
|
|
<if test="SID != null">SID = #{SID},</if>
|
|
|
|
|
<if test="Causalis_Code != null">Causalis_Code = #{Causalis_Code},</if>
|
|
|
|
|
<if test="Causalis_Type != null">Causalis_Type = #{Causalis_Type},</if>
|
|
|
|
|
<if test="Causalis_Name != null">Causalis_Name = #{Causalis_Name}</if>
|
|
|
|
|
<if test="Causalis_Result != null">Causalis_Result = #{Causalis_Result}</if>
|
|
|
|
|
<if test="Use_Flag != null">Use_Flag = #{Use_Flag}</if>
|
|
|
|
|
<if test="Upload_Flag != null">Upload_Flag = #{Upload_Flag}</if>
|
|
|
|
|
<if test="Explain != null">Explain = #{Explain}</if>
|
|
|
|
|
hos_id = #{hos_id}
|
|
|
|
|
</set>
|
|
|
|
|
where Bill_No = #{bill_no} and Causalis_Code = #{Causalis_Code}
|
|
|
|
|
</update>
|
2026-07-01 09:15:39 +08:00
|
|
|
<delete id="deleteByBillNo">
|
2026-07-02 17:21:33 +08:00
|
|
|
delete from xk_transfuse_apply_causalis where Bill_No = #{bill_no} and Hos_ID = #{hos_id}
|
2026-07-01 09:15:39 +08:00
|
|
|
</delete>
|
2026-06-04 17:20:02 +08:00
|
|
|
<select id="queryList" resultType="com.czblood.bus.pojo.XkTransfuseApplyCausalis">
|
2026-07-02 17:21:33 +08:00
|
|
|
select * from xk_transfuse_apply_causalis where Bill_No = #{bill_no} and Hos_ID = #{hos_id}
|
2026-06-04 17:20:02 +08:00
|
|
|
<if test="SID != null">and sid = #{SID}</if>
|
|
|
|
|
</select>
|
2026-07-01 09:15:39 +08:00
|
|
|
<select id="queryListByBillNo" resultType="com.czblood.bus.pojo.XkTransfuseApplyCausalis">
|
2026-07-02 17:21:33 +08:00
|
|
|
select * from xk_transfuse_apply_causalis where Bill_No = #{bill_no} and Hos_ID = #{hos_id}
|
2026-07-01 09:15:39 +08:00
|
|
|
</select>
|
2026-06-04 17:20:02 +08:00
|
|
|
</mapper>
|