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

import com.utic.center.common.annotation.SqlOperation;
import com.utic.center.utic.traf.server.dao.mapper.dwdb.LinkPatternMapper;
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 LinkPatternRepository {

    private final LinkPatternMapper 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);
    }
}
