From 850273b8707537450399fa0d0070c413fb177db5 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期三, 21 九月 2022 16:36:04 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/enums/SteTaskModeType.java | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 60 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/core/enums/SteTaskModeType.java b/src/main/java/com/zy/core/enums/SteTaskModeType.java index 509b553..565ee04 100644 --- a/src/main/java/com/zy/core/enums/SteTaskModeType.java +++ b/src/main/java/com/zy/core/enums/SteTaskModeType.java @@ -118,6 +118,36 @@ } } + public static SteTaskModeType findOriginByLoc(Short row) { + switch (row) { + case 1: + case 2: + case 3: + case 8: + case 9: + case 10: + case 11: + case 15: + case 16: + case 17: + case 18: + return SteTaskModeType.GO_ORIGIN; + case 4: + case 5: + case 6: + case 7: + case 12: + case 13: + case 14: + case 19: + case 20: + case 21: + return SteTaskModeType.BACK_ORIGIN; + default: + throw new CoolException("瑙f瀽绌挎杞﹀師鐐瑰畾浣嶅け璐�"); + } + } + public static SteTaskModeType findInByLoc(SteProtocol steProtocol) { switch (steProtocol.getRow()) { case 1: @@ -238,4 +268,34 @@ } } + public static SteTaskModeType findChargeByLocForCharge(Integer row) { + switch (row) { + case 1: + case 2: + case 3: + case 8: + case 9: + case 10: + case 11: + case 15: + case 16: + case 17: + case 18: + return SteTaskModeType.GO_ORIGIN; + case 4: + case 5: + case 6: + case 7: + case 12: + case 13: + case 14: + case 19: + case 20: + case 21: + return SteTaskModeType.BACK_ORIGIN; + default: + throw new CoolException("瑙f瀽绌挎杞﹀師鐐瑰畾浣嶅け璐�"); + } + } + } -- Gitblit v1.9.1