package com.tofly.feesapi.bmgl.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tofly.feesapi.bmgl.entity.BmFffs;
import com.tofly.feesapi.bmgl.mapper.BmFffsMapper;
import com.tofly.feesapi.bmgl.service.IBmFffsService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("bmFffsService")
public class BmFffsServiceImpl extends ServiceImpl<BmFffsMapper, BmFffs> implements IBmFffsService {

    @Override
    public List<BmFffs> getAllBmFffs() {
        LambdaQueryWrapper<BmFffs> wrapper = Wrappers.<BmFffs>lambdaQuery().eq(BmFffs::getIsdisabled, "1");
        return baseMapper.selectList(wrapper);
    }
}
