|
@@ -34,6 +34,7 @@
|
|
<result property="minCourseNum" column="min_course_num_"/>
|
|
<result property="minCourseNum" column="min_course_num_"/>
|
|
<result property="maxCourseNum" column="max_course_num_"/>
|
|
<result property="maxCourseNum" column="max_course_num_"/>
|
|
<result property="studentMaxUsedTimes" column="student_max_used_times_"/>
|
|
<result property="studentMaxUsedTimes" column="student_max_used_times_"/>
|
|
|
|
+ <result property="applyToStudentType" column="apply_to_student_type_"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -56,10 +57,10 @@
|
|
INSERT INTO vip_group_activity (id_,name_,description_,vip_group_category_id_list_,start_time_,end_time_,organ_id_,courses_start_time_,courses_end_time_,type_,
|
|
INSERT INTO vip_group_activity (id_,name_,description_,vip_group_category_id_list_,start_time_,end_time_,organ_id_,courses_start_time_,courses_end_time_,type_,
|
|
attribute1_,attribute2_,attribute3_,salary_readonly_flag_,give_class_pay_salary_flag_,create_time_,update_time_,salary_settlement_json_,del_flag_,
|
|
attribute1_,attribute2_,attribute3_,salary_readonly_flag_,give_class_pay_salary_flag_,create_time_,update_time_,salary_settlement_json_,del_flag_,
|
|
payment_readonly_flag_,online_class_join_gradient_rewards_,offline_class_join_gradient_rewards_,min_course_num_,max_course_num_,
|
|
payment_readonly_flag_,online_class_join_gradient_rewards_,offline_class_join_gradient_rewards_,min_course_num_,max_course_num_,
|
|
- student_max_used_times_)
|
|
|
|
|
|
+ student_max_used_times_, apply_to_student_type_)
|
|
VALUES(#{id},#{name},#{description},#{vipGroupCategoryIdList},#{startTime},#{endTime},#{organId},#{coursesStartTime},#{coursesEndTime},#{type},#{attribute1},#{attribute2},#{attribute3},
|
|
VALUES(#{id},#{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})
|
|
|
|
|
|
+ #{offlineClassJoinGradientRewards},#{minCourseNum},#{maxCourseNum},#{studentMaxUsedTimes},#{applyToStudentType})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -138,6 +139,9 @@
|
|
<if test="studentMaxUsedTimes!=null">
|
|
<if test="studentMaxUsedTimes!=null">
|
|
student_max_used_times_=#{studentMaxUsedTimes},
|
|
student_max_used_times_=#{studentMaxUsedTimes},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="applyToStudentType!=null">
|
|
|
|
+ apply_to_student_type_=#{applyToStudentType},
|
|
|
|
+ </if>
|
|
update_time_ = NOW(),
|
|
update_time_ = NOW(),
|
|
</set>WHERE id_ = #{id}
|
|
</set>WHERE id_ = #{id}
|
|
</update>
|
|
</update>
|
|
@@ -193,6 +197,9 @@
|
|
AND (end_time_ IS NULL OR NOW() BETWEEN start_time_ AND end_time_)
|
|
AND (end_time_ IS NULL OR NOW() BETWEEN start_time_ AND end_time_)
|
|
AND del_flag_=0
|
|
AND del_flag_=0
|
|
AND INTE_ARRAY(organ_id_,#{organIds})
|
|
AND INTE_ARRAY(organ_id_,#{organIds})
|
|
|
|
+ <if test="applyToStudentType!=null">
|
|
|
|
+ AND apply_to_student_type_=#{applyToStudentType}
|
|
|
|
+ </if>
|
|
</select>
|
|
</select>
|
|
<select id="queryNamesById" resultType="java.util.Map">
|
|
<select id="queryNamesById" resultType="java.util.Map">
|
|
SELECT vga.id_ `key`,vga.name_ `value` FROM vip_group_activity vga WHERE FIND_IN_SET(vga.id_,#{activityIds}) AND vga.del_flag_=0
|
|
SELECT vga.id_ `key`,vga.name_ `value` FROM vip_group_activity vga WHERE FIND_IN_SET(vga.id_,#{activityIds}) AND vga.del_flag_=0
|