package com.sy.coinage.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sy.coinage.core.vo.OptVO;
import com.sy.coinage.sys.dao.TenantDao;
import com.sy.coinage.sys.model.*;
import com.sy.coinage.sys.service.ITenantService;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 * 租户ServiceImpl
 */
@Service
public class TenantServiceImpl extends ServiceImpl<TenantDao, Tenant> implements ITenantService {

    @Override
    public List<OptVO> opt() {
        LambdaQueryWrapper<Tenant> queryWrapper = new LambdaQueryWrapper<>();
        List<OptVO> resp = this.baseMapper.queryOptList(queryWrapper);
        return resp;
    }
    // @Override
    // public IPage<TenantVO> queryPageList(TenantListReq req) {
    // QueryWrapper<TenantVO> queryWrapper = new QueryWrapper<>();
    // if (null != req.getUserId() && req.getUserId() > 0) {
    // queryWrapper.eq("user_id", userId);
    // }
    // if (StringUtils.isNotBlank(req.getRealName())) {
    // queryWrapper.like("sys_user.real_name", req.getRealName());
    // }
    // Page<TenantVO> page = new Page<>(req.getPage(), req.getRows());
    // IPage<TenantVO> resp = this.baseMapper.queryPageList(page, queryWrapper);
    // return resp;
    // }

}
