仿钉钉流程设计- 前端重构调整, 新增多人审批方式

This commit is contained in:
jason
2024-04-27 09:30:14 +08:00
parent cb5cfd31f0
commit e4fbc11dc4
4 changed files with 105 additions and 8 deletions

View File

@ -0,0 +1,33 @@
package cn.iocoder.yudao.module.bpm.enums.definition;
import cn.hutool.core.util.ArrayUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* BPM 审批方式的枚举
*
* @author jason
*/
@Getter
@AllArgsConstructor
public enum BpmApproveMethodEnum {
SINGLE_PERSON_APPROVE(1, "单人审批"),
ALL_APPROVE(2, "多人会签(需所有审批人同意)"),
ANY_OF_APPROVE(3, "多人或签(一名审批人同意即可)"),
SEQUENTIAL_APPROVE(4, "依次审批");
/**
* 审批方式
*/
private final Integer method;
/**
* 名字
*/
private final String name;
public static BpmApproveMethodEnum valueOf(Integer method) {
return ArrayUtil.firstMatch(item -> item.getMethod().equals(method), values());
}
}