package com.contract.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.contract.entity.NodeInfo;
import com.contract.mapper.NodeInfoMapper;
import com.contract.service.NodeInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NodeInfoServiceImpl extends ServiceImpl<NodeInfoMapper, NodeInfo>
        implements NodeInfoService {

    @Override
    public List<NodeInfo> listEnabled() {
        return list(new LambdaQueryWrapper<NodeInfo>()
                .eq(NodeInfo::getStatus, 1));
    }
}
