package yangtz.cs.liu.campus.service.impl.schoolEquipment;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import yangtz.cs.liu.campus.domain.schoolEquipment.SchoolInStock;
import yangtz.cs.liu.campus.mapper.schoolEquipment.InStockMapper;
import yangtz.cs.liu.campus.service.schoolEquipment.IInStockService;
import yangtz.cs.liu.campus.vo.schoolEquipment.SchoolInStockVo;

import java.util.List;

@Service
public class InStockServiceImpl extends ServiceImpl<InStockMapper, SchoolInStock> implements IInStockService {

    @Autowired
    private InStockMapper inStockMapper;

    /**
     * 查看设备入库列表
     * @param schoolInStockVo
     * @return
     */
    @Override
    @DataScope(userAlias = "u")
    public List<SchoolInStockVo> selectSchoolInStockVoList(SchoolInStockVo schoolInStockVo) {
        return inStockMapper.selectSchoolInStockVoList(schoolInStockVo);
    }

    /**
     * 查看设备入库详细信息
     * @param id
     * @return
     */
    @Override
    public SchoolInStockVo selectSchoolInStockVoById(Long id) {
        return inStockMapper.selectSchoolInStockVoById(id);
    }


}
