|
|
|
@ -29,6 +29,7 @@ import com.shxy.xymanager_common.vo.*;
|
|
|
|
|
import com.shxy.xymanager_dao.dao.*;
|
|
|
|
|
import com.shxy.xymanager_service.service.CacheService;
|
|
|
|
|
import com.shxy.xymanager_service.service.TerminalService;
|
|
|
|
|
import com.shxy.xymanager_service.service.TowerService;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
@ -97,6 +98,9 @@ public class TerminalServiceImpl implements TerminalService {
|
|
|
|
|
@Autowired
|
|
|
|
|
TerminalBasicInfoHistoryDao terminalBasicInfoHistoryDao;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
TowerService towerService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取所有设备列表
|
|
|
|
|
*
|
|
|
|
@ -929,5 +933,24 @@ public class TerminalServiceImpl implements TerminalService {
|
|
|
|
|
return Asserts.success(dataTable);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<Terminals> getByLineAndTower(Integer lineId, Integer towerId) {
|
|
|
|
|
List<Integer> towerIdList = new ArrayList<>();
|
|
|
|
|
if (lineId != null){
|
|
|
|
|
List<Towers> towersList = towerService.getByLine(lineId);
|
|
|
|
|
for(Towers tower: towersList){
|
|
|
|
|
towerIdList.add(tower.getId());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (towerId != null){
|
|
|
|
|
towerIdList.add(towerId);
|
|
|
|
|
}
|
|
|
|
|
TerminalsExample example = new TerminalsExample();
|
|
|
|
|
TerminalsExample.Criteria criteria = example.createCriteria();
|
|
|
|
|
criteria.andTowerIdIn(towerIdList);
|
|
|
|
|
List<Terminals> result =terminalsDao.selectByExample(example);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|