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

import com.utic.center.common.annotation.SqlOperation;
import com.utic.center.utic.stat.server.dao.mapper.UticStat15MinStatMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;

@Repository
@RequiredArgsConstructor
public class UticStat15MinStatRepository {

    private final UticStat15MinStatMapper mapper;

    @SqlOperation(type = SqlOperation.SqlType.INSERT, table = "STAT_15MIN_CENTER_", param = "yyMm", param2 = "past30Min")
    public int insertStat15MinCenter(String yyMm, String past30Min, String past45Min) {
        return this.mapper.insertStat15MinCenter(yyMm, past30Min, past45Min);
    }

    @SqlOperation(type = SqlOperation.SqlType.INSERT, table = "STAT_15MIN_LOC_", param = "yyMm", param2 = "past30Min")
    public int insertStat15MinLoc(String yyMm, String past30Min, String past45Min) {
        return this.mapper.insertStat15MinLoc(yyMm, past30Min, past45Min);
    }

}
