feat(creator): 内容审核返回创作者与分集信息
This commit is contained in:
1 parent
9b2833dfd3
commit
2fee329002
3 files changed
+120
-1
No files matched your search
+7
@@ -61,6 +61,13 @@ public class DramaService {
|
||||
.like(StringUtils.hasText(req.getKeyword()), Drama::getTitle, req.getKeyword())
|
||||
.eq(StringUtils.hasText(req.getStatus()), Drama::getStatus, req.getStatus())
|
||||
.eq(req.getIsHot() != null, Drama::getIsHot, Boolean.TRUE.equals(req.getIsHot()) ? 1 : 0);
|
||||
// admin 短剧管理默认隐藏创作者发的、尚在审核中/被驳回的剧——审核通过后才自动进入;
|
||||
// admin 自己建的(creator_id IS NULL)不受影响;手动选了状态时也放行。
|
||||
if (!StringUtils.hasText(req.getStatus())) {
|
||||
wrapper.and(w -> w.isNull(Drama::getCreatorId)
|
||||
.or()
|
||||
.notIn(Drama::getStatus, List.of("reviewing", "rejected")));
|
||||
}
|
||||
if (!dramaTypes.isEmpty()) {
|
||||
DramaMultiTagSupport.applyDramaTypeTokens(wrapper, dramaTypes);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user