|  | @@ -45,70 +45,70 @@
 | 
	
		
			
				|  |  |  		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
 | 
	
		
			
				|  |  |  		</selectKey>
 | 
	
		
			
				|  |  |  		-->
 | 
	
		
			
				|  |  | -		INSERT INTO courses_group (id_,name_,subject_id_,courses_start_date_,courses_end_date_,teaching_arrangement_,organ_id_,single_class_minutes_,status_,memo_,teacher_id_,max_student_num_,apply_closing_date_,teaching_plan_,teacher_salary_settlement_method_,total_courses_price_,total_course_discount_price_,create_time_,update_time_) VALUES(#{id},#{name},#{subjectId},#{coursesStartDate},#{coursesEndDate},#{teachingArrangement},#{organId},#{singleClassMinutes},#{status},#{memo},#{teacherId},#{maxStudentNum},#{applyClosingDate},#{teachingPlan},#{teacherSalarySettlementMethod},#{totalCoursesPrice},#{totalCourseDiscountPrice},#{createTime},#{updateTime})
 | 
	
		
			
				|  |  | +		INSERT INTO courses_group (id_,name_,subject_id_,courses_start_date_,courses_end_date_,teaching_arrangement_,organ_id_,single_class_minutes_,status_,memo_,teacher_id_,max_student_num_,apply_closing_date_,teaching_plan_,teacher_salary_settlement_method_,total_courses_price_,total_course_discount_price_,create_time_,update_time_)
 | 
	
		
			
				|  |  | +		VALUES(#{id},#{name},#{subjectId},#{coursesStartDate},#{coursesEndDate},#{teachingArrangement},#{organId},#{singleClassMinutes},#{status},#{memo},#{teacherId},#{maxStudentNum},#{applyClosingDate},#{teachingPlan},#{teacherSalarySettlementMethod},#{totalCoursesPrice},#{totalCourseDiscountPrice},NOW(),NOW())
 | 
	
		
			
				|  |  |  	</insert>
 | 
	
		
			
				|  |  |  	
 | 
	
		
			
				|  |  |  	<!-- 根据主键查询一条记录 -->
 | 
	
		
			
				|  |  |  	<update id="update" parameterType="com.ym.mec.biz.dal.entity.CoursesGroup">
 | 
	
		
			
				|  |  | -		UPDATE courses_group <set>
 | 
	
		
			
				|  |  | -<if test="coursesEndDate != null">
 | 
	
		
			
				|  |  | -courses_end_date_ = #{coursesEndDate},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -<if test="subjectId != null">
 | 
	
		
			
				|  |  | -subject_id_ = #{subjectId},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -<if test="status != null">
 | 
	
		
			
				|  |  | -status_ = #{status},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -<if test="organId != null">
 | 
	
		
			
				|  |  | -organ_id_ = #{organId},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -<if test="totalCourseDiscountPrice != null">
 | 
	
		
			
				|  |  | -total_course_discount_price_ = #{totalCourseDiscountPrice},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -<if test="id != null">
 | 
	
		
			
				|  |  | -id_ = #{id},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -<if test="coursesStartDate != null">
 | 
	
		
			
				|  |  | -courses_start_date_ = #{coursesStartDate},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -<if test="memo != null">
 | 
	
		
			
				|  |  | -memo_ = #{memo},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -<if test="maxStudentNum != null">
 | 
	
		
			
				|  |  | -max_student_num_ = #{maxStudentNum},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -<if test="name != null">
 | 
	
		
			
				|  |  | -name_ = #{name},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -<if test="teacherSalarySettlementMethod != null">
 | 
	
		
			
				|  |  | -teacher_salary_settlement_method_ = #{teacherSalarySettlementMethod},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -<if test="createTime != null">
 | 
	
		
			
				|  |  | -create_time_ = #{createTime},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -<if test="teachingPlan != null">
 | 
	
		
			
				|  |  | -teaching_plan_ = #{teachingPlan},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -<if test="applyClosingDate != null">
 | 
	
		
			
				|  |  | -apply_closing_date_ = #{applyClosingDate},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -<if test="totalCoursesPrice != null">
 | 
	
		
			
				|  |  | -total_courses_price_ = #{totalCoursesPrice},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -<if test="teachingArrangement != null">
 | 
	
		
			
				|  |  | -teaching_arrangement_ = #{teachingArrangement},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -<if test="teacherId != null">
 | 
	
		
			
				|  |  | -teacher_id_ = #{teacherId},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -<if test="updateTime != null">
 | 
	
		
			
				|  |  | -update_time_ = #{updateTime},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -<if test="singleClassMinutes != null">
 | 
	
		
			
				|  |  | -single_class_minutes_ = #{singleClassMinutes},
 | 
	
		
			
				|  |  | -</if>
 | 
	
		
			
				|  |  | -</set> WHERE id_ = #{id} 
 | 
	
		
			
				|  |  | +		UPDATE courses_group
 | 
	
		
			
				|  |  | +		<set>
 | 
	
		
			
				|  |  | +			<if test="coursesEndDate != null">
 | 
	
		
			
				|  |  | +				courses_end_date_ = #{coursesEndDate},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			<if test="subjectId != null">
 | 
	
		
			
				|  |  | +				subject_id_ = #{subjectId},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			<if test="status != null">
 | 
	
		
			
				|  |  | +				status_ = #{status},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			<if test="organId != null">
 | 
	
		
			
				|  |  | +				organ_id_ = #{organId},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			<if test="totalCourseDiscountPrice != null">
 | 
	
		
			
				|  |  | +				total_course_discount_price_ = #{totalCourseDiscountPrice},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			<if test="id != null">
 | 
	
		
			
				|  |  | +				id_ = #{id},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			<if test="coursesStartDate != null">
 | 
	
		
			
				|  |  | +				courses_start_date_ = #{coursesStartDate},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			<if test="memo != null">
 | 
	
		
			
				|  |  | +				memo_ = #{memo},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			<if test="maxStudentNum != null">
 | 
	
		
			
				|  |  | +				max_student_num_ = #{maxStudentNum},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			<if test="name != null">
 | 
	
		
			
				|  |  | +				name_ = #{name},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			<if test="teacherSalarySettlementMethod != null">
 | 
	
		
			
				|  |  | +				teacher_salary_settlement_method_ = #{teacherSalarySettlementMethod},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			<if test="createTime != null">
 | 
	
		
			
				|  |  | +				create_time_ = #{createTime},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			<if test="teachingPlan != null">
 | 
	
		
			
				|  |  | +				teaching_plan_ = #{teachingPlan},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			<if test="applyClosingDate != null">
 | 
	
		
			
				|  |  | +				apply_closing_date_ = #{applyClosingDate},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			<if test="totalCoursesPrice != null">
 | 
	
		
			
				|  |  | +				total_courses_price_ = #{totalCoursesPrice},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			<if test="teachingArrangement != null">
 | 
	
		
			
				|  |  | +				teaching_arrangement_ = #{teachingArrangement},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			<if test="teacherId != null">
 | 
	
		
			
				|  |  | +				teacher_id_ = #{teacherId},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			<if test="singleClassMinutes != null">
 | 
	
		
			
				|  |  | +				single_class_minutes_ = #{singleClassMinutes},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			update_time_ = NOW()
 | 
	
		
			
				|  |  | +		</set> WHERE id_ = #{id}
 | 
	
		
			
				|  |  |  	</update>
 | 
	
		
			
				|  |  |  	
 | 
	
		
			
				|  |  |  	<!-- 根据主键删除一条记录 -->
 |