代码优化
This commit is contained in:
@@ -186,6 +186,7 @@ public class EventDetailServiceImpl extends ServiceImpl<EventDetailMapper, RmpEv
|
||||
private void pushEvent(RmpEventDetailPO po) {
|
||||
//根据监测点获取部门
|
||||
DeptLine deptLine = deptLineFeignClient.getLineByLineIds(po.getMeasurementPointId()).getData();
|
||||
if(Objects.nonNull(deptLine)){
|
||||
String id = deptLine.getId();
|
||||
Set<String> dept = new HashSet<>();
|
||||
dept.add(id);
|
||||
@@ -210,6 +211,7 @@ public class EventDetailServiceImpl extends ServiceImpl<EventDetailMapper, RmpEv
|
||||
vo.setSubstation(lineInfoVOList.get(0).getSubName());
|
||||
publisher.send("/sendEvent", PubUtils.obj2json(vo), 1, false);
|
||||
}
|
||||
}
|
||||
|
||||
public String eventTypeReflection(Integer eventType){
|
||||
String result ="";
|
||||
|
||||
Reference in New Issue
Block a user