package com.utic.center.utic.traf.server.dao.repository.utic;

import com.utic.center.common.annotation.SqlOperation;
import com.utic.center.utic.traf.server.dao.mapper.utic.DwdbLinkPatternMapper;
import com.utic.center.utic.traf.server.dto.LinkPtrnVal;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@RequiredArgsConstructor
public class DwdbLinkPatternRepository {

    private final DwdbLinkPatternMapper mapper;

    @SqlOperation(type = SqlOperation.SqlType.SELECT, table = "tableName", param = "linkLevel", param2 = "ptrnTime")
    public List<LinkPtrnVal> findLinkPattern15Min(String tableName, String ptrnTime, String logDate, String linkLevel) {
        return this.mapper.findLinkPattern15Min(tableName, ptrnTime, logDate, linkLevel);
    }
}
