package net.northking.cctp.dw.api.service;

import net.northking.cctp.common.db.Pagination;
import net.northking.cctp.common.http.QueryByPage;
import net.northking.cctp.dw.db.service.UIDwAtuStatisticsService;
import net.northking.cctp.dw.dto.UIDwAtuScriptInfoQueryDto;
import net.northking.cctp.dw.dto.ValidScriptDTO;
import net.northking.cctp.dw.dto.atu.DwAtuScriptInfoDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UIDwAtuStatisticsApiServiceImpl implements UIDwAtuStatisticsApiService{
    @Autowired
    private UIDwAtuStatisticsService uiDwAtuStatisticsService;
    @Override
    public Pagination<DwAtuScriptInfoDto> pagingQuery(QueryByPage<UIDwAtuScriptInfoQueryDto> queryByPage) {
        return this.uiDwAtuStatisticsService.pageQuery(queryByPage);
    }

    /**
     * ATS获取UI自动化脚本编写明细信息
     *
     * @param startTime 开始时间
     * @param endTime 结束时间
     * @return UI自动化脚本编写明细信息
     */
    @Override
    public List<ValidScriptDTO> queryScriptDetail(String startTime, String endTime) {
        return this.uiDwAtuStatisticsService.queryScriptDetail(startTime, endTime);
    }
}
