package org.matrix.database.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.matrix.database.entity.TestJob;
import org.matrix.database.mapper.TestJobMapper;
import org.matrix.database.service.ITestJobService;
import org.matrix.database.vo.ExecutionHistoryVo;
import org.matrix.database.vo.TestJobVo;
import org.springframework.stereotype.Service;

/**
 * @author mry
 */
@Service
public class TestJobServiceImpl extends ServiceImpl<TestJobMapper, TestJob> implements ITestJobService {

    @Override
    public IPage<TestJobVo> pageTestJob(Long projectId,String name, int pageSize, int pageNum) {
        Page<TestJob> page = new Page<>(pageNum, pageSize);
        return baseMapper.pageTestJob(page,projectId,name);
    }
}
