package com.inspect.metadata.mqtt.service.impl;

import com.inspect.metadata.mqtt.domain.HrNestBattery;
import com.inspect.metadata.mqtt.mapper.HrNestBatteryMapper;
import com.inspect.metadata.mqtt.service.IHrNestBatteryService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
@RequiredArgsConstructor
public class HrNestBatteryServiceImpl implements IHrNestBatteryService {
    private final HrNestBatteryMapper nestBatteryMapper;

    @Override
    public List<HrNestBattery> selectNestBatteryList(HrNestBattery nestBattery) {
        return nestBatteryMapper.selectNestBatteryList(nestBattery);
    }

    @Override
    public HrNestBattery selectNestBatteryByCode(String nestCode) {
        return nestBatteryMapper.selectNestBatteryByCode(nestCode);
    }
}
