package com.fdkankan.scene.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.fdkankan.scene.entity.SceneExt;
import com.fdkankan.scene.mapper.ISceneExtMapper;
import com.fdkankan.scene.service.ISceneExtService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 场景表 服务实现类
 * </p>
 *
 * @author dengsixing
 * @since 2021-12-30
 */
@Service
public class SceneExtServiceImpl extends ServiceImpl<ISceneExtMapper, SceneExt> implements ISceneExtService {

    @Override
    public SceneExt getBySceneId(long sceneId) {
        return this.getOne(new LambdaQueryWrapper<SceneExt>().eq(SceneExt::getSceneId, sceneId));
    }
}
