|
@@ -18,6 +18,7 @@ import com.yonge.toolset.base.page.PageInfo;
|
|
|
import com.yonge.toolset.mybatis.support.PageUtil;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
@@ -142,7 +143,7 @@ public class TenantAlbumController {
|
|
|
tenantAlbumSheets.stream().forEach(t->{
|
|
|
String musicSubject = t.getMusicSubject();
|
|
|
|
|
|
- if (!musicSubject.isEmpty()){
|
|
|
+ if (StringUtils.isNotBlank(musicSubject)){
|
|
|
//设置对应声部名称
|
|
|
List<Subject> subject = subjectService.findBySubjectByIdList(musicSubject);
|
|
|
t.setMusicSubjectName(subject.get(0).getName());
|
|
@@ -151,7 +152,7 @@ public class TenantAlbumController {
|
|
|
|
|
|
//设置对应标签名称
|
|
|
String musicTag = t.getMusicTag();
|
|
|
- if (!musicTag.isEmpty()){
|
|
|
+ if (StringUtils.isNotBlank(musicTag)){
|
|
|
String[] split = musicTag.split(",");
|
|
|
for (String s : split) {
|
|
|
List<Long> list = new ArrayList<>();
|