package com.yeejoin.amos.boot.module.ugp.biz.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yeejoin.amos.boot.module.ugp.api.entity.WorkHistory;
import com.yeejoin.amos.boot.module.ugp.api.mapper.WorkHistoryMapper;
import com.yeejoin.amos.boot.module.ugp.api.service.IWorkHistoryService;
import com.yeejoin.amos.boot.module.ugp.api.dto.WorkHistoryDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;
import java.util.Map;

/**
 * 焊工工作履历表服务实现类
 *
 * @author system_generator
 * @date 2022-09-22
 */
@Service
public class WorkHistoryServiceImpl extends BaseService<WorkHistoryDto,WorkHistory,WorkHistoryMapper> implements IWorkHistoryService {

    @Autowired
    WorkHistoryMapper workHistoryMapper;
    /**
     * 分页查询
     */
    public Page<WorkHistoryDto> queryForWorkHistoryPage(Page<WorkHistoryDto> page)   {
        return this.queryForPage(page, null, false);
    }

    /**
     * 列表查询 示例
     */
    public List<WorkHistoryDto> queryForWorkHistoryList()   {
        return this.queryForList("" , false);
    }

    public IPage<WorkHistoryDto> pageList(Page<WorkHistoryDto> page, WorkHistoryDto tzUgpWorkHistory,String sequenceNbr){
        return workHistoryMapper.pageList(page, tzUgpWorkHistory,sequenceNbr);
    }
}