1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-08-01 16:38:02 +08:00

Fix missed PbxHostRepository related class

This commit is contained in:
dengchao@xgtl 2020-04-16 14:07:03 +08:00
parent 1034f752b6
commit 4fb52a8f24

View File

@ -165,8 +165,8 @@ public class AgentServiceProxy {
StatusEvent statusEvent = statusEventRes.findById(agentService.getOwner());
if (statusEvent != null) {
if (StringUtils.isNotBlank(statusEvent.getHostid())) {
PbxHost pbxHost = pbxHostRes.findById(statusEvent.getHostid());
view.addObject("pbxHost", pbxHost);
pbxHostRes.findById(statusEvent.getHostid())
.ifPresent(it -> view.addObject("pbxHost", it));
}
view.addObject("statusEvent", statusEvent);
}