1.pms微调
This commit is contained in:
@@ -265,4 +265,10 @@ public class Monitor extends BaseEntity {
|
|||||||
* 牵引站id
|
* 牵引站id
|
||||||
*/
|
*/
|
||||||
private String tractionId;
|
private String tractionId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 装置的ip
|
||||||
|
*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String devIp;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -232,8 +232,11 @@ public class MonitorServiceImpl extends ServiceImpl<MonitorMapper, Monitor> impl
|
|||||||
temList = temList.stream().peek(item -> {
|
temList = temList.stream().peek(item -> {
|
||||||
if (mapTerminal.containsKey(item.getTerminalId())) {
|
if (mapTerminal.containsKey(item.getTerminalId())) {
|
||||||
item.setTerminalCode(mapTerminal.get(item.getTerminalId()).getTerminalCode());
|
item.setTerminalCode(mapTerminal.get(item.getTerminalId()).getTerminalCode());
|
||||||
|
item.setDevIp(mapTerminal.get(item.getTerminalId()).getIp());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (mapBus.containsKey(item.getLineId())) {
|
if (mapBus.containsKey(item.getLineId())) {
|
||||||
item.setBusId(mapBus.get(item.getLineId()).getMidBusId());
|
item.setBusId(mapBus.get(item.getLineId()).getMidBusId());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user