<?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.emr.dao.PushRcvBasicMapper">


    <insert id="addRcvBasic">
        <foreach collection="list" item="item" index="index" separator=";">
            insert into  rcv_basic
            <trim prefix="(" suffix=")" suffixOverrides=",">
                <if test="item.patientId != null">
                    patient_id,
                </if>
                <if test="item.admissTimes != null">
                    admiss_times,
                </if>
                <if test="item.inpatientNo != null">
                    inpatient_no,
                </if>
                <if test="item.jzh != null">
                    jzh,
                </if>
                <if test="item.admissId != null">
                    admiss_id,
                </if>
                <if test="item.name != null">
                    name,
                </if>
                <if test="item.serialNumber != null">
                    serial_number,
                </if>
                <if test="item.admissDate != null">
                    admiss_date,
                </if>
                <if test="item.admissDept != null">
                    admiss_dept,
                </if>
                <if test="item.admissDeptName != null">
                    admiss_dept_name,
                </if>
                <if test="item.disDate != null">
                    dis_date,
                </if>
                <if test="item.disDept != null">
                    dis_dept,
                </if>
                <if test="item.disDeptName != null">
                    dis_dept_name,
                </if>
                <if test="item.admissDays != null">
                    admiss_days,
                </if>
                <if test="item.attendingName != null">
                    attending_name,
                </if>
                <if test="item.fileSource != null">
                    file_source,
                </if>
                <if test="item.recoveryState != null">
                    recovery_state,
                </if>
                <if test="item.pushState != null">
                    push_state,
                </if>
                <if test="item.revoveryTime != null">
                    revovery_time,
                </if>
                <if test="item.revoveryUser != null">
                    revovery_user,
                </if>
                <if test="item.updateTime != null">
                    update_time,
                </if>
                <if test="item.createTime != null">
                    create_time,
                </if>
            </trim>
            <trim prefix="values (" suffix=")" suffixOverrides=",">
                <if test="item.patientId != null">
                    #{item.patientId},
                </if>
                <if test="item.admissTimes != null">
                    #{item.admissTimes},
                </if>
                <if test="item.inpatientNo != null">
                    #{item.inpatientNo},
                </if>
                <if test="item.jzh != null">
                    #{item.jzh},
                </if>
                <if test="item.admissId != null">
                    #{item.admissId},
                </if>
                <if test="item.name != null">
                    #{item.name},
                </if>
                <if test="item.serialNumber != null">
                    #{item.serialNumber},
                </if>
                <if test="item.admissDate != null">
                    #{item.admissDate},
                </if>
                <if test="item.admissDept != null">
                    #{item.admissDept},
                </if>
                <if test="item.admissDeptName != null">
                    #{item.admissDeptName},
                </if>
                <if test="item.disDate != null">
                    #{item.disDate},
                </if>
                <if test="item.disDept != null">
                    #{item.disDept},
                </if>
                <if test="item.disDeptName != null">
                    #{item.disDeptName},
                </if>
                <if test="item.admissDays != null">
                    #{item.admissDays},
                </if>
                <if test="item.attendingName != null">
                    #{item.attendingName},
                </if>
                <if test="item.fileSource != null">
                    #{item.fileSource},
                </if>
                <if test="item.recoveryState != null">
                    #{item.recoveryState},
                </if>
                <if test="item.pushState != null">
                    #{item.pushState},
                </if>
                <if test="item.revoveryTime != null">
                    #{item.revoveryTime},
                </if>
                <if test="item.revoveryUser != null">
                    #{item.revoveryUser},
                </if>
                <if test="item.updateTime != null">
                    #{item.updateTime},
                </if>
                <if test="item.createTime != null">
                    #{item.createTime},
                </if>
            </trim>
        </foreach>

    </insert>
</mapper>