| 
					
				 | 
			
			
				@@ -0,0 +1,114 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<?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.xunmei.core.resumption.mapper.CoreResumptionDataProtectionMapper"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <resultMap type="com.xunmei.core.resumption.domain.CoreResumptionDataProtection" id="CoreResumptionDataProtectionResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <result property="id" column="id"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <result property="resumptionDataId" column="resumption_data_id"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <result property="resumptionId" column="resumption_id"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <result property="protectionId" column="protection_id"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <result property="protectionStatus" column="protection_status"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <result property="protectionTime" column="protection_time"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <sql id="selectCoreResumptionDataProtectionVo"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        select id, resumption_data_id, resumption_id, protection_id, protection_status, protection_time 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        from core_resumption_data_protection 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <select id="selectCoreResumptionDataProtectionList" parameterType="com.xunmei.core.resumption.domain.CoreResumptionDataProtection" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            resultMap="CoreResumptionDataProtectionResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <include refid="selectCoreResumptionDataProtectionVo"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        <if test="resumptionDataId != null "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            and resumption_data_id = #{resumptionDataId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        <if test="resumptionId != null "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            and resumption_id = #{resumptionId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        <if test="protectionId != null "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            and protection_id = #{protectionId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        <if test="protectionStatus != null  and protectionStatus != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            and protection_status = #{protectionStatus} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        <if test="protectionTime != null "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            and protection_time = #{protectionTime} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <select id="selectCoreResumptionDataProtectionById" parameterType="Long" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            resultMap="CoreResumptionDataProtectionResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <include refid="selectCoreResumptionDataProtectionVo"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            where id = #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <insert id="insertCoreResumptionDataProtection" parameterType="com.xunmei.core.resumption.domain.CoreResumptionDataProtection"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        insert into core_resumption_data_protection 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <trim prefix="(" suffix=")" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <if test="id != null">id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <if test="resumptionDataId != null">resumption_data_id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <if test="resumptionId != null">resumption_id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <if test="protectionId != null">protection_id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <if test="protectionStatus != null">protection_status, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <if test="protectionTime != null">protection_time, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <trim prefix="values (" suffix=")" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <if test="id != null">#{id}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <if test="resumptionDataId != null">#{resumptionDataId}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <if test="resumptionId != null">#{resumptionId}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <if test="protectionId != null">#{protectionId}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <if test="protectionStatus != null">#{protectionStatus}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <if test="protectionTime != null">#{protectionTime}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <update id="updateCoreResumptionDataProtection" parameterType="com.xunmei.core.resumption.domain.CoreResumptionDataProtection"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        update core_resumption_data_protection 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <trim prefix="SET" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <if test="resumptionDataId != null">resumption_data_id = 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        #{resumptionDataId}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <if test="resumptionId != null">resumption_id = 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        #{resumptionId}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <if test="protectionId != null">protection_id = 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        #{protectionId}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <if test="protectionStatus != null">protection_status = 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        #{protectionStatus}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <if test="protectionTime != null">protection_time = 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        #{protectionTime}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where id = #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <delete id="deleteCoreResumptionDataProtectionById" parameterType="Long"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        delete 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        from core_resumption_data_protection where id = #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <delete id="deleteCoreResumptionDataProtectionByIds" parameterType="String"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        delete from core_resumption_data_protection where id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <foreach item="id" collection="array" open="(" separator="," close=")"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+</mapper> 
			 |