From d4f6f639d5c5f6babbc4f2bf67492caa90ba1d7e Mon Sep 17 00:00:00 2001 From: "frin.fei" <123456> Date: Thu, 15 Nov 2018 11:57:02 +0800 Subject: [PATCH 1/4] =?UTF-8?q?eureka=E3=80=81feign=E6=95=B4=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../estsh/i3plus/pojo/platform/bean/TaskTime.java | 124 --------------------- 1 file changed, 124 deletions(-) diff --git a/modules/i3plus-pojo-platform/src/main/java/cn/estsh/i3plus/pojo/platform/bean/TaskTime.java b/modules/i3plus-pojo-platform/src/main/java/cn/estsh/i3plus/pojo/platform/bean/TaskTime.java index e5dbce2..b771cdf 100644 --- a/modules/i3plus-pojo-platform/src/main/java/cn/estsh/i3plus/pojo/platform/bean/TaskTime.java +++ b/modules/i3plus-pojo-platform/src/main/java/cn/estsh/i3plus/pojo/platform/bean/TaskTime.java @@ -103,128 +103,4 @@ public class TaskTime extends BaseBean { @Column(name="LAST_RUN_DATE_TIME") @ApiParam(value ="最后运行时间" , access ="最后运行时间") private String lastRunDateTime; - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getGroupName() { - return groupName; - } - - public void setGroupName(String groupName) { - this.groupName = groupName; - } - - public void setTimeExpressionId(Long timeExpressionId) { - this.timeExpressionId = timeExpressionId; - } - - public String getTimeExpressionNameRdd() { - return timeExpressionNameRdd; - } - - public void setTimeExpressionNameRdd(String timeExpressionNameRdd) { - this.timeExpressionNameRdd = timeExpressionNameRdd; - } - - public String getTimeExpressionContentRdd() { - return timeExpressionContentRdd; - } - - public void setTimeExpressionContentRdd(String timeExpressionContentRdd) { - this.timeExpressionContentRdd = timeExpressionContentRdd; - } - - public Integer getTaskNumSum() { - return taskNumSum; - } - - public void setTaskNumSum(Integer taskNumSum) { - this.taskNumSum = taskNumSum; - } - - public Integer getTaskNumRun() { - return taskNumRun; - } - - public void setTaskNumRun(Integer taskNumRun) { - this.taskNumRun = taskNumRun; - } - - public Integer getTaskTypeId() { - return taskTypeId; - } - - public void setTaskTypeId(Integer taskTypeId) { - this.taskTypeId = taskTypeId; - } - - public Integer getTaskMethodTypeId() { - return taskMethodTypeId; - } - - public void setTaskMethodTypeId(Integer taskMethodTypeId) { - this.taskMethodTypeId = taskMethodTypeId; - } - - public String getTaskPackage() { - return taskPackage; - } - - public void setTaskPackage(String taskPackage) { - this.taskPackage = taskPackage; - } - - public String getTaskClass() { - return taskClass; - } - - public void setTaskClass(String taskClass) { - this.taskClass = taskClass; - } - - public String getTaskStartDateTimeRdd() { - return taskStartDateTimeRdd; - } - - public void setTaskStartDateTimeRdd(String taskStartDateTimeRdd) { - this.taskStartDateTimeRdd = taskStartDateTimeRdd; - } - - public String getTaskEndDateTimeRdd() { - return taskEndDateTimeRdd; - } - - public void setTaskEndDateTimeRdd(String taskEndDateTimeRdd) { - this.taskEndDateTimeRdd = taskEndDateTimeRdd; - } - - public String getTaskDescription() { - return taskDescription; - } - - public void setTaskDescription(String taskDescription) { - this.taskDescription = taskDescription; - } - - public Integer getTaskStatus() { - return taskStatus; - } - - public void setTaskStatus(Integer taskStatus) { - this.taskStatus = taskStatus; - } - - public String getLastRunDateTime() { - return lastRunDateTime; - } - - public void setLastRunDateTime(String lastRunDateTime) { - this.lastRunDateTime = lastRunDateTime; - } } From 3a34cfbd6b950ffec3770e23b5996d9c65a4e363 Mon Sep 17 00:00:00 2001 From: "frin.fei" <123456> Date: Thu, 15 Nov 2018 14:55:15 +0800 Subject: [PATCH 2/4] =?UTF-8?q?eureka=E3=80=81feign=E6=95=B4=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/estsh/i3plus/pojo/base/enumutil/CommonEnumUtil.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/CommonEnumUtil.java b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/CommonEnumUtil.java index b6cf555..dd86d12 100644 --- a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/CommonEnumUtil.java +++ b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/CommonEnumUtil.java @@ -16,8 +16,11 @@ public class CommonEnumUtil { */ @JsonFormat(shape = JsonFormat.Shape.OBJECT) public enum SOFT_TYPE { - IMPP(1, "IMPP", "IMPP平台"), CORE(2, "CORE", "i3业务平台"), WMS(3, "WMS", "仓库管理软件"), MES(4, "MES", "生产管理软件"), - CENTER(99,"CENTER","注册服务中心"); + IMPP(1, "impp-platform", "IMPP平台"), + CORE(2, "i3core", "i3业务平台"), + WMS(3, "i3wms", "仓库管理软件"), + MES(4, "i3mes", "生产管理软件"), + CENTER(99,"regist-center","注册服务中心"); public int value; public String code; From 88429e342ea1e3adce9416a5a73c1eee870524d0 Mon Sep 17 00:00:00 2001 From: amy <962239776@qq.com> Date: Thu, 15 Nov 2018 15:11:36 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=9E=9A=E4=B8=BE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../i3plus/pojo/base/enumutil/WmsEnumUtil.java | 154 +++------------------ .../estsh/i3plus/pojo/wms/bean/WmsASNMaster.java | 2 +- 2 files changed, 17 insertions(+), 139 deletions(-) diff --git a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/WmsEnumUtil.java b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/WmsEnumUtil.java index 30f9b61..1507622 100644 --- a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/WmsEnumUtil.java +++ b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/WmsEnumUtil.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonFormat; **/ public class WmsEnumUtil { /** - * PO订单明细信息 是否免费 + * 订单明细信息 是否免费 */ @JsonFormat(shape = JsonFormat.Shape.OBJECT) public enum IS_FREE { @@ -20,7 +20,7 @@ public class WmsEnumUtil { private int value; private String description; - private IS_FREE(int value, String description) { + IS_FREE(int value, String description) { this.value = value; this.description = description; } @@ -45,18 +45,19 @@ public class WmsEnumUtil { } /** - * PO订单明细信息 状态 + * 订单明细信息 状态 */ @JsonFormat(shape = JsonFormat.Shape.OBJECT) public enum ORDER_DETAILS_STATUS { NORMAL(10, "N", "正常"), - ANCEL(20, "C", "行取消"); + ANCEL(20, "C", "行取消"), + RECEIPTED(30, "R", "已收货"); private int value; private String code; private String description; - private ORDER_DETAILS_STATUS(int value, String code, String description) { + ORDER_DETAILS_STATUS(int value, String code, String description) { this.value = value; this.code = code; this.description = description; @@ -96,10 +97,10 @@ public class WmsEnumUtil { } /** - * PO主表信息 单据来源 + * 主表信息 单据来源 */ @JsonFormat(shape = JsonFormat.Shape.OBJECT) - public enum PO_ORDER_SRC { + public enum ORDER_SRC { MNU(1, "MNU", "手工"), ERP(2, "ERP", "ERP接口"); @@ -107,7 +108,7 @@ public class WmsEnumUtil { private String code; private String description; - private PO_ORDER_SRC(int value, String code, String description) { + ORDER_SRC(int value, String code, String description) { this.value = value; this.code = code; this.description = description; @@ -146,10 +147,10 @@ public class WmsEnumUtil { } } /** - * PO主表信息 单据类型 + * 主表信息 单据类型 */ @JsonFormat(shape = JsonFormat.Shape.OBJECT) - public enum PO_ORDER_TYPE { + public enum ORDER_TYPE { REG(1, "REG", "原物料采购"), SUB(10, "SUB", "委外采购"), TAR(20, "TAR", "多角贸易采购"), @@ -159,7 +160,7 @@ public class WmsEnumUtil { private String code; private String description; - private PO_ORDER_TYPE(int value, String code, String description) { + ORDER_TYPE(int value, String code, String description) { this.value = value; this.code = code; this.description = description; @@ -199,11 +200,11 @@ public class WmsEnumUtil { } /** - * PO主表信息 状态 + * 主表信息 状态 */ @JsonFormat(shape = JsonFormat.Shape.OBJECT) public enum ORDER_STATUS { - CREATE(0, "新建"), + CREATE(1, "新建"), RECEIPT(10, "收货中"), RECEIPT_FINISH(20, "收货完成"), WAREHOUSING(30, "入库中"), @@ -214,7 +215,7 @@ public class WmsEnumUtil { private int value; private String description; - private ORDER_STATUS(int value, String description) { + ORDER_STATUS(int value, String description) { this.value = value; this.description = description; } @@ -258,7 +259,7 @@ public class WmsEnumUtil { private int value; private String description; - private TRANS_STATUS(int value, String description) { + TRANS_STATUS(int value, String description) { this.value = value; this.description = description; } @@ -297,9 +298,6 @@ public class WmsEnumUtil { private String name; private String description; - QUEUE_NAME() { - } - QUEUE_NAME(int value, String name, String description) { this.value = value; this.name = name; @@ -348,124 +346,4 @@ public class WmsEnumUtil { return tmp; } } - - /** - * ASN单据类型 - */ - public enum ASN_ORDER_TYPE{ - - REG("REG","原物料采购"),SUB("SUB","委外采购"),TAR("TAR","多角贸易采购"),TAP("TAP","多角代采购"); - - private String value; - private String description; - - ASN_ORDER_TYPE(String value, String description) { - this.value = value; - this.description = description; - } - - public String getValue() { - return value; - } - - public String getDescription() { - return description; - } - - public static String valueOfDescription(String val) { - String tmp = null; - for (int i = 0; i < values().length; i++) { - if (values()[i].value == val) { - tmp = values()[i].description; - } - } - return tmp; - } - } - - /** - * ASN明细表状态 - */ - @JsonFormat(shape = JsonFormat.Shape.OBJECT) - public enum ASN_MASTER_ORDER_STATUS { - NORMAL(1, "N", "正常"), - CANCEL(2, "C", "行取消"), - RECEIPTED(3, "R", "已收货"); - - private int value; - private String code; - private String description; - - private ASN_MASTER_ORDER_STATUS(int value, String code, String description) { - this.value = value; - this.code = code; - this.description = description; - } - - public int getValue() { - return value; - } - - public String getDescription() { - return description; - } - - public String getCode() { - return code; - } - - public static String valueOf(int val) { - String tmp = null; - for (int i = 0; i < values().length; i++) { - if (values()[i].value == val) { - tmp = values()[i].description; - } - } - return tmp; - } - - public static int descOf(String desc) { - int tmp = 1; - for (int i = 0; i < values().length; i++) { - if (values()[i].description.equals(desc)) { - tmp = values()[i].value; - } - } - return tmp; - } - } - - /** - * 是否已删除 - */ - public enum IS_DELETED { - DELETED(1, "已删除"), INDELETED(2, "未删除"); - - private int value; - private String description; - - public int getValue() { - return value; - } - - public String getDescription() { - return description; - } - - IS_DELETED(int value, String description) { - this.value = value; - this.description = description; - } - - public static String valueOf(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-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsASNMaster.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsASNMaster.java index d0f47fa..4da7db6 100644 --- a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsASNMaster.java +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsASNMaster.java @@ -41,7 +41,7 @@ public class WmsASNMaster extends BaseBean { public String asnType; /** - * 状态:0=新建,10=收货中,20=收货完成, + * 状态:1=新建,10=收货中,20=收货完成, * 30=入库中,40=入库完成,90=已关闭,91=已取消 */ @Column(name="ASN_STATUS") From 0c7eac9025492f3b066faafafd0bd835eae2aed3 Mon Sep 17 00:00:00 2001 From: Silliter Date: Thu, 15 Nov 2018 16:12:43 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E5=B7=A5=E5=85=B7=E7=B1=BB=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java index 53236f0..8feb7dd 100644 --- a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java @@ -24,16 +24,14 @@ public class WmsHqlPack { */ public static String getStringBuilderPack(BaseBean bean, StringBuffer hqlStr) { - if (hqlStr != null && hqlStr.toString().trim().length() > 0) { - if (StringUtils.isNotBlank(bean.getOrganizeCode())) { - hqlStr.append(" and model.organizeCode = " + bean.getOrganizeCode()); - } else if (bean.getIsValid() > 0) { - hqlStr.append(" and model.isValid = " + bean.getIsValid()); - } - - hqlStr.append(" and model.isDeleted = " + CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue()); + if (StringUtils.isNotBlank(bean.getOrganizeCode())) { + hqlStr.append(" and model.organizeCode = " + bean.getOrganizeCode()); + } else if (bean.getIsValid() > 0) { + hqlStr.append(" and model.isValid = " + bean.getIsValid()); } + hqlStr.append(" and model.isDeleted = " + CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue()); + return hqlStr.toString(); }