|
|
@ -128,7 +128,10 @@ public class TerminalExtServiceImpl implements TerminalExtService {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public List<View_Dy_Line_Tower_Terminals> getExtTerminalList(TerminalSelectVo vo) {
|
|
|
|
public List<View_Dy_Line_Tower_Terminals> getExtTerminalList(TerminalSelectVo vo) {
|
|
|
|
|
|
|
|
Integer online = vo.getIsonline();
|
|
|
|
|
|
|
|
vo.setIsonline(null);
|
|
|
|
PageInfo<View_Dy_Line_Tower_Terminals> page = this.getTerminalList(vo);
|
|
|
|
PageInfo<View_Dy_Line_Tower_Terminals> page = this.getTerminalList(vo);
|
|
|
|
|
|
|
|
vo.setIsonline(online);
|
|
|
|
List<View_Dy_Line_Tower_Terminals> result = this.fillReport(page.getList(), vo);
|
|
|
|
List<View_Dy_Line_Tower_Terminals> result = this.fillReport(page.getList(), vo);
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -138,7 +141,12 @@ public class TerminalExtServiceImpl implements TerminalExtService {
|
|
|
|
List<View_Dy_Line_Tower_Terminals> result = new ArrayList<>();
|
|
|
|
List<View_Dy_Line_Tower_Terminals> result = new ArrayList<>();
|
|
|
|
for (View_Dy_Line_Tower_Terminals item : list) {
|
|
|
|
for (View_Dy_Line_Tower_Terminals item : list) {
|
|
|
|
MntnStatus status = statusMapper.selectByPrimaryKey(item.getId());
|
|
|
|
MntnStatus status = statusMapper.selectByPrimaryKey(item.getId());
|
|
|
|
item.setMntnStatus(status);
|
|
|
|
if (status != null) {
|
|
|
|
|
|
|
|
item.setMntnStatus(status);
|
|
|
|
|
|
|
|
if (status.getRawReportTime() != null) {
|
|
|
|
|
|
|
|
item.setLastHeartbeat(BigInteger.valueOf(status.getRawReportTime()));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
if (vo.needMatch()) {
|
|
|
|
if (vo.needMatch()) {
|
|
|
|
if (status != null) {
|
|
|
|
if (status != null) {
|
|
|
|
if (status.match(vo)) {
|
|
|
|
if (status.match(vo)) {
|
|
|
|