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

import com.utic.center.common.annotation.SqlOperation;
import com.utic.center.common.dto.ProcessStateDto;
import com.utic.center.utic.traf.server.dao.mapper.utic.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")
    public int updateProcessState(ProcessStateDto obj) {
        return this.mapper.updateProcessState(obj);
    }

}
