|  | @@ -14,6 +14,7 @@
 | 
	
		
			
				|  |  |  		<result column="friday_" property="friday" />
 | 
	
		
			
				|  |  |  		<result column="saturday_" property="saturday" />
 | 
	
		
			
				|  |  |  		<result column="sunday_" property="sunday" />
 | 
	
		
			
				|  |  | +		<result column="holiday_" property="holiday" />
 | 
	
		
			
				|  |  |  		<result column="total_times_" property="totalTimes" />
 | 
	
		
			
				|  |  |  		<result column="create_time_" property="createTime" />
 | 
	
		
			
				|  |  |  		<result column="update_time_" property="updateTime" />
 | 
	
	
		
			
				|  | @@ -37,8 +38,8 @@
 | 
	
		
			
				|  |  |  		<!-- <selectKey resultClass="int" keyProperty="id" > SELECT SEQ_WSDEFINITION_ID.nextval 
 | 
	
		
			
				|  |  |  			AS ID FROM DUAL </selectKey> -->
 | 
	
		
			
				|  |  |  		INSERT INTO teacher_free_time
 | 
	
		
			
				|  |  | -		(id_,user_id_,monday_,tuesday_,wednesday_,thursday_,friday_,saturday_,sunday_,total_times_,create_time_,update_time_)
 | 
	
		
			
				|  |  | -		VALUES(#{id},#{userId},#{monday},#{tuesday},#{wednesday},#{thursday},#{friday},#{saturday},#{sunday},#{totalTimes},#{createTime},#{updateTime})
 | 
	
		
			
				|  |  | +		(id_,user_id_,monday_,tuesday_,wednesday_,thursday_,friday_,saturday_,sunday_,holiday_,total_times_,create_time_,update_time_)
 | 
	
		
			
				|  |  | +		VALUES(#{id},#{userId},#{monday},#{tuesday},#{wednesday},#{thursday},#{friday},#{saturday},#{sunday},#{holiday},#{totalTimes},NOW(),NOW())
 | 
	
		
			
				|  |  |  	</insert>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	<!-- 根据主键查询一条记录 -->
 | 
	
	
		
			
				|  | @@ -54,8 +55,8 @@
 | 
	
		
			
				|  |  |  			<if test="thursday != null">
 | 
	
		
			
				|  |  |  				thursday_ = #{thursday},
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  | -			<if test="id != null">
 | 
	
		
			
				|  |  | -				id_ = #{id},
 | 
	
		
			
				|  |  | +			<if test="holiday != null">
 | 
	
		
			
				|  |  | +				holiday_ = #{holiday},
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  |  			<if test="updateTime != null">
 | 
	
		
			
				|  |  |  				update_time_ = #{updateTime},
 | 
	
	
		
			
				|  | @@ -78,9 +79,6 @@
 | 
	
		
			
				|  |  |  			<if test="totalTimes != null">
 | 
	
		
			
				|  |  |  				total_times_ = #{totalTimes},
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  | -			<if test="createTime != null">
 | 
	
		
			
				|  |  | -				create_time_ = #{createTime},
 | 
	
		
			
				|  |  | -			</if>
 | 
	
		
			
				|  |  |  		</set>
 | 
	
		
			
				|  |  |  		WHERE id_ = #{id}
 | 
	
		
			
				|  |  |  	</update>
 |