Commit ba7a5975 authored by 王晓倩's avatar 王晓倩

探测器分页列表处理设备状态

parent 3d72ab05
......@@ -72,7 +72,15 @@ public class TDetectorInfoServiceImpl implements ITDetectorInfoService
@Override
public PageInfo<TDetectorInfo> selectTDetectorInfoPage(TDetectorInfo tDetectorInfo)
{
return new PageInfo(tDetectorInfoMapper.selectTDetectorInfoList(tDetectorInfo));
List<TDetectorInfo> list = tDetectorInfoMapper.selectTDetectorInfoList(tDetectorInfo);
for(TDetectorInfo detector : list){
if("0".equals(detector.getDetectorStatus())){
detector.setDetectorStatus("正常");
} else {
detector.setDetectorStatus("离线");
}
}
return new PageInfo(list);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment