|
@@ -21,6 +21,7 @@ import com.yonge.cooleshow.biz.dal.vo.StudentMusicAlbumOrderVo;
|
|
|
import com.yonge.cooleshow.biz.dal.wrapper.TenantAlbumWrapper;
|
|
|
import com.yonge.cooleshow.common.constant.SysConfigConstant;
|
|
|
import com.yonge.cooleshow.common.enums.ActivityShareEnum;
|
|
|
+import com.yonge.toolset.utils.obj.ObjectUtil;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
@@ -483,8 +484,23 @@ public class MusicAlbumServiceImpl extends ServiceImpl<MusicAlbumDao,MusicAlbum>
|
|
|
tenantAlbumId = Long.parseLong(albumId);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
TenantAlbumWrapper.TenantAlbum album = new TenantAlbumWrapper.TenantAlbum();
|
|
|
|
|
|
+ //获取对应机构专辑状态
|
|
|
+ TenantAlbum one = tenantAlbumService.lambdaQuery().eq(TenantAlbum::getId, tenantAlbumId).last("limit 1").one();
|
|
|
+ if (ObjectUtil.isEmpty(one) || !one.getStatus()){
|
|
|
+ album.setTenantAlbumStatus(0);
|
|
|
+
|
|
|
+ } else {
|
|
|
+ album.setTenantAlbumStatus(2);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (!ObjectUtil.isEmpty(one)){
|
|
|
+ album.setStatus(one.getStatus());
|
|
|
+ }
|
|
|
+
|
|
|
//查询对应专辑的详情
|
|
|
List<TenantAlbum> list = tenantAlbumService.lambdaQuery().eq(TenantAlbum::getStatus, true).eq(TenantAlbum::getId, tenantAlbumId).list();
|
|
|
if (CollectionUtils.isEmpty(list)){
|