|
@@ -16,6 +16,7 @@
|
|
<result column="course_form_" property="courseForm"/>
|
|
<result column="course_form_" property="courseForm"/>
|
|
<result column="create_time_" property="createTime"/>
|
|
<result column="create_time_" property="createTime"/>
|
|
<result column="update_time_" property="updateTime"/>
|
|
<result column="update_time_" property="updateTime"/>
|
|
|
|
+ <result column="first_course_start_time_" property="firstCourseStartTime"/>
|
|
<result column="status_" property="status" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
<result column="status_" property="status" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
<result column="extracurricular_teacher_" property="extracurricularTeacher" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
<result column="extracurricular_teacher_" property="extracurricularTeacher" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
<result column="bill_start_date_" property="billStartDate"/>
|
|
<result column="bill_start_date_" property="billStartDate"/>
|
|
@@ -108,7 +109,7 @@
|
|
settlement_type_, cooperation_organ_id_, enlightenment_course_time_,
|
|
settlement_type_, cooperation_organ_id_, enlightenment_course_time_,
|
|
parent_meeting_time_, img_, director_user_id_, is_classroom_lessons_, memo_, expect_start_group_date_,
|
|
parent_meeting_time_, img_, director_user_id_, is_classroom_lessons_, memo_, expect_start_group_date_,
|
|
ownership_type_, repair_user_id_, del_flag_, payment_valid_start_date_, payment_valid_end_date_,
|
|
ownership_type_, repair_user_id_, del_flag_, payment_valid_start_date_, payment_valid_end_date_,
|
|
- payment_pattern_, course_view_type_, transaction_teacher_id_,homework_push_flag_,member_course_show_flag_,tenant_id_,is_give_accessories_,extracurricular_teacher_)
|
|
|
|
|
|
+ payment_pattern_, course_view_type_, transaction_teacher_id_,homework_push_flag_,member_course_show_flag_,tenant_id_,is_give_accessories_,extracurricular_teacher_,first_course_start_time_)
|
|
VALUES (#{id}, #{name}, #{organId}, #{schoolId}, #{applyExpireDate}, #{preApplyExpireDate}, #{teamTeacherId},
|
|
VALUES (#{id}, #{name}, #{organId}, #{schoolId}, #{applyExpireDate}, #{preApplyExpireDate}, #{teamTeacherId},
|
|
#{educationalTeacherId},
|
|
#{educationalTeacherId},
|
|
#{chargeTypeId}, #{courseForm}, now(), now(),
|
|
#{chargeTypeId}, #{courseForm}, now(), now(),
|
|
@@ -120,7 +121,8 @@
|
|
#{isClassroomLessons}, #{memo}, #{expectStartGroupDate},
|
|
#{isClassroomLessons}, #{memo}, #{expectStartGroupDate},
|
|
#{ownershipType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, #{repairUserId},
|
|
#{ownershipType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, #{repairUserId},
|
|
#{delFlag}, #{paymentValidStartDate}, #{paymentValidEndDate}, #{paymentPattern},
|
|
#{delFlag}, #{paymentValidStartDate}, #{paymentValidEndDate}, #{paymentPattern},
|
|
- #{courseViewType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, #{transactionTeacherId},#{homeworkPushFlag},#{memberCourseShowFlag},#{tenantId},#{isGiveAccessories},#{extracurricularTeacher,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler})
|
|
|
|
|
|
+ #{courseViewType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, #{transactionTeacherId},#{homeworkPushFlag},#{memberCourseShowFlag},#{tenantId},#{isGiveAccessories},
|
|
|
|
+ #{extracurricularTeacher,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{firstCourseStartTime})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -241,6 +243,9 @@
|
|
<if test="extracurricularTeacher != null">
|
|
<if test="extracurricularTeacher != null">
|
|
extracurricular_teacher_ = #{extracurricularTeacher,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
extracurricular_teacher_ = #{extracurricularTeacher,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="firstCourseStartTime != null">
|
|
|
|
+ first_course_start_time_ = #{firstCourseStartTime},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
WHERE id_ = #{id}
|
|
WHERE id_ = #{id}
|
|
</update>
|
|
</update>
|
|
@@ -315,6 +320,12 @@
|
|
<if test="billEndDate!=null">
|
|
<if test="billEndDate!=null">
|
|
AND date(mg.bill_start_date_) <= #{billEndDate}
|
|
AND date(mg.bill_start_date_) <= #{billEndDate}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="isStartedCourse != null and isStartedCourse == true">
|
|
|
|
+ AND first_course_start_time_ is not null
|
|
|
|
+ </if>
|
|
|
|
+ <if test="isStartedCourse != null and isStartedCourse == false">
|
|
|
|
+ AND first_course_start_time_ is null
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
|
|
|