|
@@ -56,6 +56,7 @@
|
|
|
<result property="givePeriodEnum" column="give_period_" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
<result property="givePeriodEnum" column="give_period_" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
<result property="status" column="status_"/>
|
|
<result property="status" column="status_"/>
|
|
|
<result property="enable" column="enable_"/>
|
|
<result property="enable" column="enable_"/>
|
|
|
|
|
+ <result property="marketPrice" column="market_price_"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -76,154 +77,32 @@
|
|
|
student_max_used_times_, apply_to_student_type_,allow_online_to_offline_,
|
|
student_max_used_times_, apply_to_student_type_,allow_online_to_offline_,
|
|
|
single_course_time_,discount_,full_minus_course_times_,give_course_type_,give_category_id_,give_course_num_
|
|
single_course_time_,discount_,full_minus_course_times_,give_course_type_,give_category_id_,give_course_num_
|
|
|
,member_rank_id_,member_time_,give_member_rank_id_,give_member_time_,course_type_,
|
|
,member_rank_id_,member_time_,give_member_rank_id_,give_member_time_,course_type_,
|
|
|
- activity_type_,give_sign_course_time_,is_pay_to_balance_,teach_mode_,give_teach_mode_,period_,give_period_,status_,enable_)
|
|
|
|
|
|
|
+ activity_type_,give_sign_course_time_,is_pay_to_balance_,teach_mode_,give_teach_mode_,period_,give_period_,status_,enable_,market_price_)
|
|
|
VALUES(#{name},#{description},#{vipGroupCategoryIdList},#{startTime},#{endTime},#{organId},#{coursesStartTime},#{coursesEndTime},#{type},#{attribute1},#{attribute2},#{attribute3},
|
|
VALUES(#{name},#{description},#{vipGroupCategoryIdList},#{startTime},#{endTime},#{organId},#{coursesStartTime},#{coursesEndTime},#{type},#{attribute1},#{attribute2},#{attribute3},
|
|
|
#{salaryReadonlyFlag},#{giveClassPaySalaryFlag},now(),now(),#{salarySettlementJson},#{delFlag},#{paymentReadonlyFlag},#{onlineClassJoinGradientRewards},
|
|
#{salaryReadonlyFlag},#{giveClassPaySalaryFlag},now(),now(),#{salarySettlementJson},#{delFlag},#{paymentReadonlyFlag},#{onlineClassJoinGradientRewards},
|
|
|
#{offlineClassJoinGradientRewards},#{minCourseNum},#{maxCourseNum},#{studentMaxUsedTimes},#{applyToStudentType},#{allowOnlineToOffline},
|
|
#{offlineClassJoinGradientRewards},#{minCourseNum},#{maxCourseNum},#{studentMaxUsedTimes},#{applyToStudentType},#{allowOnlineToOffline},
|
|
|
#{singleCourseTime},#{discount},#{fullMinusCourseTimes},#{giveCourseType},#{giveCategoryId},#{giveCourseNum}
|
|
#{singleCourseTime},#{discount},#{fullMinusCourseTimes},#{giveCourseType},#{giveCategoryId},#{giveCourseNum}
|
|
|
,#{memberRankId},#{memberTime},#{giveMemberRankId},#{giveMemberTime},#{courseType},#{activityType},#{giveSingleCourseTime},
|
|
,#{memberRankId},#{memberTime},#{giveMemberRankId},#{giveMemberTime},#{courseType},#{activityType},#{giveSingleCourseTime},
|
|
|
- #{isPayToBalance},#{teachMode},#{giveTeachMode},#{periodEnum},#{givePeriodEnum},#{status},#{enable})
|
|
|
|
|
|
|
+ #{isPayToBalance},#{teachMode},#{giveTeachMode},#{periodEnum},#{givePeriodEnum},#{status},#{enable},#{marketPrice})
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
<!-- 根据主键查询一条记录 -->
|
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.VipGroupActivity">
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.VipGroupActivity">
|
|
|
- UPDATE vip_group_activity
|
|
|
|
|
- <set>
|
|
|
|
|
- <if test="enable != null">
|
|
|
|
|
- enable_ = #{enable},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="status != null">
|
|
|
|
|
- status_ = #{status},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="givePeriodEnum != null">
|
|
|
|
|
- give_period_ = #{givePeriodEnum,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="periodEnum != null">
|
|
|
|
|
- period_ = #{periodEnum,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="giveTeachMode != null">
|
|
|
|
|
- give_teach_mode_ = #{giveTeachMode},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="teachMode != null">
|
|
|
|
|
- teach_mode_ = #{teachMode},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="isPayToBalance != null">
|
|
|
|
|
- is_pay_to_balance_ = #{isPayToBalance},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="giveSingleCourseTime != null">
|
|
|
|
|
- give_sign_course_time_ = #{giveSingleCourseTime},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="singleCourseTime != null">
|
|
|
|
|
- single_course_time_ = #{singleCourseTime},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="discount != null">
|
|
|
|
|
- discount_ = #{discount},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="fullMinusCourseTimes != null">
|
|
|
|
|
- full_minus_course_times_ = #{fullMinusCourseTimes},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="giveCourseType != null">
|
|
|
|
|
- give_course_type_ = #{giveCourseType},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="giveCategoryId != null">
|
|
|
|
|
- give_category_id_ = #{giveCategoryId},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="giveCourseNum != null">
|
|
|
|
|
- give_course_num_ = #{giveCourseNum},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="activityType != null">
|
|
|
|
|
- activity_type_ = #{activityType},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="courseType != null">
|
|
|
|
|
- course_type_ = #{courseType},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="memberTime != null">
|
|
|
|
|
- member_time_ = #{memberTime},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="memberRankId != null">
|
|
|
|
|
- member_rank_id_ = #{memberRankId},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="giveMemberTime != null">
|
|
|
|
|
- give_member_time_ = #{giveMemberTime},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="giveMemberRankId != null">
|
|
|
|
|
- give_member_rank_id_ = #{giveMemberRankId},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="salaryReadonlyFlag != null">
|
|
|
|
|
- salary_readonly_flag_ = #{salaryReadonlyFlag},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="organId != null">
|
|
|
|
|
- organ_id_ = #{organId},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="giveClassPaySalaryFlag != null">
|
|
|
|
|
- give_class_pay_salary_flag_ = #{giveClassPaySalaryFlag},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="coursesEndTime != null">
|
|
|
|
|
- courses_end_time_ = #{coursesEndTime},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="attribute1 != null">
|
|
|
|
|
- attribute1_ = #{attribute1},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="attribute2 != null">
|
|
|
|
|
- attribute2_ = #{attribute2},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="name != null">
|
|
|
|
|
- name_ = #{name},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="startTime != null">
|
|
|
|
|
- start_time_ = #{startTime},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="attribute3 != null">
|
|
|
|
|
- attribute3_ = #{attribute3},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createTime != null">
|
|
|
|
|
- create_time_ = #{createTime},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="vipGroupCategoryIdList != null">
|
|
|
|
|
- vip_group_category_id_list_ = #{vipGroupCategoryIdList},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="description != null">
|
|
|
|
|
- description_ = #{description},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="salarySettlementJson != null">
|
|
|
|
|
- salary_settlement_json_ = #{salarySettlementJson},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="coursesStartTime != null">
|
|
|
|
|
- courses_start_time_ = #{coursesStartTime},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="type != null">
|
|
|
|
|
- type_ = #{type},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="delFlag != null">
|
|
|
|
|
- del_flag_ = #{delFlag},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="paymentReadonlyFlag != null">
|
|
|
|
|
- payment_readonly_flag_ = #{paymentReadonlyFlag},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="onlineClassJoinGradientRewards!=null">
|
|
|
|
|
- online_class_join_gradient_rewards_=#{onlineClassJoinGradientRewards},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="offlineClassJoinGradientRewards!=null">
|
|
|
|
|
- offline_class_join_gradient_rewards_=#{offlineClassJoinGradientRewards},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="minCourseNum!=null">
|
|
|
|
|
- min_course_num_=#{minCourseNum},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="maxCourseNum!=null">
|
|
|
|
|
- max_course_num_=#{maxCourseNum},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="studentMaxUsedTimes!=null">
|
|
|
|
|
- student_max_used_times_=#{studentMaxUsedTimes},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="applyToStudentType!=null">
|
|
|
|
|
- apply_to_student_type_=#{applyToStudentType},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="allowOnlineToOffline!=null">
|
|
|
|
|
- allow_online_to_offline_=#{allowOnlineToOffline},
|
|
|
|
|
- </if>
|
|
|
|
|
- end_time_ = #{endTime},
|
|
|
|
|
- update_time_ = NOW()
|
|
|
|
|
- </set>WHERE id_ = #{id}
|
|
|
|
|
|
|
+ UPDATE vip_group_activity SET enable_ = #{enable},status_ = #{status},give_period_ = #{givePeriodEnum,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
|
|
+ period_ = #{periodEnum,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},give_teach_mode_ = #{giveTeachMode},
|
|
|
|
|
+ teach_mode_ = #{teachMode},is_pay_to_balance_ = #{isPayToBalance},give_sign_course_time_ = #{giveSingleCourseTime},
|
|
|
|
|
+ single_course_time_ = #{singleCourseTime},discount_ = #{discount},full_minus_course_times_ = #{fullMinusCourseTimes},
|
|
|
|
|
+ give_course_type_ = #{giveCourseType},give_category_id_ = #{giveCategoryId},give_course_num_ = #{giveCourseNum},
|
|
|
|
|
+ activity_type_ = #{activityType},course_type_ = #{courseType},member_time_ = #{memberTime},
|
|
|
|
|
+ member_rank_id_ = #{memberRankId},give_member_time_ = #{giveMemberTime},give_member_rank_id_ = #{giveMemberRankId},
|
|
|
|
|
+ salary_readonly_flag_ = #{salaryReadonlyFlag},organ_id_ = #{organId},give_class_pay_salary_flag_ = #{giveClassPaySalaryFlag},
|
|
|
|
|
+ courses_end_time_ = #{coursesEndTime},attribute1_ = #{attribute1},attribute2_ = #{attribute2},
|
|
|
|
|
+ name_ = #{name},start_time_ = #{startTime},attribute3_ = #{attribute3},vip_group_category_id_list_ = #{vipGroupCategoryIdList},
|
|
|
|
|
+ description_ = #{description},salary_settlement_json_ = #{salarySettlementJson},courses_start_time_ = #{coursesStartTime},
|
|
|
|
|
+ type_ = #{type},payment_readonly_flag_ = #{paymentReadonlyFlag},online_class_join_gradient_rewards_=#{onlineClassJoinGradientRewards},
|
|
|
|
|
+ offline_class_join_gradient_rewards_=#{offlineClassJoinGradientRewards},min_course_num_=#{minCourseNum},
|
|
|
|
|
+ max_course_num_=#{maxCourseNum},student_max_used_times_=#{studentMaxUsedTimes},apply_to_student_type_=#{applyToStudentType},
|
|
|
|
|
+ allow_online_to_offline_=#{allowOnlineToOffline},end_time_ = #{endTime},market_price_ = #{marketPrice},update_time_ = NOW() WHERE id_ = #{id}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
<!-- 根据主键删除一条记录 -->
|
|
<!-- 根据主键删除一条记录 -->
|