|
@@ -56,9 +56,15 @@
|
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.MusicGroupSubjectPlan">
|
|
|
UPDATE music_group_subject_plan
|
|
|
<set>
|
|
|
+ <if test="musicGroupId != null">
|
|
|
+ music_group_id_ = #{musicGroupId},
|
|
|
+ </if>
|
|
|
<if test="subjectId != null">
|
|
|
subject_id_ = #{subjectId},
|
|
|
</if>
|
|
|
+ <if test="expectedStudentNum != null">
|
|
|
+ expected_student_num_ = #{expectedStudentNum},
|
|
|
+ </if>
|
|
|
<if test="applyStudentNum != null">
|
|
|
apply_student_num_ = #{applyStudentNum},
|
|
|
</if>
|
|
@@ -69,29 +75,11 @@
|
|
|
kit_group_purchase_type_ =
|
|
|
#{kitGroupPurchaseType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|
|
|
- <if test="updateTime != null">
|
|
|
- update_time_ = NOW(),
|
|
|
- </if>
|
|
|
<if test="depositFee != null">
|
|
|
deposit_fee_ = #{depositFee},
|
|
|
</if>
|
|
|
- <if test="expectedStudentNum != null">
|
|
|
- expected_student_num_ = #{expectedStudentNum},
|
|
|
- </if>
|
|
|
- <if test="musicGroupId != null">
|
|
|
- music_group_id_ = #{musicGroupId},
|
|
|
- </if>
|
|
|
- <if test="version != null">
|
|
|
- version = version+1,
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- WHERE id_ = #{id} AND version =#{version}
|
|
|
- </update>
|
|
|
- <update id="updateApplyStudentNum">
|
|
|
- UPDATE music_group_subject_plan
|
|
|
- <set>
|
|
|
- <if test="applyStudentNum != null">
|
|
|
- apply_student_num_ = #{applyStudentNum},
|
|
|
+ <if test="paidStudentNum != null">
|
|
|
+ paid_student_num_ = #{paidStudentNum},
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
update_time_ = NOW(),
|