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