package com.sonic.lion.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sonic.lion.dao.MemberPrivDictDao;
import com.sonic.lion.domain.MemberPrivDict;
import com.sonic.lion.service.MemberPrivDictService;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * 会员特权字典表 服务实现类
 */
@Service
public class MemberPrivDictServiceImpl extends ServiceImpl<MemberPrivDictDao, MemberPrivDict> implements MemberPrivDictService {

    @Override
    public List<MemberPrivDict> getMemberPrivList() {
        return list(Wrappers.<MemberPrivDict>lambdaQuery().eq(MemberPrivDict::getIsDelete, 0).orderByAsc(MemberPrivDict::getSort));
    }
}