|
@@ -99,9 +99,25 @@ public class VideoPoolAuditService {
|
|
|
}
|
|
|
Page<VideoPoolAuditListVO> result = new Page<>();
|
|
|
// 根据配置判断当日是否审核完成 并 选择内容池返回
|
|
|
+ PublishSingleVideoSource obj = null;
|
|
|
Integer poolLevel = getAuditPoolLevel();
|
|
|
- PublishSingleVideoSource obj = videoPoolAuditMapper.articleVideoAuditNext(param.getContentId(),
|
|
|
- param.getStatus(), param.getTitle(), param.getAuditAccount(), poolLevel);
|
|
|
+ if (Objects.isNull(poolLevel)) {
|
|
|
+ obj = videoPoolAuditMapper.articleVideoAuditNext(param.getContentId(),
|
|
|
+ param.getStatus(), param.getTitle(), param.getAuditAccount(), poolLevel);
|
|
|
+ } else {
|
|
|
+ for (String poolLevelStr : dailyAuditPoolCount.keySet()) {
|
|
|
+ ContentPoolEnum poolEnum = ContentPoolEnum.from(poolLevelStr);
|
|
|
+ if (!Objects.equals(poolEnum.getValue(), poolLevel)) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ obj = videoPoolAuditMapper.articleVideoAuditNext(param.getContentId(),
|
|
|
+ param.getStatus(), param.getTitle(), param.getAuditAccount(), poolLevel);
|
|
|
+ if (Objects.nonNull(obj)) {
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ poolLevel = poolLevel + 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (Objects.isNull(obj)) {
|
|
|
return result;
|
|
|
}
|
|
@@ -194,7 +210,7 @@ public class VideoPoolAuditService {
|
|
|
|
|
|
@XxlJob("shuffleVideoPoolAuditGroup")
|
|
|
public ReturnT<String> shuffleVideoPoolAuditGroup(String param) {
|
|
|
- List<String> auditUser = Arrays.asList("a","b","c","d","e","f","g","h","i","j");
|
|
|
+ List<String> auditUser = Arrays.asList("a", "b", "c", "d", "e", "f", "g", "h", "i", "j");
|
|
|
List<PublishSingleVideoSource> contentIds = videoSourceRepository.getByVideoPoolAuditStatus(ArticleVideoAuditStatusEnum.WAITING.getCode());
|
|
|
for (int i = 0; i < contentIds.size(); i++) {
|
|
|
int per = i % auditUser.size();
|