|
@@ -11,9 +11,11 @@ import com.yonge.toolset.base.page.QueryInfo;
|
|
|
import com.yonge.toolset.base.util.StringUtil;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
+import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
import java.util.List;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* Description
|
|
@@ -188,7 +190,13 @@ public class MusicSheetSearch extends QueryInfo{
|
|
|
public void setSubjectIds(String subjectIds) {
|
|
|
this.subjectIds = subjectIds;
|
|
|
if (StringUtils.isNotBlank(subjectIds)) {
|
|
|
- this.subjectIdList = StringUtil.toLongList(subjectIds);
|
|
|
+ // 过滤掉声部id为 0的
|
|
|
+ List<Long> list = StringUtil.toLongList(subjectIds);
|
|
|
+ this.subjectIdList = list.stream().filter(l -> !l.equals(0L)).collect(Collectors.toList());
|
|
|
+ if (CollectionUtils.isEmpty(this.subjectIdList)) {
|
|
|
+ this.subjectIdList = null;
|
|
|
+ this.subjectIds = null;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|