|
@@ -8,7 +8,9 @@
|
|
|
<result column="id_" property="id" />
|
|
|
<result column="user_id_" property="userId" />
|
|
|
<result column="course_schedule_type_" property="courseScheduleType" />
|
|
|
- <result column="subject_id_" property="subjectId" />
|
|
|
+ <result column="settlement_type_" property="settlementType" />
|
|
|
+ <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="create_time_" property="createTime" />
|
|
@@ -33,8 +35,8 @@
|
|
|
<!-- <selectKey resultClass="int" keyProperty="id" > SELECT SEQ_WSDEFINITION_ID.nextval
|
|
|
AS ID FROM DUAL </selectKey> -->
|
|
|
INSERT INTO teacher_default_music_group_salary
|
|
|
- (id_,user_id_,course_schedule_type_,subject_id_,main_teacher_salary_,assistant_teacher_salary_,create_time_,update_time_)
|
|
|
- VALUES(#{id},#{userId},#{courseScheduleType},#{subjectId},#{mainTeacherSalary},#{assistantTeacherSalary},now(),now())
|
|
|
+ (id_,user_id_,course_schedule_type_,settlement_type_,duration_min_,duration_max_,main_teacher_salary_,assistant_teacher_salary_,create_time_,update_time_)
|
|
|
+ VALUES(#{id},#{userId},#{courseScheduleType},#{settlementType},#{durationMin},#{durationMax},#{mainTeacherSalary},#{assistantTeacherSalary},now(),now())
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -42,9 +44,6 @@
|
|
|
parameterType="com.ym.mec.biz.dal.entity.TeacherDefaultMusicGroupSalary">
|
|
|
UPDATE teacher_default_music_group_salary
|
|
|
<set>
|
|
|
- <if test="subjectId != null">
|
|
|
- subject_id_ = #{subjectId},
|
|
|
- </if>
|
|
|
<if test="userId != null">
|
|
|
user_id_ = #{userId},
|
|
|
</if>
|
|
@@ -54,6 +53,15 @@
|
|
|
<if test="courseScheduleType != null">
|
|
|
course_schedule_type_ = #{courseScheduleType},
|
|
|
</if>
|
|
|
+ <if test="settlementType != null">
|
|
|
+ settlement_type_ = #{settlementType},
|
|
|
+ </if>
|
|
|
+ <if test="duration_min_ != null">
|
|
|
+ duration_min_ = #{durationMin},
|
|
|
+ </if>
|
|
|
+ <if test="duration_max_ != null">
|
|
|
+ duration_max_ = #{durationMax},
|
|
|
+ </if>
|
|
|
<if test="mainTeacherSalary != null">
|
|
|
main_teacher_salary_ = #{mainTeacherSalary},
|
|
|
</if>
|