2026-08-03 17:57:13 +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.XkOutMainMapper">
|
2026-08-14 10:14:35 +08:00
|
|
|
<insert id="insert">
|
|
|
|
|
insert into xk_out_main (
|
|
|
|
|
<if test="total_money != null">total_money,</if>
|
|
|
|
|
<if test="take_person != null">take_person,</if>
|
|
|
|
|
<if test="handle_person != null">handle_person,</if>
|
|
|
|
|
<if test="apply_no != null">apply_no,</if>
|
|
|
|
|
<if test="patient_name != null">patient_name,</if>
|
|
|
|
|
<if test="beinhos_id != null">beinhos_id,</if>
|
|
|
|
|
<if test="dept_id != null">dept_id,</if>
|
|
|
|
|
<if test="check_no != null">check_no,</if>
|
|
|
|
|
<if test="bill_sort != null">bill_sort,</if>
|
|
|
|
|
<if test="notify_time != null">notify_time,</if>
|
|
|
|
|
<if test="is_free_account != null">is_free_account,</if>
|
|
|
|
|
<if test="input_person != null">input_person,</if>
|
|
|
|
|
<if test="input_date != null">input_date,</if>
|
|
|
|
|
<if test="check_sign != null">check_sign,</if>
|
|
|
|
|
<if test="check_person != null">check_person,</if>
|
|
|
|
|
<if test="check_date != null">check_date,</if>
|
|
|
|
|
<if test="audit_person != null">audit_person,</if>
|
|
|
|
|
<if test="remark != null">remark,</if>
|
|
|
|
|
<if test="exp1 != null">exp1,</if>
|
|
|
|
|
<if test="exp2 != null">exp2,</if>
|
|
|
|
|
<if test="last_modified != null">last_modified,</if>
|
|
|
|
|
<if test="all_recycle_sign != null">all_recycle_sign,</if>
|
|
|
|
|
<if test="receive_person != null">receive_person,</if>
|
|
|
|
|
<if test="receive_id != null">receive_id,</if>
|
|
|
|
|
bill_no, hos_id,occur_date
|
|
|
|
|
)values (
|
|
|
|
|
<if test="total_money != null">#{total_money},</if>
|
|
|
|
|
<if test="take_person != null">#{take_person},</if>
|
|
|
|
|
<if test="handle_person != null">#{handle_person},</if>
|
|
|
|
|
<if test="apply_no != null">#{apply_no},</if>
|
|
|
|
|
<if test="patient_name != null">#{patient_name},</if>
|
|
|
|
|
<if test="beinhos_id != null">#{beinhos_id},</if>
|
|
|
|
|
<if test="dept_id != null">#{dept_id},</if>
|
|
|
|
|
<if test="check_no != null">#{check_no},</if>
|
|
|
|
|
<if test="bill_sort != null">#{bill_sort},</if>
|
|
|
|
|
<if test="notify_time != null">#{notify_time},</if>
|
|
|
|
|
<if test="is_free_account != null">#{is_free_account},</if>
|
|
|
|
|
<if test="input_person != null">#{input_person},</if>
|
|
|
|
|
<if test="input_date != null">#{input_date},</if>
|
|
|
|
|
<if test="check_sign != null">#{check_sign},</if>
|
|
|
|
|
<if test="check_person != null">#{check_person},</if>
|
|
|
|
|
<if test="check_date != null">#{check_date},</if>
|
|
|
|
|
<if test="audit_person != null">#{audit_person},</if>
|
|
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
|
|
<if test="exp1 != null">#{exp1},</if>
|
|
|
|
|
<if test="exp2 != null">#{exp2},</if>
|
|
|
|
|
<if test="last_modified != null">#{last_modified},</if>
|
|
|
|
|
<if test="all_recycle_sign != null">#{all_recycle_sign},</if>
|
|
|
|
|
<if test="receive_person != null">#{receive_person},</if>
|
|
|
|
|
<if test="receive_id != null">#{receive_id},</if>
|
|
|
|
|
#{bill_no}, #{hos_id}, #{occur_date}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
2026-08-03 17:57:13 +08:00
|
|
|
|
|
|
|
|
<select id="queryOne" resultType="com.czblood.bus.pojo.XkOutMain">
|
|
|
|
|
select * from xk_out_main where bill_no = #{billNo}
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|