fix: 增加活动装置异常报错

dev
huangfeng 1 year ago
parent 6c2aaec49c
commit a19dff9596

@ -71,6 +71,8 @@ public class ActivitiesServiceImpl implements ActivitiesService {
Terminals t = terminalExtService.getByCmdid(term.getCmdid());
if (t != null) {
record.setTermId(t.getId());
} else {
throw new Exception(term.getCmdid() + "装置不存在");
}
} else {
throw new Exception("装置列表信息异常");
@ -110,6 +112,8 @@ public class ActivitiesServiceImpl implements ActivitiesService {
Terminals t = terminalExtService.getByCmdid(term.getCmdid());
if (t != null) {
record.setTermId(t.getId());
} else {
throw new Exception(term.getCmdid() + "装置不存在");
}
} else {
throw new Exception("装置列表信息异常");

Loading…
Cancel
Save