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 = "past30Min", param2 = "past45Min")
    public int insertStat15MinCenter(String past30Min, String past45Min) {
        return this.mapper.insertStat15MinCenter(past30Min, past45Min);
    }
    @SqlOperation(type = SqlOperation.SqlType.INSERT, table = "STAT_15MIN_LOC", param = "past30Min", param2 = "past45Min")
    public int insertStat15MinLoc(String past30Min, String past45Min) {
        return this.mapper.insertStat15MinLoc(past30Min, past45Min);
    }

}
