|
@@ -9,7 +9,7 @@
|
|
<result column="music_group_id_" property="musicGroupId" />
|
|
<result column="music_group_id_" property="musicGroupId" />
|
|
<result column="class_group_id_" property="classGroupId" />
|
|
<result column="class_group_id_" property="classGroupId" />
|
|
<result column="teacher_id_" property="teacherId" />
|
|
<result column="teacher_id_" property="teacherId" />
|
|
- <result column="job_type_" property="jobType" />
|
|
|
|
|
|
+ <result column="job_type_" property="jobType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
<result column="class_fee_" property="classFee" />
|
|
<result column="class_fee_" property="classFee" />
|
|
<result column="create_time_" property="createTime" />
|
|
<result column="create_time_" property="createTime" />
|
|
<result column="update_time_" property="updateTime" />
|
|
<result column="update_time_" property="updateTime" />
|
|
@@ -34,7 +34,7 @@
|
|
AS ID FROM DUAL </selectKey> -->
|
|
AS ID FROM DUAL </selectKey> -->
|
|
INSERT INTO teacher_class_fee
|
|
INSERT INTO teacher_class_fee
|
|
(id_,music_group_id_,class_group_id_,teacher_id_,job_type_,class_fee_,create_time_,update_time_)
|
|
(id_,music_group_id_,class_group_id_,teacher_id_,job_type_,class_fee_,create_time_,update_time_)
|
|
- VALUES(#{id},#{musicGroupId},#{classGroupId},#{teacherId},#{jobType},#{classFee},#{createTime},#{updateTime})
|
|
|
|
|
|
+ VALUES(#{id},#{musicGroupId},#{classGroupId},#{teacherId},#{jobType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{classFee},now(),now)
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -42,10 +42,7 @@
|
|
UPDATE teacher_class_fee
|
|
UPDATE teacher_class_fee
|
|
<set>
|
|
<set>
|
|
<if test="jobType != null">
|
|
<if test="jobType != null">
|
|
- job_type_ = #{jobType},
|
|
|
|
- </if>
|
|
|
|
- <if test="id != null">
|
|
|
|
- id_ = #{id},
|
|
|
|
|
|
+ job_type_ = #{jobType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
</if>
|
|
</if>
|
|
<if test="classGroupId != null">
|
|
<if test="classGroupId != null">
|
|
class_group_id_ = #{classGroupId},
|
|
class_group_id_ = #{classGroupId},
|
|
@@ -62,9 +59,6 @@
|
|
<if test="musicGroupId != null">
|
|
<if test="musicGroupId != null">
|
|
music_group_id_ = #{musicGroupId},
|
|
music_group_id_ = #{musicGroupId},
|
|
</if>
|
|
</if>
|
|
- <if test="createTime != null">
|
|
|
|
- create_time_ = #{createTime},
|
|
|
|
- </if>
|
|
|
|
</set>
|
|
</set>
|
|
WHERE id_ = #{id}
|
|
WHERE id_ = #{id}
|
|
</update>
|
|
</update>
|