package com.its.vds.stat.server.dao.repository;

import com.its.vds.stat.server.annotation.SqlOperation;
import com.its.vds.stat.server.dao.mapper.UnitSystMapper;
import com.its.vds.stat.server.dto.UnitSystSttsDto;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;

@Repository
@RequiredArgsConstructor
public class UnitSystRepository {

    private final UnitSystMapper mapper;

    @SqlOperation(type = SqlOperation.SqlType.UPDATE, table = "TB_UNIT_SYST")
    public int updateUnitSystStts(UnitSystSttsDto obj) {
        return this.mapper.updateUnitSystStts(obj);
    }

    @SqlOperation(type = SqlOperation.SqlType.INSERT, table = "TB_UNIT_SYST_HS")
    public int insertUnitSystSttsHs(UnitSystSttsDto obj) {
        return this.mapper.insertUnitSystSttsHs(obj);
    }
}
