|
@@ -150,19 +150,19 @@
|
|
|
SELECT * FROM class_group
|
|
SELECT * FROM class_group
|
|
|
<where>
|
|
<where>
|
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
|
- id_ = #{id}
|
|
|
|
|
|
|
+ and id_ = #{id}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="type != null">
|
|
<if test="type != null">
|
|
|
- type_ = #{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
|
|
|
|
+ and type_ = #{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="groupType != null">
|
|
<if test="groupType != null">
|
|
|
- group_type_ = #{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
|
|
|
|
+ and group_type_ = #{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="musicGroupId != null and musicGroupId != ''">
|
|
<if test="musicGroupId != null and musicGroupId != ''">
|
|
|
- music_group_id_ = #{musicGroupId}
|
|
|
|
|
|
|
+ and music_group_id_ = #{musicGroupId}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="name != null and name != ''">
|
|
<if test="name != null and name != ''">
|
|
|
- name_ LIKE CONCAT('%',#{name},'%')
|
|
|
|
|
|
|
+ and name_ LIKE CONCAT('%',#{name},'%')
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
ORDER BY id_ desc
|
|
ORDER BY id_ desc
|
|
@@ -174,19 +174,19 @@
|
|
|
SELECT COUNT(*) FROM class_group
|
|
SELECT COUNT(*) FROM class_group
|
|
|
<where>
|
|
<where>
|
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
|
- id_ = #{id}
|
|
|
|
|
|
|
+ and id_ = #{id}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="type != null">
|
|
<if test="type != null">
|
|
|
- type_ = #{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
|
|
|
|
+ and type_ = #{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="groupType != null">
|
|
<if test="groupType != null">
|
|
|
- group_type_ = #{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
|
|
|
|
+ and group_type_ = #{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="musicGroupId != null and musicGroupId != ''">
|
|
<if test="musicGroupId != null and musicGroupId != ''">
|
|
|
- music_group_id_ = #{musicGroupId}
|
|
|
|
|
|
|
+ and music_group_id_ = #{musicGroupId}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="name != null and name != ''">
|
|
<if test="name != null and name != ''">
|
|
|
- name_ LIKE CONCAT('%',#{name},'%')
|
|
|
|
|
|
|
+ and name_ LIKE CONCAT('%',#{name},'%')
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|