|
|
@@ -638,12 +638,20 @@ public class QwSopTempServiceImpl implements IQwSopTempService {
|
|
|
if (CollectionUtils.isEmpty(tempIds)) {
|
|
|
return;
|
|
|
}
|
|
|
+ // 只弄课程模板的
|
|
|
List<QwSopTemp> tempList = qwSopTempMapper.selectListByIds(tempIds);
|
|
|
tempList = tempList.stream().filter(f -> Objects.equals(f.getStatus(), "1")).collect(Collectors.toList());
|
|
|
if (CollectionUtils.isEmpty(tempList)) {
|
|
|
return;
|
|
|
}
|
|
|
- List<QwSopTempContent> contentList = qwSopTempContentService.listByTempIds(tempIds);
|
|
|
+
|
|
|
+ // 获取这些规则关联的模板ID集合
|
|
|
+ Set<String> sopTempIds = tempList.stream()
|
|
|
+ .map(QwSopTemp::getId)
|
|
|
+ .filter(Objects::nonNull)
|
|
|
+ .collect(Collectors.toSet());
|
|
|
+
|
|
|
+ List<QwSopTempContent> contentList = qwSopTempContentService.listByTempIds(sopTempIds);
|
|
|
|
|
|
CountDownLatch latch = new CountDownLatch(tempList.size());
|
|
|
// 对每个模板执行同步操作
|