|
@@ -13,6 +13,7 @@
|
|
|
<result column="username_" property="username" />
|
|
|
<result column="course_original_price_" property="courseOriginalPrice" />
|
|
|
<result column="course_current_price_" property="courseCurrentPrice" />
|
|
|
+ <result column="master_sub_course_price_" property="masterSubCoursePrice" />
|
|
|
<result column="course_type_" property="courseType" />
|
|
|
<result column="course_time_" property="courseTime" />
|
|
|
<result column="class_group_id_" property="classGroupId" />
|
|
@@ -34,9 +35,9 @@
|
|
|
<!-- 向数据库增加一条记录 -->
|
|
|
<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.MusicGroupPaymentCalenderStudentDetail" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
INSERT INTO music_group_payment_calender_student_detail (id_,user_id_,phone_,username_,course_original_price_,
|
|
|
- course_current_price_,course_type_,course_time_,class_group_id_,batch_no_,create_time_,update_time_)
|
|
|
+ course_current_price_,course_type_,course_time_,class_group_id_,batch_no_,create_time_,update_time_,master_sub_course_price_)
|
|
|
VALUES(#{id},#{userId},#{phone},#{username},#{courseOriginalPrice},#{courseCurrentPrice},
|
|
|
- #{courseType},#{courseTime},#{classGroupId},#{batchNo},NOW(),NOW())
|
|
|
+ #{courseType},#{courseTime},#{classGroupId},#{batchNo},NOW(),NOW(),#{masterSubCoursePrice})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -45,6 +46,9 @@
|
|
|
<if test="userId != null">
|
|
|
user_id_ = #{userId},
|
|
|
</if>
|
|
|
+ <if test="masterSubCoursePrice != null">
|
|
|
+ master_sub_course_price_ = #{masterSubCoursePrice},
|
|
|
+ </if>
|
|
|
<if test="classGroupId != null">
|
|
|
class_group_id_ = #{classGroupId},
|
|
|
</if>
|
|
@@ -89,11 +93,11 @@
|
|
|
</select>
|
|
|
<insert id="batchInsert">
|
|
|
INSERT INTO music_group_payment_calender_student_detail (user_id_,phone_,username_,course_original_price_,
|
|
|
- course_current_price_,course_type_,course_time_,class_group_id_,batch_no_,create_time_,update_time_)
|
|
|
+ course_current_price_,course_type_,course_time_,class_group_id_,batch_no_,create_time_,update_time_,master_sub_course_price_)
|
|
|
VALUES
|
|
|
<foreach collection="musicGroupPaymentCalenderStudentDetails" item="item" index="index" separator=",">
|
|
|
(#{item.userId},#{item.phone},#{item.username},#{item.courseOriginalPrice},#{item.courseCurrentPrice},
|
|
|
- #{item.courseType},#{item.courseTime},#{item.classGroupId},#{batchNo},NOW(),NOW())
|
|
|
+ #{item.courseType},#{item.courseTime},#{item.classGroupId},#{batchNo},NOW(),NOW(),#{item.masterSubCoursePrice})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|