| | |
| | | import cn.iocoder.yudao.module.erp.service.purchase.ErpPurchasePlanService; |
| | | import jakarta.annotation.Resource; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | /** |
| | | * 采购计划审批状态监听器 |
| | | * 采购计划审批状态监听器(Legacy,已停用) |
| | | * |
| | | * 监听 BPM 流程实例状态变更事件,更新采购计划的审批状态 |
| | | * 采购计划审批已改为「审批配置」轻量级状态机,由 |
| | | * {@link ErpPurchasePlanService#submitPurchasePlan(Long)} / {@link ErpPurchasePlanService#auditPurchasePlan(Long, Boolean, String)} |
| | | * 直接驱动状态,不再依赖 BPM。 |
| | | * |
| | | * 保留本类仅作历史参考;不再注册为 Spring Bean,避免旧的 BPM 流程实例触发时 |
| | | * 与新审批路径重复更新/重复生成采购申请。 |
| | | * |
| | | * @author xiaoyi |
| | | */ |
| | | @Component |
| | | @Slf4j |
| | | public class ErpPurchasePlanStatusListener extends cn.iocoder.yudao.module.bpm.api.event.BpmProcessInstanceStatusEventListener { |
| | | |