From 828cf667848d7016fc56b2fa1b139159495a8130 Mon Sep 17 00:00:00 2001 From: jokelone Date: Thu, 31 Oct 2019 19:57:47 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=9C=80=E6=B1=82=EF=BC=9A1090=20?= =?UTF-8?q?=E5=B7=A5=E5=BA=8FBOM=EF=BC=8C=E7=89=A9=E6=96=99=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E8=AE=B0=E5=BD=95=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/estsh/i3plus/pojo/base/enumutil/MesEnumUtil.java | 12 ++++++------ .../cn/estsh/i3plus/pojo/mes/pcn/bean/MesProcessBom.java | 4 ---- .../cn/estsh/i3plus/pojo/mes/pcn/bean/MesProdBindRecord.java | 6 +++--- .../java/cn/estsh/i3plus/pojo/mes/bean/MesProcessBom.java | 4 ---- .../cn/estsh/i3plus/pojo/mes/bean/MesProdBindRecord.java | 6 +++--- 5 files changed, 12 insertions(+), 20 deletions(-) diff --git a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/MesEnumUtil.java b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/MesEnumUtil.java index b319f6c..fc5e745 100644 --- a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/MesEnumUtil.java +++ b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/MesEnumUtil.java @@ -885,15 +885,15 @@ public class MesEnumUtil { * pcn 是否是关键件 */ @JsonFormat(shape = JsonFormat.Shape.OBJECT) - public enum MES_IS_KEY { + public enum MES_IS_BIND_KEY { - IS_KEY(10, "是"), - NO_KEY(20, "否"); + IS_BIND_KEY(1, "是"), + NO_BIND_KEY(2, "否"); private int value; private String description; - MES_IS_KEY(int value, String description) { + MES_IS_BIND_KEY(int value, String description) { this.value = value; this.description = description; } @@ -907,8 +907,8 @@ public class MesEnumUtil { } // 根据value返回枚举类型,主要在switch中使用 - public static MES_IS_KEY getByValue(int value) { - for (MES_IS_KEY mesInsertExcel : values()) { + public static MES_IS_BIND_KEY getByValue(int value) { + for (MES_IS_BIND_KEY mesInsertExcel : values()) { if (mesInsertExcel.getValue() == value) { return mesInsertExcel; } diff --git a/modules/i3plus-pojo-mes-pcn/src/main/java/cn/estsh/i3plus/pojo/mes/pcn/bean/MesProcessBom.java b/modules/i3plus-pojo-mes-pcn/src/main/java/cn/estsh/i3plus/pojo/mes/pcn/bean/MesProcessBom.java index a03c46a..c4dfe04 100644 --- a/modules/i3plus-pojo-mes-pcn/src/main/java/cn/estsh/i3plus/pojo/mes/pcn/bean/MesProcessBom.java +++ b/modules/i3plus-pojo-mes-pcn/src/main/java/cn/estsh/i3plus/pojo/mes/pcn/bean/MesProcessBom.java @@ -83,10 +83,6 @@ public class MesProcessBom extends BaseBean { @ApiParam(value = "是否绑定关键件") private Integer isBindKey; - @Column(name = "IS_KEY") - @ApiParam(value = "是否关键件") - private Integer isKey; - @Transient @ApiParam("是否已绑定") private Boolean isBind; diff --git a/modules/i3plus-pojo-mes-pcn/src/main/java/cn/estsh/i3plus/pojo/mes/pcn/bean/MesProdBindRecord.java b/modules/i3plus-pojo-mes-pcn/src/main/java/cn/estsh/i3plus/pojo/mes/pcn/bean/MesProdBindRecord.java index abb7861..13e4804 100644 --- a/modules/i3plus-pojo-mes-pcn/src/main/java/cn/estsh/i3plus/pojo/mes/pcn/bean/MesProdBindRecord.java +++ b/modules/i3plus-pojo-mes-pcn/src/main/java/cn/estsh/i3plus/pojo/mes/pcn/bean/MesProdBindRecord.java @@ -85,9 +85,9 @@ public class MesProdBindRecord extends BaseBean { @ApiParam(value = "结果") private String result; - @Column(name = "IS_KEY") - @ApiParam(value = "是否关键件") - private Integer isKey; + @Column(name = "is_BIND_KEY") + @ApiParam(value = "是否绑定关键件") + private Integer isBindKey; @Column(name = "ACTION_TYPE") @ApiParam(value = "动作类型") diff --git a/modules/i3plus-pojo-mes/src/main/java/cn/estsh/i3plus/pojo/mes/bean/MesProcessBom.java b/modules/i3plus-pojo-mes/src/main/java/cn/estsh/i3plus/pojo/mes/bean/MesProcessBom.java index c89db3f..a01c774 100644 --- a/modules/i3plus-pojo-mes/src/main/java/cn/estsh/i3plus/pojo/mes/bean/MesProcessBom.java +++ b/modules/i3plus-pojo-mes/src/main/java/cn/estsh/i3plus/pojo/mes/bean/MesProcessBom.java @@ -87,10 +87,6 @@ public class MesProcessBom extends BaseBean { @ApiParam(value = "是否绑定关键件") private Integer isBindKey; - @Column(name = "IS_KEY") - @ApiParam(value = "是否关键件") - private Integer isKey; - @Transient @ApiParam("是否已绑定") private Boolean isBind; diff --git a/modules/i3plus-pojo-mes/src/main/java/cn/estsh/i3plus/pojo/mes/bean/MesProdBindRecord.java b/modules/i3plus-pojo-mes/src/main/java/cn/estsh/i3plus/pojo/mes/bean/MesProdBindRecord.java index 3d5b323..f689f22 100644 --- a/modules/i3plus-pojo-mes/src/main/java/cn/estsh/i3plus/pojo/mes/bean/MesProdBindRecord.java +++ b/modules/i3plus-pojo-mes/src/main/java/cn/estsh/i3plus/pojo/mes/bean/MesProdBindRecord.java @@ -86,9 +86,9 @@ public class MesProdBindRecord extends BaseBean { @ApiParam(value = "结果") private String result; - @Column(name = "IS_KEY") - @ApiParam(value = "是否关键件") - private String isKey; + @Column(name = "is_BIND_KEY") + @ApiParam(value = "是否绑定关键件") + private Integer isBindKey; @Column(name = "ACTION_TYPE") @ApiParam(value = "动作类型")