/**
 * Copyright 2019 DH
 * All right reserved.
 * 项目名称: 运维系统
 * 创建日期:2022/8/23
 */
package org.springblade.modules.business.equipment.inspection.base.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springblade.modules.business.equipment.inspection.base.dto.EquipmentInspectionInfoDTO;
import org.springblade.modules.business.equipment.inspection.base.entity.EquipmentInspectionInfoEntity;
import org.springblade.modules.business.equipment.inspection.base.mapper.EquipmentInspectionMapper;
import org.springblade.modules.business.equipment.inspection.base.service.IEquipmentInspectionService;
import org.springblade.modules.business.equipment.inspection.base.vo.EquipmentInspectionInfoVO;
import org.springblade.modules.business.equipment.inspection.base.vo.EquipmentInspectionStatisticsVO;
import org.springblade.modules.business.equipment.inspection.report.vo.EquipmentInspectionReportVO;
import org.springframework.stereotype.Service;

import java.util.List;

/***
 * Date:2022/8/23
 * Title:文件所属模块（必须填写）
 * Description：对本文件的详细描述，原则上不能少于30字
 * @author dylan
 * @version 1.0
 * Remark：认为有必要的其他信息
 */
@Service
public class EquipmentInspectionServiceImpl extends BaseServiceImpl<EquipmentInspectionMapper, EquipmentInspectionInfoEntity> implements IEquipmentInspectionService {


	@Override
	public List<EquipmentInspectionStatisticsVO> inspectionReportCount(EquipmentInspectionInfoDTO inspectionInfoDTO) {
		return baseMapper.inspectionReportCount(inspectionInfoDTO);
	}

	@Override
	public Long inspectionCount(EquipmentInspectionInfoDTO inspectionInfoDTO) {
		return baseMapper.inspectionCount(inspectionInfoDTO);
	}


	@Override
	public IPage<EquipmentInspectionInfoVO> selectPage(IPage<EquipmentInspectionInfoVO> page, EquipmentInspectionInfoDTO inspectionInfoDTO) {
		return page.setRecords(baseMapper.selectPage(page, inspectionInfoDTO));
	}

	@Override
	public IPage<EquipmentInspectionInfoVO> selectRtuPage(IPage<EquipmentInspectionInfoVO> page, EquipmentInspectionInfoDTO inspectionInfoDTO) {
		return page.setRecords(baseMapper.selectRtuPage(page, inspectionInfoDTO));
	}

	@Override
	public IPage<EquipmentInspectionInfoVO> selectUnfinishedInspectionEquipmentPage(IPage<EquipmentInspectionInfoVO> page, EquipmentInspectionInfoDTO inspectionInfoDTO) {
		return page.setRecords(baseMapper.selectUnfinishedInspectionEquipmentPage(page, inspectionInfoDTO));
	}

	@Override
	public List<EquipmentInspectionInfoVO> selectUnfinishedInspectionEquipmentList(EquipmentInspectionInfoDTO inspectionInfoDTO) {
		return baseMapper.selectUnfinishedInspectionEquipmentList(inspectionInfoDTO);
	}

}
