package com.yeejoin.amos.boot.module.tzs.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.tzs.api.dto.TzsJgBasicInfoDto;
import com.yeejoin.amos.boot.module.tzs.api.dto.TzsJgBasicOutterDto;
import com.yeejoin.amos.boot.module.tzs.api.entity.PageParam;
import com.yeejoin.amos.boot.module.tzs.api.mapper.TzsJgOutterMapper;
import com.yeejoin.amos.boot.module.tzs.api.service.ITzsJgConstructionInfoService;
import com.yeejoin.amos.boot.module.tzs.api.service.ITzsJgDesignInfoService;
import com.yeejoin.amos.boot.module.tzs.api.service.ITzsJgElevatorTechInfoService;
import com.yeejoin.amos.boot.module.tzs.api.service.ITzsJgEnclosureInfoService;
import com.yeejoin.amos.boot.module.tzs.api.service.ITzsJgFileService;
import com.yeejoin.amos.boot.module.tzs.api.service.ITzsJgInspectionInfoService;
import com.yeejoin.amos.boot.module.tzs.api.service.ITzsJgMaintenanceInfoService;
import com.yeejoin.amos.boot.module.tzs.api.service.ITzsJgOtherInfoService;
import com.yeejoin.amos.boot.module.tzs.api.service.ITzsJgOutterService;
import com.yeejoin.amos.boot.module.tzs.api.service.ITzsJgProduceInfoService;
import com.yeejoin.amos.boot.module.tzs.api.service.ITzsJgRegistrationInfoService;
import com.yeejoin.amos.boot.module.tzs.api.service.ITzsJgSuperviseInfoService;
import com.yeejoin.amos.boot.module.tzs.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);
	}
}
