| 
					
				 | 
			
			
				@@ -13,6 +13,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<result column="cover_image_" property="coverImage" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<result column="link_url_" property="linkUrl"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<result column="type_" property="type"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<result column="sub_type_" property="subType"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<result column="status_" property="status" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<result column="create_time_" property="createTime" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<result column="update_time_" property="updateTime" /> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -29,6 +30,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<if test="type != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				and type_ = #{type} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			<if test="subType != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				and sub_type_ = #{subType} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<if test="tenantId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				and tenant_id_ = #{tenantId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			</if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -56,8 +60,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<!-- 向数据库增加一条记录 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<insert id="insert" parameterType="com.ym.mec.cms.dal.entity.SysNewsInformation" useGeneratedKeys="true" keyColumn="id" keyProperty="id"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		INSERT INTO sys_news_information (id_,title_,content_,cover_image_,type_,status_,create_time_,update_time_,link_url_,href_target_,order_,del_flag_,memo_,tenant_id_) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		VALUES(#{id},#{title},#{content},#{coverImage},#{type},#{status, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},now(),now(),#{linkUrl},#{hrefTarget},#{order},0,#{memo},#{tenantId}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		INSERT INTO sys_news_information (id_,title_,content_,cover_image_,type_,sub_type_,status_,create_time_,update_time_,link_url_,href_target_,order_,del_flag_,memo_,tenant_id_) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		VALUES(#{id},#{title},#{content},#{coverImage},#{type},#{subType},#{status, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},now(),now(),#{linkUrl},#{hrefTarget},#{order},0,#{memo},#{tenantId}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	</insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<!-- 根据主键查询一条记录 --> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -85,6 +89,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<if test="type != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				type_ = #{type}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			<if test="subType != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				sub_type_ = #{subType}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<if test="linkUrl != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				link_url_ = #{linkUrl}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			</if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -144,6 +151,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<if test="type != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			and type_ = #{type} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<if test="subType != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			and sub_type_ = #{subType} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<if test="status != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			and status_ = #{status, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -175,6 +185,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<if test="type != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			and type_ = #{type} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<if test="subType != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			and sub_type_ = #{subType} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<if test="status != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			and status_ = #{status, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler} 
			 |