|  | @@ -7,11 +7,10 @@
 | 
	
		
			
				|  |  |  		<result column="id_" property="id" />
 | 
	
		
			
				|  |  |  		<result column="user_id_" property="userId"/>
 | 
	
		
			
				|  |  |  		<result column="course_schedule_type_" property="courseScheduleType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
 | 
	
		
			
				|  |  | -		<result column="settlement_type_" property="settlementType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
 | 
	
		
			
				|  |  | -		<result column="duration_min_" property="durationMin" />
 | 
	
		
			
				|  |  | -		<result column="duration_max_" property="durationMax" />
 | 
	
		
			
				|  |  | -		<result column="main_teacher_salary_" property="mainTeacherSalary" />
 | 
	
		
			
				|  |  | -		<result column="assistant_teacher_salary_" property="assistantTeacherSalary" />
 | 
	
		
			
				|  |  | +		<result column="main_teacher_90min_salary_" property="mainTeacher90MinSalary" />
 | 
	
		
			
				|  |  | +		<result column="assistant_teacher_90min_salary_" property="assistantTeacher90MinSalary" />
 | 
	
		
			
				|  |  | +		<result column="main_teacher_30min_salary_" property="mainTeacher30MinSalary" />
 | 
	
		
			
				|  |  | +		<result column="assistant_teacher_30min_salary_" property="assistantTeacher30MinSalary" />
 | 
	
		
			
				|  |  |  		<result column="create_time_" property="createTime" />
 | 
	
		
			
				|  |  |  		<result column="update_time_" property="updateTime" />
 | 
	
		
			
				|  |  |  	</resultMap>
 | 
	
	
		
			
				|  | @@ -32,20 +31,20 @@
 | 
	
		
			
				|  |  |  		parameterType="com.ym.mec.biz.dal.entity.TeacherDefaultMusicGroupSalary"
 | 
	
		
			
				|  |  |  		useGeneratedKeys="true" keyColumn="id" keyProperty="id">
 | 
	
		
			
				|  |  |  		INSERT INTO teacher_default_music_group_salary
 | 
	
		
			
				|  |  | -		(user_id_,course_schedule_type_,settlement_type_,duration_min_,duration_max_,main_teacher_salary_,
 | 
	
		
			
				|  |  | -		assistant_teacher_salary_,create_time_,update_time_)
 | 
	
		
			
				|  |  | +		(user_id_,course_schedule_type_,main_teacher_90min_salary_,assistant_teacher_90min_salary_,main_teacher_30min_salary_,
 | 
	
		
			
				|  |  | +		assistant_teacher_30min_salary_,create_time_,update_time_)
 | 
	
		
			
				|  |  |  		VALUES(#{userId},#{courseScheduleType, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  | -		#{settlementType, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{durationMin},#{durationMax},
 | 
	
		
			
				|  |  | -		#{mainTeacherSalary},#{assistantTeacherSalary},now(),now())
 | 
	
		
			
				|  |  | +		#{mainTeacher90MinSalary},#{assistantTeacher90MinSalary},
 | 
	
		
			
				|  |  | +		#{mainTeacher30MinSalary},#{assistantTeacher30MinSalary},now(),now())
 | 
	
		
			
				|  |  |  	</insert>
 | 
	
		
			
				|  |  |  	<insert id="batchAdd" parameterType="list">
 | 
	
		
			
				|  |  |  		INSERT INTO teacher_default_music_group_salary
 | 
	
		
			
				|  |  | -		(user_id_,course_schedule_type_,settlement_type_,duration_min_,duration_max_,main_teacher_salary_,
 | 
	
		
			
				|  |  | -		assistant_teacher_salary_,create_time_,update_time_)
 | 
	
		
			
				|  |  | +		(user_id_,course_schedule_type_,main_teacher_90min_salary_,assistant_teacher_90min_salary_,main_teacher_30min_salary_,
 | 
	
		
			
				|  |  | +		assistant_teacher_30min_salary_,create_time_,update_time_)
 | 
	
		
			
				|  |  |  		VALUES
 | 
	
		
			
				|  |  |  		<foreach collection="salaries" item="item" separator=",">
 | 
	
		
			
				|  |  | -			(#{item.userId},#{item.courseScheduleType.code},#{item.settlementType.code},#{item.durationMin},
 | 
	
		
			
				|  |  | -			#{item.durationMax},#{item.mainTeacherSalary},#{item.assistantTeacherSalary},now(),now())
 | 
	
		
			
				|  |  | +			(#{item.userId},#{item.courseScheduleType.code},#{item.mainTeacher90MinSalary},
 | 
	
		
			
				|  |  | +			#{item.assistantTeacher90MinSalary},#{item.mainTeacher30MinSalary},#{item.assistantTeacher30MinSalary},now(),now())
 | 
	
		
			
				|  |  |  		</foreach>
 | 
	
		
			
				|  |  |  	</insert>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -63,20 +62,17 @@
 | 
	
		
			
				|  |  |  			<if test="courseScheduleType != null">
 | 
	
		
			
				|  |  |  				course_schedule_type_ = #{courseScheduleType, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  | -			<if test="settlementType != null">
 | 
	
		
			
				|  |  | -				settlement_type_ = #{settlementType, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  | +			<if test="main_teacher_90min_salary_ != null">
 | 
	
		
			
				|  |  | +				main_teacher_90min_salary_ = #{mainTeacher90MinSalary},
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  | -			<if test="duration_min_ != null">
 | 
	
		
			
				|  |  | -				duration_min_ = #{durationMin},
 | 
	
		
			
				|  |  | +			<if test="assistant_teacher_90min_salary_ != null">
 | 
	
		
			
				|  |  | +				assistant_teacher_90min_salary_ = #{assistantTeacher90MinSalary},
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  | -			<if test="duration_max_ != null">
 | 
	
		
			
				|  |  | -				duration_max_ = #{durationMax},
 | 
	
		
			
				|  |  | +			<if test="mainTeacher30MinSalary != null">
 | 
	
		
			
				|  |  | +				main_teacher_30min_salary_ = #{mainTeacher30MinSalary},
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  | -			<if test="mainTeacherSalary != null">
 | 
	
		
			
				|  |  | -				main_teacher_salary_ = #{mainTeacherSalary},
 | 
	
		
			
				|  |  | -			</if>
 | 
	
		
			
				|  |  | -			<if test="assistantTeacherSalary != null">
 | 
	
		
			
				|  |  | -				assistant_teacher_salary_ = #{assistantTeacherSalary},
 | 
	
		
			
				|  |  | +			<if test="assistantTeacher30MinSalary != null">
 | 
	
		
			
				|  |  | +				assistant_teacher_30min_salary_ = #{assistantTeacher30MinSalary},
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  |  		</set>
 | 
	
		
			
				|  |  |  		WHERE id_ = #{id}
 | 
	
	
		
			
				|  | @@ -87,7 +83,7 @@
 | 
	
		
			
				|  |  |  		DELETE FROM teacher_default_music_group_salary WHERE id_ = #{id}
 | 
	
		
			
				|  |  |  	</delete>
 | 
	
		
			
				|  |  |      <delete id="delByTeacherId">
 | 
	
		
			
				|  |  | -		DELETE FROM teacher_default_music_group_salary WHERE user_id_ = #{userId} AND settlement_type_ = #{settlementType}
 | 
	
		
			
				|  |  | +		DELETE FROM teacher_default_music_group_salary WHERE user_id_ = #{userId}
 | 
	
		
			
				|  |  |  	</delete>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <!-- 分页查询 -->
 | 
	
	
		
			
				|  | @@ -102,9 +98,6 @@
 | 
	
		
			
				|  |  |  			<if test="teacherId != null">
 | 
	
		
			
				|  |  |  				AND tdmgs.user_id_ = #{teacherId}
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  | -			<if test="settlementType != null">
 | 
	
		
			
				|  |  | -				AND tdmgs.settlement_type_ = #{settlementType}
 | 
	
		
			
				|  |  | -			</if>
 | 
	
		
			
				|  |  |  		</where>
 | 
	
		
			
				|  |  |  	</sql>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -118,7 +111,6 @@
 | 
	
		
			
				|  |  |  	<select id="getTeacherSalaryByUserIdAndType" resultMap="TeacherDefaultMusicGroupSalary">
 | 
	
		
			
				|  |  |  		SELECT * FROM teacher_default_music_group_salary
 | 
	
		
			
				|  |  |  		WHERE user_id_=#{userId} AND course_schedule_type_ = #{classGroupType}
 | 
	
		
			
				|  |  | -		AND settlement_type_ = #{settlementType, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
 | 
	
		
			
				|  |  |  	</select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	<select id="findByTeacher" resultMap="TeacherDefaultMusicGroupSalary">
 |