package com.fdkankan.ucenter.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.fdkankan.ucenter.entity.SceneColdStorage;
import com.fdkankan.ucenter.mapper.ISceneColdStorageMapper;
import com.fdkankan.ucenter.service.ISceneColdStorageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 场景封存状态表 服务实现类
 * </p>
 *
 * @author 
 * @since 2024-09-03
 */
@Service
public class SceneColdStorageServiceImpl extends ServiceImpl<ISceneColdStorageMapper, SceneColdStorage> implements ISceneColdStorageService {

    @Override
    public SceneColdStorage getByNum(String num) {
        LambdaQueryWrapper<SceneColdStorage> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(SceneColdStorage::getNum,num);
        return this.getOne(wrapper);
    }
}
