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

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.stereotype.Service;

import com.sy.coinage.workshop.dao.WorkshopEntryDetailDao;
import com.sy.coinage.workshop.model.*;
import com.sy.coinage.workshop.service.IWorkshopEntryDetailService;

import java.util.List;

/**
 * -ServiceImpl
 */
@Service
public class WorkshopEntryDetailServiceImpl extends ServiceImpl<WorkshopEntryDetailDao, WorkshopEntryDetail>
        implements IWorkshopEntryDetailService {
    @Override
    public List<WorkshopEntryDetail> querylist(QueryWrapper<WorkshopEntryDetail> queryWrapper) {
        return this.baseMapper.querylist(queryWrapper);
    }

    // @Override
    // public IPage<WorkshopEntryDetailVO> queryPageList(WorkshopEntryDetailListReq req) {
    // QueryWrapper<WorkshopEntryDetailVO> 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<WorkshopEntryDetailVO> page = new Page<>(req.getPage(), req.getRows());
    // IPage<WorkshopEntryDetailVO> resp = this.baseMapper.queryPageList(page, queryWrapper);
    // return resp;
    // }

}
