package com.patzn.lims.res.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.patzn.lims.core.web.BaseServiceImpl;
import com.patzn.lims.res.entity.LmsOptionResult;
import com.patzn.lims.res.mapper.LmsOptionResultMapper;
import com.patzn.lims.res.service.ILmsOptionResultService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 问题结果表 服务实现类
 * </p>
 *
 * @author patzn
 * @since 2018-05-24
 */
@Service
public class LmsOptionResultServiceImpl extends BaseServiceImpl<LmsOptionResultMapper, LmsOptionResult> implements ILmsOptionResultService {


    @Override
    public Page<LmsOptionResult> page(Page<LmsOptionResult> page, LmsOptionResult lmsOptionResult) {
        QueryWrapper wrapper = Wrappers.query(lmsOptionResult);

        return this.page(page, wrapper);
    }


    @Override
    public List<LmsOptionResult> list(LmsOptionResult lmsOptionResult) {
        return this.list(Wrappers.query(lmsOptionResult));
    }
}
