From b3e38170e604a12388c6aa6136b1d7951efc8d6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E6=B4=81?= Date: Tue, 17 Mar 2020 18:17:47 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=901440=20PLC=E9=87=87=E9=9B=86=E5=B7=A5?= =?UTF-8?q?=E6=AD=A5=E3=80=90=E7=94=9F=E4=BA=A7=E6=95=B0=E6=8D=AE=E3=80=91?= =?UTF-8?q?=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../i3plus/pojo/base/enumutil/MesPcnEnumUtil.java | 74 ++++++++++++++++++++++ .../estsh/i3plus/pojo/mes/bean/MesStationBom.java | 8 +++ 2 files changed, 82 insertions(+) diff --git a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/MesPcnEnumUtil.java b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/MesPcnEnumUtil.java index 037f318..0aa02da 100644 --- a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/MesPcnEnumUtil.java +++ b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/MesPcnEnumUtil.java @@ -2951,4 +2951,78 @@ public class MesPcnEnumUtil { return description; } } + + /** + * 工位BOM表中的匹配类型 + * 10. + */ + @JsonFormat(shape = JsonFormat.Shape.OBJECT) + public enum STATION_BOM_MATCH_RULE { + + BARCODE_RULE_MATCHING(10, "条码规则匹配"), + PROCESS_BARCODE_MATCHING(20, "过程条码匹配"), + BAR_CODE_MATCHING(20, "条码匹配"); + + private int value; + private String description; + + STATION_BOM_MATCH_RULE(int value, String description) { + this.value = value; + this.description = description; + } + + public int getValue() { + return value; + } + + public String getDescription() { + return description; + } + + public static String valueOfDescription(int val) { + String tmp = null; + for (int i = 0; i < values().length; i++) { + if (values()[i].value == val) { + tmp = values()[i].description; + } + } + return tmp; + } + } + + /** + * 作业模式 + * 10. + */ + @JsonFormat(shape = JsonFormat.Shape.OBJECT) + public enum OPERATION_MODE { + SINGLE_SCAN(10, "单个扫描"), + NO_SCAN_DEDUCTION(20, "不扫描后端扣减"); + + private int value; + private String description; + + OPERATION_MODE(int value, String description) { + this.value = value; + this.description = description; + } + + public int getValue() { + return value; + } + + public String getDescription() { + return description; + } + + public static String valueOfDescription(int val) { + String tmp = null; + for (int i = 0; i < values().length; i++) { + if (values()[i].value == val) { + tmp = values()[i].description; + } + } + return tmp; + } + } } diff --git a/modules/i3plus-pojo-mes/src/main/java/cn/estsh/i3plus/pojo/mes/bean/MesStationBom.java b/modules/i3plus-pojo-mes/src/main/java/cn/estsh/i3plus/pojo/mes/bean/MesStationBom.java index bab6d9c..71fb641 100644 --- a/modules/i3plus-pojo-mes/src/main/java/cn/estsh/i3plus/pojo/mes/bean/MesStationBom.java +++ b/modules/i3plus-pojo-mes/src/main/java/cn/estsh/i3plus/pojo/mes/bean/MesStationBom.java @@ -78,6 +78,10 @@ public class MesStationBom extends BaseBean implements Serializable { @ApiParam(value = "是否绑定关键件") private Integer isBindKey; + @Column(name = "MATCH_RULE") + @ApiParam(value = "匹配规则") + private Integer matchRule; + @Transient @ApiParam("是否已绑定") private Boolean isBind; @@ -114,6 +118,10 @@ public class MesStationBom extends BaseBean implements Serializable { @ApiParam(value = "是否绑定关键件名称") private String isBindKeyName; + @Transient + @ApiParam("是否扫描") + private Boolean isScan; + public double getQtyVal() { return this.qty == null ? 0.0d : this.qty; }