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.XkTransfuseApplyBeforeMapper">
|
|
|
|
|
<select id="queryList" resultType="com.czblood.bus.pojo.XkTransfuseApplyBefore">
|
|
|
|
|
select * from xk_transfuse_apply_before
|
|
|
|
|
<where>
|
|
|
|
|
<if test="bill_no != null and bill_no != ''">and bill_no = #{bill_no}</if>
|
|
|
|
|
<if test="beinhos_id != null and beinhos_id != ''">and beinhos_id = #{beinhos_id}</if>
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
|
|
</select>
|
2026-06-09 11:35:55 +08:00
|
|
|
|
2026-06-17 09:19:50 +08:00
|
|
|
|
|
|
|
|
<select id="queryOne" resultType="com.czblood.bus.pojo.XkTransfuseApplyBefore">
|
2026-06-17 17:49:03 +08:00
|
|
|
select * from xk_transfuse_apply_before where bill_no = #{bill_no} and hos_id = #{hos_id}
|
2026-06-17 09:19:50 +08:00
|
|
|
</select>
|
|
|
|
|
|
2026-06-09 11:35:55 +08:00
|
|
|
<insert id="insertXkTransfuseApplyBefore">
|
|
|
|
|
insert into xk_transfuse_apply_before(
|
|
|
|
|
<if test="dept_id != null and dept_id !=''">dept_id,</if>
|
|
|
|
|
<if test="zone_id != null and zone_id !=''">zone_id,</if>
|
|
|
|
|
<if test="agreement_ink != null and agreement_ink !=''">agreement_ink,</if>
|
|
|
|
|
<if test="blood_loss != null ">blood_loss,</if>
|
|
|
|
|
<if test="assess_data != null ">assess_data,</if>
|
|
|
|
|
<if test="assess_person != null and assess_person != '' ">assess_person,</if>
|
|
|
|
|
<if test="blood_breed != null and blood_breed != '' ">blood_breed,</if>
|
|
|
|
|
<if test="blood_num != null ">blood_num,</if>
|
|
|
|
|
<if test="unit != null and unit != ''">unit,</if>
|
|
|
|
|
<if test="intent != null and intent != ''">intent,</if>
|
|
|
|
|
<if test="diagnoses != null and diagnoses != ''">diagnoses,</if>
|
|
|
|
|
<if test="patient_bed != null and patient_bed != ''">patient_bed,</if>
|
|
|
|
|
<if test="anemia != null and anemia != ''">anemia,</if>
|
|
|
|
|
<if test="metabolism != null and metabolism != ''">metabolism,</if>
|
|
|
|
|
<if test="cruor != null and cruor != ''">cruor,</if>
|
|
|
|
|
<if test="bqgy != null and bqgy != ''">bqgy,</if>
|
|
|
|
|
<if test="hos_id != null and hos_id != ''">hos_id,</if>
|
2026-06-17 09:19:50 +08:00
|
|
|
bill_no, beinhos_id,bill_status
|
2026-06-09 11:35:55 +08:00
|
|
|
)
|
|
|
|
|
values(
|
|
|
|
|
<if test="dept_id != null and dept_id !=''">#{dept_id},</if>
|
|
|
|
|
<if test="zone_id != null and zone_id !=''">#{zone_id},</if>
|
|
|
|
|
<if test="agreement_ink != null and agreement_ink !=''">#{agreement_ink},</if>
|
|
|
|
|
<if test="blood_loss != null ">#{blood_loss},</if>
|
|
|
|
|
<if test="assess_data != null ">#{assess_data},</if>
|
|
|
|
|
<if test="assess_person != null and assess_person != '' ">#{assess_person},</if>
|
|
|
|
|
<if test="blood_breed != null and blood_breed != '' ">#{blood_breed},</if>
|
|
|
|
|
<if test="blood_num != null ">#{blood_num},</if>
|
|
|
|
|
<if test="unit != null and unit != ''">#{unit},</if>
|
|
|
|
|
<if test="intent != null and intent != ''">#{intent},</if>
|
|
|
|
|
<if test="diagnoses != null and diagnoses != ''">#{diagnoses},</if>
|
|
|
|
|
<if test="patient_bed != null and patient_bed != ''">#{patient_bed},</if>
|
|
|
|
|
<if test="anemia != null and anemia != ''">#{anemia},</if>
|
|
|
|
|
<if test="metabolism != null and metabolism != ''">#{metabolism},</if>
|
|
|
|
|
<if test="cruor != null and cruor != ''">#{cruor},</if>
|
|
|
|
|
<if test="bqgy != null and bqgy != ''">#{bqgy},</if>
|
|
|
|
|
<if test="hos_id != null and hos_id != ''">#{hos_id},</if>
|
2026-06-17 09:19:50 +08:00
|
|
|
#{bill_no}, #{beinhos_id},#{bill_status}
|
2026-06-09 11:35:55 +08:00
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateXkTransfuseApplyBefore">
|
|
|
|
|
update xk_transfuse_apply_before
|
|
|
|
|
<set>
|
|
|
|
|
<if test="dept_id != null and dept_id !=''">dept_id = #{dept_id},</if>
|
|
|
|
|
<if test="zone_id != null and zone_id !=''">zone_id = #{zone_id},</if>
|
|
|
|
|
<if test="agreement_ink != null and agreement_ink !=''">agreement_ink = #{agreement_ink},</if>
|
|
|
|
|
<if test="blood_loss != null ">blood_loss = #{blood_loss},</if>
|
|
|
|
|
<if test="assess_data != null ">assess_data = #{assess_data},</if>
|
|
|
|
|
<if test="assess_person != null and assess_person != ''">assess_person = #{assess_person},</if>
|
|
|
|
|
<if test="blood_breed != null and blood_breed != ''">blood_breed = #{blood_breed},</if>
|
|
|
|
|
<if test="blood_num != null ">blood_num = #{blood_num},</if>
|
|
|
|
|
<if test="unit != null and unit != ''">unit = #{unit},</if>
|
|
|
|
|
<if test="intent != null and intent != ''">intent = #{intent},</if>
|
|
|
|
|
<if test="diagnoses != null and diagnoses != ''">diagnoses = #{diagnoses},</if>
|
|
|
|
|
<if test="patient_bed != null and patient_bed != ''">patient_bed = #{patient_bed},</if>
|
|
|
|
|
<if test="anemia != null and anemia != ''">anemia = #{anemia},</if>
|
|
|
|
|
<if test="metabolism != null and metabolism != ''">metabolism = #{metabolism},</if>
|
|
|
|
|
<if test="cruor != null and cruor != ''">cruor = #{cruor},</if>
|
|
|
|
|
<if test="bqgy != null and bqgy != ''">bqgy = #{bqgy},</if>
|
2026-06-17 09:19:50 +08:00
|
|
|
<if test="bill_status != null and bill_status != ''">bill_status = #{bill_status},</if>
|
2026-06-17 17:49:03 +08:00
|
|
|
<if test="hos_id != null and hos_id != ''">hos_id = #{hos_id},</if>
|
2026-06-17 09:19:50 +08:00
|
|
|
bill_no = #{bill_no}
|
2026-06-09 11:35:55 +08:00
|
|
|
</set>
|
|
|
|
|
where bill_no = #{bill_no}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteXkTransfuseApplyBefore">
|
|
|
|
|
delete from xk_transfuse_apply_before where bill_no = #{bill_no}
|
|
|
|
|
</delete>
|
2026-06-04 17:20:02 +08:00
|
|
|
</mapper>
|