package cn.axzo.workflow.core.service.impl;

import cn.axzo.workflow.core.repository.entity.ExtAxProcessSign;
import cn.axzo.workflow.core.repository.mapper.ExtAxProcessSignMapper;
import cn.axzo.workflow.core.service.ExtAxProcessSignService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 流程签署业务信息记录
 *
 * @author wangli
 * @since 2025-04-02 10:06
 */
@Service
@Slf4j
public class ExtAxProcessSignServiceImpl extends ServiceImpl<ExtAxProcessSignMapper, ExtAxProcessSign> implements ExtAxProcessSignService {

    @Resource
    private ExtAxProcessSignMapper extAxProcessSignMapper;

    @Override
    public ExtAxProcessSign findByProcessInstanceId(String processInstanceId) {
        return extAxProcessSignMapper.selectOne(ExtAxProcessSign::getProcessInstanceId, processInstanceId);
    }
}
