mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-20 10:13:28 +08:00
remove 删除无用代码
This commit is contained in:
parent
40ab60b4fc
commit
f8d26c14cc
@ -89,26 +89,5 @@ public enum BusinessStatusEnum {
|
|||||||
throw new ServiceException("流程状态为空!");
|
throw new ServiceException("流程状态为空!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 校验流程申请
|
|
||||||
*
|
|
||||||
* @param status 状态
|
|
||||||
*/
|
|
||||||
public static void checkStatus(String status) {
|
|
||||||
if (FINISH.getStatus().equals(status)) {
|
|
||||||
throw new ServiceException("该单据已完成申请!");
|
|
||||||
} else if (INVALID.getStatus().equals(status)) {
|
|
||||||
throw new ServiceException("该单据已作废!");
|
|
||||||
} else if (CANCEL.getStatus().equals(status)) {
|
|
||||||
throw new ServiceException("该单据已撤销!");
|
|
||||||
} else if (BACK.getStatus().equals(status)) {
|
|
||||||
throw new ServiceException("该单据已退回!");
|
|
||||||
} else if (TERMINATION.getStatus().equals(status)) {
|
|
||||||
throw new ServiceException("该单据已终止!");
|
|
||||||
} else if (StringUtils.isBlank(status)) {
|
|
||||||
throw new ServiceException("流程状态为空!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user