yonge 3 vuotta sitten
vanhempi
commit
2c4a2b84e8

+ 3 - 1
mec-auth/mec-auth-api/src/main/java/com/ym/mec/auth/api/dto/MusicScoreQueryInfo.java

@@ -1,8 +1,10 @@
 package com.ym.mec.auth.api.dto;
 
+import com.ym.mec.common.page.QueryInfo;
+
 import io.swagger.annotations.ApiModelProperty;
 
-public class MusicScoreQueryInfo {
+public class MusicScoreQueryInfo extends QueryInfo {
     @ApiModelProperty(value = "父节点编号,默认0",required = false)
     private Integer parentId = 0;
 

+ 6 - 6
mec-biz/src/main/resources/config/mybatis/SysMusicScoreCategoriesMapper.xml

@@ -128,9 +128,9 @@
 		SELECT sm.*, GROUP_CONCAT(o.name_) AS organ_name_ FROM sys_music_score_categories sm
 		LEFT JOIN organization o ON FIND_IN_SET(o.id_,sm.organ_id_)
 		<where>
-			<if test="organId != null and organId != ''">
+			<!-- <if test="organId != null and organId != ''">
 				AND INTE_ARRAY(sm.organ_id_,#{organId})
-			</if>
+			</if> -->
 			<if test="parentId != null">
 				AND sm.parent_id_ = #{parentId}
 			</if>
@@ -149,9 +149,9 @@
 	<select id="queryCount" resultType="int">
 		SELECT COUNT(sm.id_) FROM sys_music_score_categories sm
 		<where>
-			<if test="organId != null and organId != ''">
+			<!-- <if test="organId != null and organId != ''">
 				AND INTE_ARRAY(sm.organ_id_,#{organId})
-			</if>
+			</if> -->
 			<if test="parentId != null">
 				AND sm.parent_id_ = #{parentId}
 			</if>
@@ -191,9 +191,9 @@
 			<if test="parentId != null">
 				AND sm.parent_id_ = #{parentId}
 			</if>
-			<if test="organId != null">
+			<!-- <if test="organId != null">
 				AND INTE_ARRAY(#{organId},sm.organ_id_)
-			</if>
+			</if> -->
 		</where>
 	</sql>