package com.ichangzuo.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ichangzuo.system.mapper.StyleRecommendMapper;
import com.ichangzuo.system.model.entity.StyleRecommend;
import org.springframework.stereotype.Service;

@Service
public class StyleRecommendServiceImpl extends ServiceImpl<StyleRecommendMapper, StyleRecommend> {
    public StyleRecommend selectByStyleId(Integer sid){
        return getOne(new LambdaQueryWrapper<StyleRecommend>().eq(StyleRecommend::getStyleID, sid));
    }
}
