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

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

@Repository
@RequiredArgsConstructor
public class ProcessRepository {

    private final ProcessMapper mapper;

    @SqlOperation(type = SqlOperation.SqlType.UPDATE, table = "PROCESS_STATE@UTISDB")
    public int updateProcessState(ProcessStateDto obj) {
        return this.mapper.updateProcessState(obj);
    }

}
