|
|
@@ -681,8 +681,16 @@ public class QwSopTempServiceImpl implements IQwSopTempService {
|
|
|
temp.setId(UUID.randomUUID().toString());
|
|
|
qwSopTempMapper.insertQwSopTemp(temp);
|
|
|
// 重新生成该模板的规则和内容
|
|
|
- threadPoolTaskExecutor.execute(() -> createSopTempRules(temp));
|
|
|
- latch.countDown();
|
|
|
+ threadPoolTaskExecutor.execute(() -> {
|
|
|
+ try {
|
|
|
+ createSopTempRules(temp);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("同步模板规则和内容失败", e);
|
|
|
+ } finally {
|
|
|
+ latch.countDown();
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
}
|
|
|
|
|
|
try {
|