| 
					
				 | 
			
			
				@@ -0,0 +1,175 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<?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.fs.his.mapper.FsPhysicalReportTemplateFieldMapper"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <resultMap type="FsPhysicalReportTemplateField" id="FsPhysicalReportTemplateFieldResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="id"    column="id"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="templateId"    column="template_id"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="componentId"    column="component_id"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="label"    column="label"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="remark"    column="remark"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="type"    column="type"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="sort"    column="sort"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="required"    column="required"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="multiple"    column="multiple"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="multiples"    column="multiples"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="maxLength"    column="max_length"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="minLength"    column="min_length"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="createTime"    column="create_time"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="updateTime"    column="update_time"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="status"    column="status"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="createBy"    column="create_by"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="updateBy"    column="update_by"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <sql id="selectFsPhysicalReportTemplateFieldVo"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        select id, template_id, component_id, label, remark, type, sort, required, multiple, multiples, max_length, min_length, create_time, update_time, status, create_by, update_by from fs_physical_report_template_field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <select id="selectFsPhysicalReportTemplateFieldList" parameterType="FsPhysicalReportTemplateField" resultMap="FsPhysicalReportTemplateFieldResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <include refid="selectFsPhysicalReportTemplateFieldVo"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <where>   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="templateId != null "> and template_id = #{templateId}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="componentId != null "> and component_id = #{componentId}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="label != null  and label != ''"> and label = #{label}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="type != null  and type != ''"> and type = #{type}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="sort != null "> and sort = #{sort}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="required != null "> and required = #{required}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="multiple != null "> and multiple = #{multiple}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="multiples != null  and multiples != ''"> and multiples = #{multiples}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="maxLength != null "> and max_length = #{maxLength}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="minLength != null "> and min_length = #{minLength}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="status != null "> and status = #{status}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <select id="selectFsPhysicalReportTemplateFieldById" parameterType="String" resultMap="FsPhysicalReportTemplateFieldResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <include refid="selectFsPhysicalReportTemplateFieldVo"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where id = #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <insert id="insertFsPhysicalReportTemplateField" parameterType="FsPhysicalReportTemplateField" useGeneratedKeys="true" keyProperty="id"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        insert into fs_physical_report_template_field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <trim prefix="(" suffix=")" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="templateId != null">template_id,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="componentId != null">component_id,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="label != null and label != ''">label,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="remark != null">remark,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="type != null and type != ''">type,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="sort != null">sort,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="required != null">required,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="multiple != null">multiple,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="multiples != null">multiples,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="maxLength != null">max_length,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="minLength != null">min_length,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="createTime != null">create_time,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="updateTime != null">update_time,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="status != null">status,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="createBy != null">create_by,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="updateBy != null">update_by,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <trim prefix="values (" suffix=")" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="templateId != null">#{templateId},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="componentId != null">#{componentId},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="label != null and label != ''">#{label},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="remark != null">#{remark},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="type != null and type != ''">#{type},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="sort != null">#{sort},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="required != null">#{required},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="multiple != null">#{multiple},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="multiples != null">#{multiples},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="maxLength != null">#{maxLength},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="minLength != null">#{minLength},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="createTime != null">#{createTime},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="updateTime != null">#{updateTime},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="status != null">#{status},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="createBy != null">#{createBy},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="updateBy != null">#{updateBy},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <update id="updateFsPhysicalReportTemplateField" parameterType="FsPhysicalReportTemplateField"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        update fs_physical_report_template_field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <trim prefix="SET" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="templateId != null">template_id = #{templateId},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="componentId != null">component_id = #{componentId},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="label != null and label != ''">label = #{label},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="remark != null">remark = #{remark},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="type != null and type != ''">type = #{type},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="sort != null">sort = #{sort},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="required != null">required = #{required},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="multiple != null">multiple = #{multiple},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="multiples != null">multiples = #{multiples},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="maxLength != null">max_length = #{maxLength},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="minLength != null">min_length = #{minLength},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="createTime != null">create_time = #{createTime},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="updateTime != null">update_time = #{updateTime},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="status != null">status = #{status},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="createBy != null">create_by = #{createBy},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="updateBy != null">update_by = #{updateBy},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where id = #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <delete id="deleteFsPhysicalReportTemplateFieldById" parameterType="String"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        delete from fs_physical_report_template_field where id = #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <delete id="deleteFsPhysicalReportTemplateFieldByIds" parameterType="String"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        delete from fs_physical_report_template_field where id in  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <foreach item="id" collection="array" open="(" separator="," close=")"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <insert id="batchInsertFsPhysicalReportTemplateField" parameterType="java.util.List"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        insert into fs_physical_report_template_field 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        template_id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        component_id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        label, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        remark, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        type, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        sort, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        required, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        multiple, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        multiples, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        max_length, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        min_length, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        create_time, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        update_time, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        status, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        create_by, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        update_by, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        options 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        values 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <foreach collection="templateFieldList" index="index" item="item" separator=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{item.templateId}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{item.componentId}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{item.label}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{item.remark}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{item.type}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{item.sort}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{item.required}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{item.multiple}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{item.multiples}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{item.maxLength}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{item.minLength}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{item.createTime}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{item.updateTime}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{item.status}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{item.createBy}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{item.updateBy}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{item.options} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <delete id="deleteTemplateFieldByTemplateId"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        delete from fs_physical_report_template_field where template_id = #{templateId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+</mapper> 
			 |