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