package com.ruoyi.cai.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.cai.domain.MemberSkill;
import com.ruoyi.cai.mapper.MemberSkillMapper;
import com.ruoyi.cai.service.MemberSkillService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 会员技能Service业务层处理
 *
 * @author 77
 * @date 2023-12-30
 */
@Service
public class MemberSkillServiceImpl extends ServiceImpl<MemberSkillMapper, MemberSkill> implements MemberSkillService {
    @Override
    public List<MemberSkill> listByType(Integer type) {
        return this.list(Wrappers.lambdaQuery(MemberSkill.class)
                .eq(MemberSkill::getStatus,0)
                .eq(MemberSkill::getMemberType,type));
    }
}
