| | |
| | | * 模糊查询 |
| | | */ |
| | | public List<WaterQualityEquipmentBo> listWaterQualityEquipmentByKeyword(BaseConditionVO baseConditionVO, String keyword) { |
| | | Long clientId = SecurityUtils.getClientId(); |
| | | PageHelper.startPage(baseConditionVO.getPageNo(), baseConditionVO.getPageSize()); |
| | | |
| | | List<WaterQualityEquipmentBo> waterQualityEquipmentBoList = waterQualityEquipmentMapper.listWaterQualityEquipmentByIds(keyword, clientId); |
| | | Long userId = SecurityUtils.getUserId(); |
| | | if (baseConditionVO != null) { |
| | | PageHelper.startPage(baseConditionVO.getPageNo(), baseConditionVO.getPageSize()); |
| | | } |
| | | List<WaterQualityEquipmentBo> waterQualityEquipmentBoList; |
| | | //为空是超管 |
| | | if (SecurityUtils.getClientId() == null) { |
| | | waterQualityEquipmentBoList = waterQualityEquipmentMapper.listWaterQualityEquipmentByIds(keyword, null); |
| | | } else { |
| | | waterQualityEquipmentBoList = waterQualityEquipmentMapper.listWaterQualityEquipmentByIds(keyword, userId); |
| | | } |
| | | return waterQualityEquipmentBoList; |
| | | } |
| | | |
| | |
| | | throw new BusinessException("找不到水质设备"); |
| | | } |
| | | //删除摄水质设备前需要先解绑 |
| | | poleBindingService.unBindPole(waterQualityEquipment.getWaterQualityEquipmentCode()); |
| | | poleBindingService.unBindPole(null, waterQualityEquipment.getWaterQualityEquipmentCode()); |
| | | |
| | | return removeById(Id); |
| | | } |