Browse Source

fix机构专辑状态

haonan 1 năm trước cách đây
mục cha
commit
cd7825227f

+ 2 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/UserTenantAlbumRecordServiceImpl.java

@@ -283,6 +283,7 @@ public class UserTenantAlbumRecordServiceImpl extends ServiceImpl<UserTenantAlbu
         // 判断是否是机构学生 机构学生 检测机构专辑购买记录
         TenantInfo tenantInfo = tenantInfoService.detail(detail.getTenantId());
         if (tenantInfo != null) {
+            album.setTenantAlbumStatus(0);
             album.setTenantName(tenantInfo.getName());
             QueryWrapper<TenantAlbumRef> queryWrapper = new QueryWrapper<>();
             queryWrapper.lambda().eq(TenantAlbumRef::getTenantId, detail.getTenantId());
@@ -324,7 +325,7 @@ public class UserTenantAlbumRecordServiceImpl extends ServiceImpl<UserTenantAlbu
 
 
         //查询对应专辑的详情
-        List<TenantAlbum> list = tenantAlbumService.lambdaQuery().eq(TenantAlbum::getStatus, true).eq(TenantAlbum::getId, tenantAlbumId).list();
+        List<TenantAlbum> list = tenantAlbumService.lambdaQuery().eq(TenantAlbum::getId, tenantAlbumId).list();
         if (CollectionUtils.isEmpty(list)){
             throw new BizException("机构专辑不存在");
         }