package com.patzn.lims.equip.service.impl;
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.equip.entity.LmsEquipRepairManageHistory;
import com.patzn.lims.equip.mapper.LmsEquipRepairManageHistoryMapper;
import com.patzn.lims.equip.service.ILmsEquipRepairManageHistoryService;
import com.patzn.lims.equip.vo.LmsEquipRepairManageHistoryVO;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * <p>
 * 维修核查表 服务实现类
 * </p>
 *
 * @author wewew
 * @since 2019-01-09
 */
@Service
public class LmsEquipRepairManageHistoryServiceImpl extends BaseServiceImpl<LmsEquipRepairManageHistoryMapper, LmsEquipRepairManageHistory> implements ILmsEquipRepairManageHistoryService {


    @Override
    public Page<LmsEquipRepairManageHistoryVO> page(Page<LmsEquipRepairManageHistoryVO> page, LmsEquipRepairManageHistoryVO lmsEquipRepairManageHistory) {
                return page.setRecords(baseMapper.selectHistory(page,lmsEquipRepairManageHistory));
    }


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