Bladeren bron

会员权限细化

zouxuan 3 jaren geleden
bovenliggende
commit
11ca41461f

+ 11 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/page/SysExamSongQueryInfo.java

@@ -20,6 +20,9 @@ public class SysExamSongQueryInfo extends QueryInfo {
     @ApiModelProperty(value = "曲库分类",required = true)
     private Integer categoriesId;
 
+    @ApiModelProperty(value = "是否收费",required = true)
+    private Integer rankType;
+
     private Integer sysMusicScoreId;
 
     private Integer parentId;
@@ -30,6 +33,14 @@ public class SysExamSongQueryInfo extends QueryInfo {
 
     private List<Integer> categoriesIdList;
 
+    public Integer getRankType() {
+        return rankType;
+    }
+
+    public void setRankType(Integer rankType) {
+        this.rankType = rankType;
+    }
+
     public List<Integer> getCategoriesIdList() {
         return categoriesIdList;
     }

+ 8 - 0
mec-biz/src/main/resources/config/mybatis/SysMusicScoreMapper.xml

@@ -131,6 +131,14 @@
 					AND ses.type_ = #{type}
 				</if>
 			</if>
+			<if test="rankType != null">
+				<if test="rankType == 0">
+					AND ses.rank_ids_ IS NULL
+				</if>
+				<if test="rankType == 1">
+					AND ses.rank_ids_ IS NOT NULL
+				</if>
+			</if>
 			<if test="type == null or type == ''">
 				<if test="createUserId != null">
 					AND ses.create_user_id_ = #{createUserId}