This commit is contained in:
2026-06-05 08:51:12 +08:00
parent 133a2bd223
commit a3edf3275d
3 changed files with 19 additions and 5 deletions

View File

@@ -116,7 +116,9 @@ public class InitThread implements ApplicationRunner {
Long orgId = x.getOrgId();
Long siteId = x.getSiteId();
SiteMemory siteMemory = GlobalMemory.getSiteMemory(orgId, siteId);
siteMemory.addDevicePlan(x);
if(siteMemory!=null){
siteMemory.addDevicePlan(x);
}
});
}
@@ -129,7 +131,9 @@ public class InitThread implements ApplicationRunner {
Long orgId = x.getOrgId();
Long siteId = x.getSiteId();
SiteMemory siteMemory = GlobalMemory.getSiteMemory(orgId, siteId);
siteMemory.addDevicePlanPrepare(x);
if(siteMemory!=null){
siteMemory.addDevicePlanPrepare(x);
}
});
}
@@ -141,7 +145,9 @@ public class InitThread implements ApplicationRunner {
Long orgId = x.getOrgId();
Long siteId = x.getSiteId();
SiteMemory siteMemory = GlobalMemory.getSiteMemory(orgId, siteId);
siteMemory.addDevicePlanExecute(x);
if(siteMemory!=null){
siteMemory.addDevicePlanExecute(x);
}
});
}