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.UticStatParamMapper;
import com.utic.center.utic.stat.server.dto.CodeValueDto;
import com.utic.center.utic.stat.server.dto.StatTimeDto;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@RequiredArgsConstructor
public class UticStatParamRepository {

    private final UticStatParamMapper mapper;

    @SqlOperation(type = SqlOperation.SqlType.SELECT, table = "DUAL")
    public StatTimeDto findStatTime() {
        return this.mapper.findStatTime();
    }

    @SqlOperation(type = SqlOperation.SqlType.SELECT, table = "CODEDEFINE")
    public List<CodeValueDto> findAllCodeValue() {
        return this.mapper.findAllCodeValue();
    }

}
