|
@@ -40,13 +40,14 @@
|
|
|
<result column="create_time_" property="createTime" />
|
|
|
<result column="ext_config_json_" property="extConfigJson" />
|
|
|
<result column="ext_style_config_json_" property="extStyleConfigJson" />
|
|
|
+ <result column="is_convertible_score_" property="isConvertibleScore" />
|
|
|
+ <result column="score_type_" property="scoreType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
|
<select id="get" resultMap="SysMusicScore" >
|
|
|
SELECT * FROM sys_music_score WHERE id_ = #{id}
|
|
|
</select>
|
|
|
-
|
|
|
|
|
|
|
|
|
<!-- 向数据库增加一条记录 -->
|
|
@@ -257,11 +258,17 @@
|
|
|
<if test="showFlag != null">
|
|
|
AND ses.show_flag_ = #{showFlag}
|
|
|
</if>
|
|
|
+ <if test="isConvertibleScore != null">
|
|
|
+ AND ses.is_convertible_score_ = #{isConvertibleScore}
|
|
|
+ </if>
|
|
|
+ <if test="scoreType != null">
|
|
|
+ AND ses.score_type_ = #{scoreType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
+ </if>
|
|
|
<if test="subjectId != null">
|
|
|
- AND (FIND_IN_SET(#{subjectId},ses.subject_ids_) OR ses.subject_ids_ IS NULL OR ses.subject_ids_ = '')
|
|
|
+ AND (FIND_IN_SET(#{subjectId},ses.subject_ids_) OR ses.subject_ids_ IS NULL OR ses.subject_ids_ = '' OR ses.music_sheet_type_ = 'CONCERT')
|
|
|
</if>
|
|
|
<if test="subjectIds != null and subjectIds != ''">
|
|
|
- AND (FIND_IN_SET(#{subjectIds},ses.subject_ids_) OR ses.subject_ids_ IS NULL OR ses.subject_ids_ = '')
|
|
|
+ AND (FIND_IN_SET(#{subjectIds},ses.subject_ids_) OR ses.subject_ids_ IS NULL OR ses.subject_ids_ = '' OR ses.music_sheet_type_ = 'CONCERT')
|
|
|
</if>
|
|
|
<if test="clientType != null">
|
|
|
AND ses.client_type_ = #{clientType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|