| | |
| | | * 查询大气数据(模糊查询) |
| | | */ |
| | | public List<AirDataBo> listAirDataByKeyword(BaseConditionVO baseConditionVO, String keyword) { |
| | | Long clientId = SecurityUtils.getClientId(); |
| | | PageHelper.startPage(baseConditionVO.getPageNo(),baseConditionVO.getPageSize()); |
| | | List<Long> listAirId = baseMapper.listAirId(keyword,clientId); |
| | | if(CollUtil.isEmpty(listAirId)){ |
| | | return null; |
| | | PageHelper.startPage(baseConditionVO.getPageNo(), baseConditionVO.getPageSize()); |
| | | List<Long> listAirId; |
| | | if (SecurityUtils.getClientId() == null) { |
| | | listAirId = baseMapper.listAirId(keyword, null); |
| | | } else { |
| | | listAirId = baseMapper.listAirId(keyword, SecurityUtils.getUserId()); |
| | | } |
| | | if (CollUtil.isEmpty(listAirId)) { |
| | | return CollUtil.newArrayList(); |
| | | } |
| | | List<AirDataBo> airDataBos = baseMapper.listAirDataByIds(listAirId); |
| | | return airDataBos; |