|
@@ -15,6 +15,8 @@
|
|
|
<result column="rewards_rules_json_" property="rewardsRulesJson" />
|
|
|
<result column="create_time_" property="createTime" />
|
|
|
<result column="update_time_" property="updateTime" />
|
|
|
+ <result column="vip_group_category_id_list_" property="vipGroupCategoryIdList" />
|
|
|
+ <result column="teacher_id_" property="teacherId" />
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -33,9 +35,9 @@
|
|
|
<!-- <selectKey resultClass="int" keyProperty="id" > SELECT SEQ_WSDEFINITION_ID.nextval
|
|
|
AS ID FROM DUAL </selectKey> -->
|
|
|
INSERT INTO course_schedule_rewards_rules
|
|
|
- (id_,name_,course_schedule_type_,reward_mode_,organ_id_,rewards_rules_json_,create_time_,update_time_)
|
|
|
+ (id_,name_,course_schedule_type_,reward_mode_,organ_id_,rewards_rules_json_,create_time_,update_time_,vip_group_category_id_list_,teacher_id_)
|
|
|
VALUES(#{id},#{name},#{courseScheduleType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
- #{rewardMode,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{organId},#{rewardsRulesJson},now(),now())
|
|
|
+ #{rewardMode,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{organId},#{rewardsRulesJson},now(),now(),#{vipGroupCategoryIdList},#{teacherId})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -50,6 +52,12 @@
|
|
|
course_schedule_type_ =
|
|
|
#{courseScheduleType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|
|
|
+ <if test="vipGroupCategoryIdList != null">
|
|
|
+ vip_group_category_id_list_ = #{vipGroupCategoryIdList},
|
|
|
+ </if>
|
|
|
+ <if test="teacherId != null">
|
|
|
+ teacher_id_ = #{teacherId},
|
|
|
+ </if>
|
|
|
<if test="id != null">
|
|
|
id_ = #{id},
|
|
|
</if>
|