|  | @@ -37,12 +37,8 @@
 | 
	
		
			
				|  |  |  	
 | 
	
		
			
				|  |  |  	<!-- 向数据库增加一条记录 -->
 | 
	
		
			
				|  |  |  	<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.ImGroupNotice" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
 | 
	
		
			
				|  |  | -		<!--
 | 
	
		
			
				|  |  | -		<selectKey resultClass="int" keyProperty="id" > 
 | 
	
		
			
				|  |  | -		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
 | 
	
		
			
				|  |  | -		</selectKey>
 | 
	
		
			
				|  |  | -		-->
 | 
	
		
			
				|  |  | -		INSERT INTO im_group_notice (id_,im_group_id_,title_,content_,is_top_,is_sent_to_new_member_,create_time_,update_time_,del_flag_,operator_id_,tenant_id_) VALUES(#{id},#{imGroupId},#{title},#{content},#{isTop},#{isSentToNewMember},#{createTime},#{updateTime},#{delFlag},#{operatorId},#{tenantId})
 | 
	
		
			
				|  |  | +		INSERT INTO im_group_notice (im_group_id_,title_,content_,is_top_,is_sent_to_new_member_,create_time_,update_time_,del_flag_,operator_id_,tenant_id_)
 | 
	
		
			
				|  |  | +		VALUES(#{imGroupId},#{title},#{content},#{isTop},#{isSentToNewMember},NOW(),NOW(),#{delFlag},#{operatorId},#{tenantId})
 | 
	
		
			
				|  |  |  	</insert>
 | 
	
		
			
				|  |  |  	
 | 
	
		
			
				|  |  |  	<!-- 根据主键查询一条记录 -->
 | 
	
	
		
			
				|  | @@ -60,24 +56,16 @@
 | 
	
		
			
				|  |  |  		<if test="isSentToNewMember != null">
 | 
	
		
			
				|  |  |  		is_sent_to_new_member_ = #{isSentToNewMember},
 | 
	
		
			
				|  |  |  		</if>
 | 
	
		
			
				|  |  | -		<if test="id != null">
 | 
	
		
			
				|  |  | -		id_ = #{id},
 | 
	
		
			
				|  |  | -		</if>
 | 
	
		
			
				|  |  |  		<if test="imGroupId != null">
 | 
	
		
			
				|  |  |  		im_group_id_ = #{imGroupId},
 | 
	
		
			
				|  |  |  		</if>
 | 
	
		
			
				|  |  |  		<if test="title != null">
 | 
	
		
			
				|  |  |  		title_ = #{title},
 | 
	
		
			
				|  |  |  		</if>
 | 
	
		
			
				|  |  | -		<if test="updateTime != null">
 | 
	
		
			
				|  |  | -		update_time_ = #{updateTime},
 | 
	
		
			
				|  |  | -		</if>
 | 
	
		
			
				|  |  |  		<if test="content != null">
 | 
	
		
			
				|  |  |  		content_ = #{content},
 | 
	
		
			
				|  |  |  		</if>
 | 
	
		
			
				|  |  | -		<if test="createTime != null">
 | 
	
		
			
				|  |  | -		create_time_ = #{createTime},
 | 
	
		
			
				|  |  | -		</if>
 | 
	
		
			
				|  |  | +		update_time_ = NOW()
 | 
	
		
			
				|  |  |  		</set> WHERE id_ = #{id} and tenant_id_ = #{tenantId}
 | 
	
		
			
				|  |  |  	</update>
 | 
	
		
			
				|  |  |  	
 |