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

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.cylinder.api.dto.TzsJgBasicInfoDto;
import com.yeejoin.amos.boot.module.cylinder.api.dto.TzsJgBasicOutterDto;
import com.yeejoin.amos.boot.module.cylinder.api.entity.PageParam;
import com.yeejoin.amos.boot.module.cylinder.api.mapper.TzsJgOutterMapper;
import com.yeejoin.amos.boot.module.cylinder.api.service.ITzsJgConstructionInfoService;
import com.yeejoin.amos.boot.module.cylinder.api.service.ITzsJgDesignInfoService;
import com.yeejoin.amos.boot.module.cylinder.api.service.ITzsJgElevatorTechInfoService;
import com.yeejoin.amos.boot.module.cylinder.api.service.ITzsJgEnclosureInfoService;
import com.yeejoin.amos.boot.module.cylinder.api.service.ITzsJgFileService;
import com.yeejoin.amos.boot.module.cylinder.api.service.ITzsJgInspectionInfoService;
import com.yeejoin.amos.boot.module.cylinder.api.service.ITzsJgMaintenanceInfoService;
import com.yeejoin.amos.boot.module.cylinder.api.service.ITzsJgOtherInfoService;
import com.yeejoin.amos.boot.module.cylinder.api.service.ITzsJgOutterService;
import com.yeejoin.amos.boot.module.cylinder.api.service.ITzsJgProduceInfoService;
import com.yeejoin.amos.boot.module.cylinder.api.service.ITzsJgRegistrationInfoService;
import com.yeejoin.amos.boot.module.cylinder.api.service.ITzsJgSuperviseInfoService;
import com.yeejoin.amos.boot.module.cylinder.api.service.ITzsJgUseInfoService;

@Service
public class TzsJgOutterServiceImpl implements ITzsJgOutterService {

	@Autowired
	TzsJgOutterMapper tzsJgOutterMapper;

	@Autowired
	ITzsJgSuperviseInfoService iTzsJgSuperviseInfoService;

	@Autowired
	ITzsJgDesignInfoService iTzsJgDesignInfoService;

	@Autowired
	ITzsJgProduceInfoService iTzsJgProduceInfoService;

	@Autowired
	ITzsJgRegistrationInfoService iTzsJgRegistrationInfoService;

	@Autowired
	ITzsJgUseInfoService iTzsJgUseInfoService;

	@Autowired
	ITzsJgConstructionInfoService iTzsJgConstructionInfoService;

	@Autowired
	ITzsJgMaintenanceInfoService iTzsJgMaintenanceInfoService;

	@Autowired
	ITzsJgInspectionInfoService iTzsJgInspectionInfoService;

	@Autowired
	ITzsJgElevatorTechInfoService iTzsJgElevatorTechInfoService;

	@Autowired
	ITzsJgOtherInfoService iTzsJgOtherInfoService;

	@Autowired
	ITzsJgFileService iTzsJgFileService;

	@Autowired
	ITzsJgEnclosureInfoService iTzsJgEnclosureInfoService;

	/**
	 * 文件服务器地址
	 */
	@Value("${fileserver.domain}")
	String fileServerUrl;

	@Override
	public IPage<TzsJgBasicOutterDto> page(PageParam pageParam, Date startTime,Date endTime) {
		Page<TzsJgBasicOutterDto> page = new Page<>(pageParam.getCurrent(), pageParam.getSize());
		return tzsJgOutterMapper.page(page,startTime, endTime);
	}
}
