| 
					
				 | 
			
			
				@@ -31,6 +31,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<result column="link_type_" property="linkType" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<result column="create_by_" property="createBy" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<result column="client_type_" property="clientType" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<result column="background_" property="background" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	</resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<resultMap type="com.yonge.cooleshow.cms.dto.SysNewsInformationDto" id="SysNewsInformationDto" extends="SysNewsInformation"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -115,8 +116,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<!-- 向数据库增加一条记录 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<insert id="insert" parameterType="com.yonge.cooleshow.cms.dal.entity.SysNewsInformation" useGeneratedKeys="true" keyColumn="id" keyProperty="id"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		INSERT INTO sys_news_information (id_,title_,content_,cover_image_,video_cover_image_,type_,online_time_,offline_time_,sub_type_,status_,create_time_,update_time_,link_url_,href_target_,order_,del_flag_,memo_,attribute1_,attribute2_,subject_id_list_,create_by_,update_by_,show_time_,link_type_,client_type_) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		VALUES(#{id},#{title},#{content},#{coverImage},#{videoCoverImage},#{type},#{onlineTime},#{offlineTime},#{subType},#{status, typeHandler=com.yonge.toolset.mybatis.dal.CustomEnumTypeHandler},now(),now(),#{linkUrl},#{hrefTarget},#{order},0,#{memo},#{attribute1},#{attribute2},#{subjectIdList},#{createBy},#{updateBy},#{showTime},#{linkType},#{clientType}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		INSERT INTO sys_news_information (id_,title_,content_,cover_image_,video_cover_image_,type_,online_time_,offline_time_,sub_type_,status_,create_time_,update_time_,link_url_,href_target_,order_,del_flag_,memo_,attribute1_,attribute2_,subject_id_list_,create_by_,update_by_,show_time_,link_type_,client_type_,background_) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		VALUES(#{id},#{title},#{content},#{coverImage},#{videoCoverImage},#{type},#{onlineTime},#{offlineTime},#{subType},#{status, typeHandler=com.yonge.toolset.mybatis.dal.CustomEnumTypeHandler},now(),now(),#{linkUrl},#{hrefTarget},#{order},0,#{memo},#{attribute1},#{attribute2},#{subjectIdList},#{createBy},#{updateBy},#{showTime},#{linkType},#{clientType},#{background}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	</insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<!-- 根据主键查询一条记录 --> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -146,6 +147,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				update_by_ = #{updateBy}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				link_type_ = #{linkType}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				client_type_ = #{clientType}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			background_ = #{background}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				show_time_ = #{showTime} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		</set> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		WHERE id_ = #{id} 
			 |