|
@@ -283,6 +283,7 @@ public class UserTenantAlbumRecordServiceImpl extends ServiceImpl<UserTenantAlbu
|
|
// 判断是否是机构学生 机构学生 检测机构专辑购买记录
|
|
// 判断是否是机构学生 机构学生 检测机构专辑购买记录
|
|
TenantInfo tenantInfo = tenantInfoService.detail(detail.getTenantId());
|
|
TenantInfo tenantInfo = tenantInfoService.detail(detail.getTenantId());
|
|
if (tenantInfo != null) {
|
|
if (tenantInfo != null) {
|
|
|
|
+ album.setTenantAlbumStatus(0);
|
|
album.setTenantName(tenantInfo.getName());
|
|
album.setTenantName(tenantInfo.getName());
|
|
QueryWrapper<TenantAlbumRef> queryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<TenantAlbumRef> queryWrapper = new QueryWrapper<>();
|
|
queryWrapper.lambda().eq(TenantAlbumRef::getTenantId, detail.getTenantId());
|
|
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)){
|
|
if (CollectionUtils.isEmpty(list)){
|
|
throw new BizException("机构专辑不存在");
|
|
throw new BizException("机构专辑不存在");
|
|
}
|
|
}
|