package com.fdkankan.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.fdkankan.user.entity.Manager;
import com.fdkankan.user.mapper.IManagerMapper;
import com.fdkankan.user.service.IManagerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 管理员表 服务实现类
 * </p>
 *
 * @author 
 * @since 2021-12-24
 */
@Service
public class ManagerServiceImpl extends ServiceImpl<IManagerMapper, Manager> implements IManagerService {

    @Override
    public List<Manager> getByFrameworkId(Long parentId) {
        QueryWrapper<Manager> queryWrapper = new QueryWrapper<>();
        queryWrapper.lambda().eq(Manager::getAgentFrameworkId,parentId);
        return  this.list(queryWrapper);
    }
}
