package org.jeecg.modules.flowable.apithird.business.service.impl;

import org.jeecg.modules.flowable.apithird.business.entity.FlowForm;
import org.jeecg.modules.flowable.apithird.business.entity.SysDeployForm;
import org.jeecg.modules.flowable.apithird.business.mapper.SysDeployFormMapper;
import org.jeecg.modules.flowable.apithird.business.service.ISysDeployFormService;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 流程实例关联表单对象
 * @Author: jeecg-boot
 * @Date:   2025-09-15
 * @Version: V1.0
 */
@Service
public class SysDeployFormServiceImpl extends ServiceImpl<SysDeployFormMapper, SysDeployForm> implements ISysDeployFormService {

    @Autowired
    private SysDeployFormMapper sysDeployFormMapper;
    /**
     * 查询流程挂着的表单
     *
     * @param deployId
     * @return
     */
    @Override
    public FlowForm selectSysDeployFormByDeployId(String deployId) {
        return sysDeployFormMapper.selectSysDeployFormByDeployId(deployId);
    }

    @Override
    public FlowForm selectSysFormByDeployId(String deployId) {
        return sysDeployFormMapper.selectSysFormByDeployId(deployId);
    }

    @Override
    public int updateBisTabBpmStatus( FlowForm flowForm) {
        return sysDeployFormMapper.updateBisTabBpmStatus(flowForm);
    }



}
