package com.arms.api.report.rolling3m.service;

import com.arms.api.report.rolling3m.assignee.model.dto.Rolling3mDTO;
import com.arms.api.report.rolling3m.model.vo.PdServiceVO;
import com.arms.api.serverinfo.msa_communicate.BackendCoreReportPerformanceService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class PdServiceAndVersionServiceImpl implements PdServiceAndVersionService {

    private final BackendCoreReportPerformanceService backendCoreReportPerformanceService;

    @Override
    public PdServiceVO selectPdServiceAndVersion(Rolling3mDTO rolling3mDTO) {
        String reqAddTableName = "T_ARMS_REQADD_" + rolling3mDTO.getPdServiceId();
        return backendCoreReportPerformanceService.selectPdServiceVersionName(reqAddTableName, rolling3mDTO);
    }

}
