[feat] 新增外部合同的流程管理

This commit is contained in:
wyw
2024-08-19 14:59:21 +08:00
parent 5091059610
commit b80f413c06
22 changed files with 231 additions and 343 deletions

View File

@ -11,17 +11,15 @@ import lombok.Getter;
@Getter
@AllArgsConstructor
public enum ProcessStatusEnum {
//未执行
NO_EXECUTION("0","no_execution"),
//正在执行
EXECUTING("1","executing"),
//执行完成
COMPLETED("2","completed");
RUNNING(1, "审批中"),
APPROVE(2, "审批通过"),
REJECT(3, "审批不通过"),
CANCEL(4, "已取消");
/**
* 类型编号
*/
private final String code;
private final Integer code;
/**
* 类型编码
*/
@ -32,7 +30,7 @@ public enum ProcessStatusEnum {
* @param code 字典编号
* @return 类型编码
*/
public static String getNoByCode(String code) {
public static String getNoByCode(Integer code) {
for (ProcessStatusEnum value : values()) {
if (value.getCode().equals(code)) {
return value.getNo();