|
@@ -20,7 +20,7 @@
|
|
<result column="free_class_period_" property="freeClassPeriod"/>
|
|
<result column="free_class_period_" property="freeClassPeriod"/>
|
|
<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="status_" property="status"/>
|
|
|
|
|
|
+ <result column="status_" property="status" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
<result column="payment_expire_date_" property="paymentExpireDate"/>
|
|
<result column="payment_expire_date_" property="paymentExpireDate"/>
|
|
<result column="bill_start_date_" property="billStartDate"/>
|
|
<result column="bill_start_date_" property="billStartDate"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
@@ -45,7 +45,7 @@
|
|
-->
|
|
-->
|
|
INSERT INTO music_group
|
|
INSERT INTO music_group
|
|
(id_,name_,organ_id_,school_id_,apply_expire_date_,team_teacher_id_,educational_teacher_id_,charge_type_id_,course_group_id_,class_period_,free_class_period_,create_time_,update_time_,status_,payment_expire_date_,bill_start_date_)
|
|
(id_,name_,organ_id_,school_id_,apply_expire_date_,team_teacher_id_,educational_teacher_id_,charge_type_id_,course_group_id_,class_period_,free_class_period_,create_time_,update_time_,status_,payment_expire_date_,bill_start_date_)
|
|
- VALUES(#{id},#{name},#{organId},#{schoolId},#{applyExpireDate},#{teamTeacherId},#{educationalTeacherId},#{chargeTypeId},#{courseGroupId},#{classPeriod},#{freeClassPeriod},#{createTime},#{updateTime},#{status},#{paymentExpireDate},#{billStartDate})
|
|
|
|
|
|
+ VALUES(#{id},#{name},#{organId},#{schoolId},#{applyExpireDate},#{teamTeacherId},#{educationalTeacherId},#{chargeTypeId},#{courseGroupId},#{classPeriod},#{freeClassPeriod},#{createTime},#{updateTime},#{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{paymentExpireDate},#{billStartDate})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -53,7 +53,7 @@
|
|
UPDATE music_group
|
|
UPDATE music_group
|
|
<set>
|
|
<set>
|
|
<if test="status != null">
|
|
<if test="status != null">
|
|
- status_ = #{status},
|
|
|
|
|
|
+ status_ = #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
</if>
|
|
</if>
|
|
<if test="organId != null">
|
|
<if test="organId != null">
|
|
organ_id_ = #{organId},
|
|
organ_id_ = #{organId},
|