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.entity.DwAtuPlanInfo;
import net.northking.cctp.dw.db.service.UIDwAtuPlanExecutionService;
import net.northking.cctp.dw.dto.UIDwAtuPlanQueryDto;
import net.northking.cctp.dw.dto.atu.DwAtuPlanExecutionDataDto;
import net.northking.cctp.dw.dto.atu.DwOptionDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UIDwAtuPlanExecutionApiServiceImpl implements UIDwAtuPlanExecutionApiService{

    @Autowired
    private UIDwAtuPlanExecutionService uiDwAtuPlanExecutionService;

    @Override
    public Pagination<DwAtuPlanExecutionDataDto> pagingQuery(QueryByPage<UIDwAtuPlanQueryDto> queryByPage) {


        return this.uiDwAtuPlanExecutionService.pagingQuery(queryByPage);
    }

    @Override
    public List<DwOptionDto> getPlanList() {
        return this.uiDwAtuPlanExecutionService.getPlanList();
    }

    @Override
    public DwAtuPlanInfo getNameByPlanId(String planId) {
        return this.uiDwAtuPlanExecutionService.getNameByPlanId(planId);
    }

}
