| 
					
				 | 
			
			
				@@ -4,13 +4,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         "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 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"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -18,91 +19,105 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         from core_resumption_data_protection 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <select id="selectCoreResumptionDataProtectionList" parameterType="com.xunmei.core.resumption.domain.CoreResumptionDataProtection" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <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> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <include refid="selectCoreResumptionDataProtectionVo"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where id = #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <select id="selectProtection" resultType="com.xunmei.core.resumption.vo.ResumptionDataProtectionVo"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        SELECT cp.*, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               dp.protection_status, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               dp.protection_time 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        FROM core_protection cp 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 LEFT JOIN core_resumption_data_protection dp ON cp.id = dp.protection_id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where cp.org_id = #{orgId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          and deleted = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          and all_Hour = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <insert id="insertCoreResumptionDataProtection" parameterType="com.xunmei.core.resumption.domain.CoreResumptionDataProtection"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <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> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <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> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <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 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> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        from core_resumption_data_protection 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where id = #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <delete id="deleteCoreResumptionDataProtectionByIds" parameterType="String"> 
			 |