package com.njcn.product.system.theme.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.njcn.product.system.theme.mapper.ThemeMapper;
import com.njcn.product.system.theme.pojo.po.Theme;
import com.njcn.product.system.theme.service.IThemeService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;
import sun.misc.BASE64Encoder;

import java.io.IOException;
import java.util.List;
import java.util.Objects;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hongawen
 * @since 2021-12-13
 */
@Service
@RequiredArgsConstructor
public class ThemeServiceImpl extends ServiceImpl<ThemeMapper, Theme> implements IThemeService {


    @Override
    public Theme getTheme() {
        return this.lambdaQuery()
                .eq(Theme::getActive,1).one();
    }



}
