blood/blood_bus/src/main/resources/mapper/XkOutMainMapper.xml

111 lines
6.0 KiB
XML
Raw Normal View History

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">
<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>
2026-08-25 17:34:52 +08:00
<if test="match_no != null">match_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>
2026-08-24 09:20:47 +08:00
<if test="more_sign != null">more_sign,</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>
2026-08-25 17:34:52 +08:00
<if test="match_no != null">#{match_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>
2026-08-24 09:20:47 +08:00
<if test="more_sign != null">#{more_sign},</if>
#{bill_no}, #{hos_id}, #{occur_date}
)
</insert>
<update id="update">
update xk_out_main set
<if test="total_money != null">total_money = #{total_money},</if>
<if test="take_person != null">take_person = #{take_person},</if>
<if test="handle_person != null">handle_person = #{handle_person},</if>
<if test="apply_no != null">apply_no = #{apply_no},</if>
<if test="match_no != null">match_no = #{match_no},</if>
<if test="patient_name != null">patient_name = #{patient_name},</if>
<if test="beinhos_id != null">beinhos_id = #{beinhos_id},</if>
<if test="dept_id != null">dept_id = #{dept_id},</if>
<if test="check_no != null">check_no = #{check_no},</if>
<if test="bill_sort != null">bill_sort = #{bill_sort},</if>
<if test="notify_time != null">notify_time = #{notify_time},</if>
<if test="is_free_account != null">is_free_account = #{is_free_account},</if>
<if test="input_person != null">input_person = #{input_person},</if>
<if test="input_date != null">input_date = #{input_date},</if>
<if test="check_sign != null">check_sign = #{check_sign},</if>
<if test="check_person != null">check_person = #{check_person},</if>
<if test="check_date != null">check_date = #{check_date},</if>
<if test="audit_person != null">audit_person = #{audit_person},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="exp1 != null">exp1 = #{exp1},</if>
<if test="exp2 != null">exp2 = #{exp2},</if>
<if test="last_modified != null">last_modified = #{last_modified},</if>
<if test="all_recycle_sign != null">all_recycle_sign = #{all_recycle_sign},</if>
<if test="receive_person != null">receive_person = #{receive_person},</if>
<if test="receive_id != null">receive_id = #{receive_id},</if>
2026-08-24 09:20:47 +08:00
<if test="more_sign != null">more_sign = #{more_sign},</if>
bill_no = #{bill_no}
where bill_no = #{bill_no}
</update>
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>
2026-08-24 09:20:47 +08:00
<select id="queryList" resultType="com.czblood.bus.pojo.XkOutMain">
select * from xk_out_main
<where>
<if test="apply_no != null">and apply_no = #{apply_no}</if>
<if test="match_no != null">and match_no = #{match_no}</if>
<if test="beinhos_id != null">and beinhos_id = #{beinhos_id}</if>
<if test="check_no != null">and check_no = #{check_no}</if>
<if test="bill_sort != null">and bill_sort = #{bill_sort}</if>
<if test="input_person != null">and input_person = #{input_person}</if>
<if test="check_sign != null">and check_sign = #{check_sign}</if>
</where>
</select>
2026-08-03 17:57:13 +08:00
</mapper>