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.DwdbTrafficMapper;
import com.utic.center.utic.traf.server.dto.LinkTrafCenterDto;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;

@Repository
@RequiredArgsConstructor
public class DwdbTrafficRepository {
    
    private final DwdbTrafficMapper mapper;

    @SqlOperation(type = SqlOperation.SqlType.INSERT, table = "TRAFFIC_CENTER_MM", param = "yyMm")
    public int insertTrafficCenterHist(String yyMm, LinkTrafCenterDto obj) {
        return this.mapper.insertTrafficCenterHist(yyMm, obj);
    }

}
