|
@@ -7,6 +7,7 @@
|
|
<mapper namespace="com.ym.mec.biz.dal.dao.ClassGroupDao">
|
|
<mapper namespace="com.ym.mec.biz.dal.dao.ClassGroupDao">
|
|
<resultMap type="com.ym.mec.biz.dal.entity.ClassGroup" id="ClassGroup">
|
|
<resultMap type="com.ym.mec.biz.dal.entity.ClassGroup" id="ClassGroup">
|
|
<result column="id_" property="id"/>
|
|
<result column="id_" property="id"/>
|
|
|
|
+ <result column="group_type_" property="groupType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
<result column="music_group_id_" property="musicGroupId"/>
|
|
<result column="music_group_id_" property="musicGroupId"/>
|
|
<result column="subject_id_list_" property="subjectIdList"/>
|
|
<result column="subject_id_list_" property="subjectIdList"/>
|
|
<result column="subject_name_" property="subjectName"/>
|
|
<result column="subject_name_" property="subjectName"/>
|
|
@@ -45,6 +46,7 @@
|
|
INSERT INTO class_group
|
|
INSERT INTO class_group
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id!=null">id_,</if>
|
|
<if test="id!=null">id_,</if>
|
|
|
|
+ <if test="groupType!=null">group_type_,</if>
|
|
<if test="musicGroupId!=null">music_group_id_,</if>
|
|
<if test="musicGroupId!=null">music_group_id_,</if>
|
|
<if test="subjectIdList!=null">subject_id_list_,</if>
|
|
<if test="subjectIdList!=null">subject_id_list_,</if>
|
|
<if test="name!=null">name_,</if>
|
|
<if test="name!=null">name_,</if>
|
|
@@ -61,6 +63,7 @@
|
|
VALUES
|
|
VALUES
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id!=null">#{id},</if>
|
|
<if test="id!=null">#{id},</if>
|
|
|
|
+ <if test="groupType!=null">#{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},</if>
|
|
<if test="musicGroupId!=null">#{musicGroupId},</if>
|
|
<if test="musicGroupId!=null">#{musicGroupId},</if>
|
|
<if test="subjectIdList!=null">#{subjectIdList},</if>
|
|
<if test="subjectIdList!=null">#{subjectIdList},</if>
|
|
<if test="name!=null">#{name},</if>
|
|
<if test="name!=null">#{name},</if>
|
|
@@ -107,6 +110,9 @@
|
|
<if test="type != null">
|
|
<if test="type != null">
|
|
type_ = #{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
type_ = #{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="groupType != null">
|
|
|
|
+ group_type_ = #{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
|
+ </if>
|
|
<if test="name != null">
|
|
<if test="name != null">
|
|
name_ = #{name},
|
|
name_ = #{name},
|
|
</if>
|
|
</if>
|