From 00d72b2165634e2d695c0fd9e7e4b5190dfce574 Mon Sep 17 00:00:00 2001 From: vincent <1341870251@qq.com> Date: 星期二, 18 八月 2020 14:54:12 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/domain/enums/CrnStatusType.java | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/asrs/domain/enums/CrnStatusType.java b/src/main/java/com/zy/asrs/domain/enums/CrnStatusType.java index 7b56ef6..d3d54fd 100644 --- a/src/main/java/com/zy/asrs/domain/enums/CrnStatusType.java +++ b/src/main/java/com/zy/asrs/domain/enums/CrnStatusType.java @@ -34,4 +34,20 @@ public void setDesc(String desc) { this.desc = desc; - }} + } + + public static CrnStatusType process(Integer ioType){ + if (ioType>100) { + return TAKE; + } else if (ioType < 100 && ioType!=3 && ioType!=6 && ioType!=11) { + return PUT; + } else if (ioType == 3) { + return SITE_MOVE; + } else if (ioType == 11) { + return STOCK_MOVE; + } else { + return ERROR; + } + } + +} -- Gitblit v1.9.1