<?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.diagbot.mapper.BuriedSomeStatisticalMapper">

	<!-- 通用查询映射结果 -->
	<resultMap id="BaseResultMap" type="com.diagbot.entity.BuriedSomeStatistical">
		<id column="id" property="id" />
		<result column="is_deleted" property="isDeleted" />
		<result column="gmt_create" property="gmtCreate" />
		<result column="gmt_modified" property="gmtModified" />
		<result column="creator" property="creator" />
		<result column="modifier" property="modifier" />
		<result column="hospital_id" property="hospitalId" />
		<result column="hospital_dept_id" property="hospitalDeptId" />
		<result column="doctor_id" property="doctorId" />
		<result column="patient_id" property="patientId" />
		<result column="inquiry_code" property="inquiryCode" />
		<result column="label_id" property="labelId" />
		<result column="label_name" property="labelName" />
		<result column="operation_type" property="operationType" />
		<result column="operation_num" property="operationNum" />
		<result column="status" property="status" />
	</resultMap>
	<insert id="insertCodeBatch" parameterType="java.util.List">
		insert into icss_buried_some_statistical
		(gmt_create , creator , hospital_id ,
		hospital_dept_id , doctor_id , patient_id , inquiry_code ,
		label_id , label_name , operation_type , operation_num,status )
		values
		<foreach collection="list" item="reddemCode" index="index"
			separator=",">
			(
			#{reddemCode.gmtCreate}, #{reddemCode.creator},
			#{reddemCode.hospitalId},
			#{reddemCode.hospitalDeptId},
			#{reddemCode.doctorId},
			#{reddemCode.patientId},
			#{reddemCode.inquiryCode},
			#{reddemCode.labelId},
			#{reddemCode.labelName},
			#{reddemCode.operationType},
			#{reddemCode.operationNum},
			#{reddemCode.status}
			)
		</foreach>
	</insert>
</mapper>
