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