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

import com.patzn.lims.drug.entity.TestValueExtend;
import com.patzn.lims.drug.mapper.TestValueExtendMapper;
import com.patzn.lims.drug.service.ITestValueExtendService;
import com.patzn.lims.core.web.BaseServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 检测值扩展表 服务实现类
 * </p>
 *
 * @author wwd
 * @since 2020-05-19
 */
@Service
public class TestValueExtendServiceImpl extends BaseServiceImpl<TestValueExtendMapper, TestValueExtend> implements ITestValueExtendService {

    @Override
    public Page<TestValueExtend> page(Page<TestValueExtend> page, TestValueExtend testValueExtend) {
        QueryWrapper<TestValueExtend> wrapper = Wrappers.<TestValueExtend>query(testValueExtend);
        wrapper.orderByAsc("ctime");
        return this.page(page, wrapper);
    }
}
