丽知:写日志加锁

This commit is contained in:
zhengyf 2024-10-25 16:45:37 +08:00
parent 6bbfc57c45
commit bb11543592
1 changed files with 33 additions and 22 deletions

View File

@ -44,6 +44,9 @@ public class SaveOrUpdateBusinessLogUtil {
Assert.notNull(integrationTaskLivingDetailsEntity.getPluginId(), "场景id不能为空");
synchronized (OBJECT_LOCK) {
Thread n = new Thread(new Runnable() {
@Override
public void run() {
try {
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetails = null;
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity1 = new IntegrationTaskLivingDetailsEntity();
@ -71,6 +74,14 @@ public class SaveOrUpdateBusinessLogUtil {
//2024年9月3日 10:26:45 如果这里往上抛出异常没有功能搭配处理
}
}
});
n.start();
try{
n.join();
}catch (Exception e){
logger.error("",e);
}
}
}
/**