Merge remote-tracking branch 'origin/dev' into dev

yun-zuoyi
钮海涛 5 years ago
commit 05276bcf46

@ -5,7 +5,7 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

@ -5,7 +5,7 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

@ -5,14 +5,14 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>i3plus-pojo-base</artifactId>
<packaging>jar</packaging>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<dependencies>
<dependency>

@ -11,6 +11,75 @@ import com.fasterxml.jackson.annotation.JsonFormat;
**/
public class MesEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum HQL_EXPRESSION {
GT(10,">","大于"),
LT(20,"<","小于"),
EQ(30,"=","等于"),
NEQ(40,"!=","不等于"),
GTE(50,">=","大于等于"),
LTE(60,"<=","小于等于"),
LIKE(70,"like","LIKE"),
IN(80,"in","包含");
private int value;
private String code;
private String description;
HQL_EXPRESSION(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 String codeOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].code;
}
}
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 static String valueOfDescription(int val) {
return valueOf(val);
}
}
/**
*
*/
@ -430,6 +499,9 @@ public class MesEnumUtil {
NEVER(-1, "不过期"),
ONE_HOUR(3600, "一小时"),
HALF_HOUR(1800, "半小时"),
ONE_QUARTER(900, "一刻钟"),
TEN_MIN(300, "十分钟"),
ONE_MIN(60, "一分钟");
private int value;
@ -644,7 +716,10 @@ public class MesEnumUtil {
SCRAP("SCRAP", "报废原因"),
QC_CHECK_STAND("QC_CHECK_STAND", "质量检测标准"),
WC_CHECK("WC_CHECK", "开线检查项"),
BOARD("BOARD", "看板类型");
BOARD("BOARD", "看板类型"),
EQU_DEFECT_CAUSE("EQU_DEFECT_CAUSE", "故障原因"),
EQU_DEFECT_METHOD("EQU_DEFECT_METHOD", "故障处理措施"),
EQU_DEFECT_PHENOMENON("EQU_DEFECT_PHENOMENON", "故障现象");
private String value;
private String description;
@ -1796,58 +1871,58 @@ public class MesEnumUtil {
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_INSERT_EXCEL {
MES_PLAN_ORDER(10, "planOrderExcelImportService", "生产计划"),
MES_EQUIPMENT(20, "equipmentExcelImportService", "设备台账,支持编辑"),
MES_EQU_TASK_STANDARD(30, "equTaskStandardExcelImportService", "设备作业要求,支持编辑"),
MES_CUST_ORDER(40, "custOrderExcelImportService", "客户订单"),
MES_PCN_SYNC_CFG(50, "pcnSyncCfgExcelImportService", "PCN同步配置"),
MES_PART(60, "partExcelImportService", "物料表,支持编辑"),
MES_PRODUCE_CATEGORY(70, "produceCategoryExcelImportService", "产品类型"),
MES_PACK_SPEC(80, "packSpecExcelImportService", "包装规格,支持编辑"),
MES_PROD_PACK(90, "prodPackExcelImportService", "产品包装关系"),
MES_PRODUCT_ENCODE_CFG(100, "productEncodeCfgExcelImportService", "产品编码配置"),
MES_BOM(110, "bomExcelImportService", "物料清单,支持编辑"),
MES_PROD_CFG_TYPE(120, "prodCfgTypeExcelImportService", "产品配置类型"),
MES_CUSTOMER(130, "customerExcelImportService", "客户表,支持编辑"),
MES_CUSTOMER_PART(140, "customerPartExcelImportService", "客户零件关系表,支持编辑"),
MES_WORK_CENTER(150, "workCenterExcelImportService", "生产线,支持编辑"),
MES_WORK_CELL(160, "workCellExcelImportService", "工位,支持编辑"),
MES_WC_EQUIPMENT(170, "wcEquipmentExcelImportService", "工位设备关系表"),
MES_SHIFT(180, "shiftExcelImportService", "班次,支持编辑"),
MES_SHIFT_GROUP(190, "shiftGroupExcelImportService", "班组,支持编辑"),
MES_WORK_CELL_PARAM_CFG(200, "workCellParamCfgExcelImportService", "工作单元参数配置"),
MES_STATION_BOM(210, "stationBomExcelImportService", "工位BOM表"),
MES_DATA_OBJECT(220, "dataObjectExcelImportService", "数据对象"),
MES_OBJECT_CFG(230, "objectCfgExcelImportService", "对象结构"),
MES_WC_CHECK(240, "wcCheckExcelImportService", "开线检查,支持编辑"),
MES_QC_CHECK_STANDARD(250, "qcCheckStandardExcelImportService", "质量检测标准,支持编辑"),
MES_FAULT_CAUSE(260, "faultCauseExcelImportService", "设备故障原因,支持编辑"),
MES_FAULT_METHOD(270, "faultMethodExcelImportService", "设备故障处理措施,支持编辑"),
MES_FAULT_PHENOMENON(280, "faultPhenomenonExcelImportService", "设备故障现象,支持编辑"),
MES_DEFECT(290, "defectExcelImportService", "缺陷,支持编辑"),
MES_DEFECT_CAUSE(300, "defectCauseExcelImportService", "缺陷原因,支持编辑"),
MES_SCRAP(310, "scrapExcelImportService", "报废原因,支持编辑"),
MES_REPAIR(320, "repairExcelImportService", "质量数据处理措施,支持编辑"),
MES_EQU_TASK_PLAN(330, "equTaskPlanExcelImportService", "设备作业周期计划,支持编辑"),
MES_PART_OJBECT(340, "partObjectExcelImportService", "物料对象"),
MES_ROUTE_PROCESS_WORK_CELL(350, "routeProcessWorkCellExcelImportService", "工序工作单元"),
MES_DATASOURCE(360, "datasourceExcelImportService", "DB地址清单"),
MES_EQU_TASK_NOTIFY_CFG(370, "equTaskNotifyCfgExcelImportService", "设备通知配置"),
MES_EQU_NOTIFY_OBJECT_CFG(380, "equNotifyObjectCfgExcelImportService", "设备通知对象"),
MES_PLC(390, "plcExcelImportService", "PLC地址清单支持编辑"),
MES_PROCESS(400, "processExcelImportService", "工序信息"),
MES_KPSN_RULE(410, "kpsnRuleExcelImportService", "关键件条码校验规则,支持编辑"),
MES_QUEUE_JIT_ACTUAL(420, "queueJitActualExcelImportService", "客户JIT生产队列"),
MES_PART_BOM_IMPORT(430, "partBomExcelImportService", "散件BOM导入"),
MES_PLAN_ORDER_BATCH_COMPILE(440, "planOrderBatchCompileExcelImportService", "生产计划批量编制,支持编辑");
public enum MES_EXCEL {
MES_PLAN_ORDER(10, "planOrderExcelService", "生产计划"),
MES_EQUIPMENT(20, "equipmentExcelService", "设备台账,支持编辑"),
MES_EQU_TASK_STANDARD(30, "equTaskStandardExcelService", "设备作业要求,支持编辑"),
MES_CUST_ORDER(40, "custOrderExcelService", "客户订单"),
MES_PCN_SYNC_CFG(50, "pcnSyncCfgExcelService", "PCN同步配置"),
MES_PART(60, "partExcelService", "物料表,支持编辑"),
MES_PRODUCE_CATEGORY(70, "produceCategoryExcelService", "产品类型"),
MES_PACK_SPEC(80, "packSpecExcelService", "包装规格,支持编辑"),
MES_PROD_PACK(90, "prodPackExcelService", "产品包装关系"),
MES_PRODUCT_ENCODE_CFG(100, "productEncodeCfgExcelService", "产品编码配置"),
MES_BOM(110, "bomExcelService", "物料清单,支持编辑"),
MES_PROD_CFG_TYPE(120, "prodCfgTypeExcelService", "产品配置类型"),
MES_CUSTOMER(130, "customerExcelService", "客户表,支持编辑"),
MES_CUSTOMER_PART(140, "customerPartExcelService", "客户零件关系表,支持编辑"),
MES_WORK_CENTER(150, "workCenterExcelService", "生产线,支持编辑"),
MES_WORK_CELL(160, "workCellExcelService", "工位,支持编辑"),
MES_WC_EQUIPMENT(170, "wcEquipmentExcelService", "工位设备关系表"),
MES_SHIFT(180, "shiftExcelService", "班次,支持编辑"),
MES_SHIFT_GROUP(190, "shiftGroupExcelService", "班组,支持编辑"),
MES_WORK_CELL_PARAM_CFG(200, "workCellParamCfgExcelService", "工作单元参数配置"),
MES_STATION_BOM(210, "stationBomExcelService", "工位BOM表"),
MES_DATA_OBJECT(220, "dataObjectExcelService", "数据对象"),
MES_OBJECT_CFG(230, "objectCfgExcelService", "对象结构"),
MES_WC_CHECK(240, "wcCheckExcelService", "开线检查,支持编辑"),
MES_QC_CHECK_STANDARD(250, "qcCheckStandardExcelService", "质量检测标准,支持编辑"),
MES_FAULT_CAUSE(260, "faultCauseExcelService", "设备故障原因,支持编辑"),
MES_FAULT_METHOD(270, "faultMethodExcelService", "设备故障处理措施,支持编辑"),
MES_FAULT_PHENOMENON(280, "faultPhenomenonExcelService", "设备故障现象,支持编辑"),
MES_DEFECT(290, "defectExcelService", "缺陷,支持编辑"),
MES_DEFECT_CAUSE(300, "defectCauseExcelService", "缺陷原因,支持编辑"),
MES_SCRAP(310, "scrapExcelService", "报废原因,支持编辑"),
MES_REPAIR(320, "repairExcelService", "质量数据处理措施,支持编辑"),
MES_EQU_TASK_PLAN(330, "equTaskPlanExcelService", "设备作业周期计划,支持编辑"),
MES_PART_OJBECT(340, "partObjectExcelService", "物料对象"),
MES_ROUTE_PROCESS_WORK_CELL(350, "routeProcessWorkCellExcelService", "工序工作单元"),
MES_DATASOURCE(360, "datasourceExcelService", "DB地址清单"),
MES_EQU_TASK_NOTIFY_CFG(370, "equTaskNotifyCfgExcelService", "设备通知配置"),
MES_EQU_NOTIFY_OBJECT_CFG(380, "equNotifyObjectCfgExcelService", "设备通知对象"),
MES_PLC(390, "plcExcelService", "PLC地址清单支持编辑"),
MES_PROCESS(400, "processExcelService", "工序信息"),
MES_KPSN_RULE(410, "kpsnRuleExcelService", "关键件条码校验规则,支持编辑"),
MES_QUEUE_JIT_ACTUAL(420, "queueJitActualExcelService", "客户JIT生产队列"),
MES_PART_BOM_IMPORT(430, "partBomExcelService", "散件BOM导入"),
MES_PLAN_ORDER_BATCH_COMPILE(440, "planOrderBatchCompileExcelService", "生产计划批量编制,支持编辑");
private int value;
private String service;
private String description;
MES_INSERT_EXCEL(int value, String service, String description) {
MES_EXCEL(int value, String service, String description) {
this.value = value;
this.service = service;
this.description = description;
@ -1865,10 +1940,10 @@ public class MesEnumUtil {
return description;
}
public static MES_INSERT_EXCEL getByValue(int value) {
for (MES_INSERT_EXCEL mesInsertExcel : values()) {
if (mesInsertExcel.getValue() == value) {
return mesInsertExcel;
public static MES_EXCEL getByValue(int value) {
for (MES_EXCEL excel : values()) {
if (excel.getValue() == value) {
return excel;
}
}
return null;
@ -5174,4 +5249,327 @@ public class MesEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum OPERATE_TYPE {
OEE(10, "OEE"),
MTBF(20, "MTBF平均故障间隔"),
MTTR(30, "MTTR平均修理时间");
private int value;
private String description;
OPERATE_TYPE(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;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ATTRIBUTE_TYPE {
STANDARD_ATTRIBUTE(10, "标准属性"),
CUSTOM_ATTRIBUTE(20, "自定义属性");
private int value;
private String description;
ATTRIBUTE_TYPE(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;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum VALUE_TYPE {
MANUAL_ASSIGNMENT("10", "手工赋值"),
SPEL_EXPRESSION("20", "spel表达式"),
FUNCTION_ASSIGNMENT("30", "函数赋值"),
JOB_ASSIGNMENT("40", "job赋值");
private String value;
private String description;
VALUE_TYPE(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
public static VALUE_TYPE getByValue(String value) {
for (VALUE_TYPE valueType : values()) {
if (valueType.getValue().equals(value)) {
return valueType;
}
}
return null;
}
public static String valueOfDescription(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value.equals(val)) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum OBJECT_CODE {
ORGANIZE_OEE("10", "工厂OEE"),
WORK_CENTER_OEE("20", "产线OEE"),
WORK_CELL_CEE("30", "工位OEE"),
EQU_OEE("40", "设备OEE");
private String value;
private String description;
OBJECT_CODE(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
public static OBJECT_CODE getByValue(String value) {
for (OBJECT_CODE objectCode : values()) {
if (objectCode.getValue().equals(value)) {
return objectCode;
}
}
return null;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value.equals(val)) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
* JOB
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SCRIPT_TYPE {
ASSEMBLY(10, "组件"),
FORM(20, "表单"),
REPORT_FORM(30, "报表"),
JOB(40, "JOB"),
OTHER(50, "其他");
private int value;
private String description;
SCRIPT_TYPE(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;
}
}
/**
* GroovyPythonJavaScriptScalaRuby
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SCRIPT_LANGUAGE {
GROOVY(10, "Groovy"),
PYTHON(20, "Python"),
JAVA_SCRIPT(30, "JavaScript"),
SCALA(40, "Scala"),
RUBY(50, "Ruby");
private int value;
private String description;
SCRIPT_LANGUAGE(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;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum OPERATE_OBJECT_CODE {
ORGANIZE_OEE_HOUR("ORGANIZE_OEE_HOUR", "工厂OEE(小时)"),
ORGANIZE_OEE_DAY("ORGANIZE_OEE_DAY", "工厂OEE(天)"),
WORK_CENTER_OEE_DAY("WORK_CENTER_OEE_DAY", "产线OEE(天)"),
EQU_OEE_DAY("EQU_OEE_Day", "设备OEE(天)");
private String value;
private String description;
OPERATE_OBJECT_CODE(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
public static OPERATE_OBJECT_CODE getByValue(String value) {
for (OPERATE_OBJECT_CODE objectCode : values()) {
if (objectCode.getValue().equals(value)) {
return objectCode;
}
}
return null;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value.equals(val)) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
* oee
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum OEE_STATUS {
STAY_OPERATE(10, "待运算"),
ALREADY_OPERATE(20, "已运算");
private int value;
private String description;
OEE_STATUS(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;
}
}
}

@ -3277,7 +3277,7 @@ public class MesPcnEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SHIPPING_ACTUAL_STATUS {
CREATE(10, "创建"),
CANCEL(20, "已发运");
SHIPPED(20, "已发运");
private int value;
private String description;
@ -3338,7 +3338,7 @@ public class MesPcnEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum FSM_STATE_TYPE {
BEGIN(10, "begin", "开始状态点"),
END(20, "end", "结束状态点");
END(40, "end", "结束状态点");
private int value;
private String code;

@ -715,8 +715,8 @@ public class WmsEnumUtil {
PRODUCE_INSTOCK(490, "PRODUCE_INSTOCK", "VDA生产入库"),
UTENSIL_CONSUMING(500, "UTENSIL_CONSUMING", "器具领用"),
TG_PICKING_GOODS(510, "TG_PICKING_GOODS", "TG生产领料"),
EXTERNAL_PULL(520, "EXTERNAL_PULL", "外部拉动");
EXTERNAL_PULL(520, "EXTERNAL_PULL", "外部拉动"),
LOADING_ORDER(530, "LOADING_ORDER", "装车单");
private int value;
private String code;
private String description;
@ -6610,5 +6610,4 @@ public class WmsEnumUtil {
return valueOf(val);
}
}
}

@ -5,7 +5,7 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

@ -5,7 +5,7 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

@ -5,7 +5,7 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

@ -5,7 +5,7 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

@ -5,7 +5,7 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

@ -5,14 +5,14 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>i3plus-pojo-mes-pcn</artifactId>
<packaging>jar</packaging>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<dependencies>
<dependency>

@ -93,4 +93,8 @@ public class IfPackageDetail extends BaseBean implements Serializable {
@Column(name = "IF_CODE")
@ApiParam("接口代码")
private String ifCode;
@Column(name = "CT_NO")
@ApiParam("容器编号")
private String ctNo;
}

@ -5,14 +5,14 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>i3plus-pojo-mes</artifactId>
<packaging>jar</packaging>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<dependencies>
<dependency>

@ -93,4 +93,8 @@ public class IfPackageDetail extends BaseBean implements Serializable {
@Column(name = "IF_CODE")
@ApiParam("接口代码")
private String ifCode;
@Column(name = "CT_NO")
@ApiParam("容器编号")
private String ctNo;
}

@ -0,0 +1,61 @@
package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;
/**
* @Description :
* @Reference :
* @Author : jack.jia
* @CreateDate : 2019-04-26
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_DATA_AUTH")
@Api("数据权限")
public class MesDataAuth extends BaseBean implements Serializable {
private static final long serialVersionUID = -8665559475167190408L;
@Column(name = "ROLE_ID")
@ApiParam("角色编号")
private Long roleId;
@Column(name = "ROLE_NAME")
@ApiParam("角色名称")
private String roleName;
@Column(name = "DATA_OBJECT")
@ApiParam("数据对象")
private String dataObject;
@Column(name = "DATA_OBJECT_NAME")
@ApiParam("数据对象名称")
private String dataObjectName;
@Column(name = "FILTER_RULE", columnDefinition = "TEXT")
@ApiParam("过滤规则")
private String filterRule;
public long getRoleIdVal() {
return this.roleId == null ? 0 : this.roleId.longValue();
}
}

@ -0,0 +1,42 @@
package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/**
* @author Wynne.Lu
* @date 2020/4/28 21:30
* @desc
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_EDI_DATA")
@Api("EDI数据")
public class MesEdiData extends BaseBean implements Serializable {
private static final long serialVersionUID = 4671561947551462256L;
@Column(name = "HOST")
@ApiParam("edi电脑名")
private String host;
@Column(name = "DATA")
@ApiParam("数据")
private String data;
@Column(name = "CONFIG")
@ApiParam("edi配置")
private String config;
}

@ -0,0 +1,126 @@
package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;
/**
* @Description:
* @Author: jokelin
* @Date: 2020/4/28 4:19
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_OEE")
@Api("MES_OEE数据")
public class MesOee extends BaseBean implements Serializable {
private static final long serialVersionUID = -9163026983140909748L;
@Column(name = "OBJECT_CODE")
@ApiParam("运算对象代码")
private String objectCode;
@Column(name = "STATUS")
@ApiParam("运算状态")
private Integer status;
@Column(name = "WORK_CENTER_CODE")
@ApiParam("工作中心代码")
private String workCenterCode;
@Column(name = "WORK_CELL_CODE")
@ApiParam("工作单元代码")
private String workCellCode;
@Column(name = "EQU_CODE")
@ApiParam("设备代码")
private String equCode;
@Column(name = "OEE_DATE")
@ApiParam("日期")
private String oeeDate;
@Column(name = "SHIFT_CODE")
@ApiParam("班次代码")
private String shiftCode;
@Column(name = "START_TIME")
@ApiParam("开始时段")
private String startTime;
@Column(name = "END_TIME")
@ApiParam("结束时段")
private String endTime;
@Column(name = "TOTAL_RUN_TIME")
@ApiParam("总生产时间")
private String totalRunTime;
@Column(name = "TOTAL_STOP_TIME")
@ApiParam("总停机时间")
private String totalStopTime;
@Column(name = "TOTAL_QTY")
@ApiParam("总生产数")
private Integer totalQty;
@Column(name = "QUALIFIED_QTY")
@ApiParam("一次合格数")
private Integer qualifiedQty;
@Column(name = "PLAN_TAKT")
@ApiParam("计划节拍")
private Integer planTakt;
@Column(name = "ACTUAL_TAKT")
@ApiParam("实际节拍")
private Integer actualTakt;
@Column(name = "TIME_RATE")
@ApiParam("时间开动率")
private String timeRate;
@Column(name = "TAKT_RATE")
@ApiParam("性能开动率")
private String taktRate;
@Column(name = "QUALIFIED_RATE")
@ApiParam("良品率")
private String qualifiedRate;
@Column(name = "OEE")
@ApiParam("OEE")
private String oee;
@Column(name = "BUSI_DATA")
@ApiParam("自定义数据")
private String busiData;
@Transient
@ApiParam("开始日期")
private String oeeDateStart;
@Transient
@ApiParam("结束日期")
private String oeeDateEnd;
@Transient
@ApiParam("自定义数据map")
private List<MesOperateObjectAttribute> operateObjectAttributes;
}

@ -11,6 +11,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
/**

@ -0,0 +1,45 @@
package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/**
* @Description:
* @Author: jokelin
* @Date: 2020/4/28 4:04
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_OPERATE_OBJECT")
@Api("MES_运算对象")
public class MesOperateObject extends BaseBean implements Serializable {
private static final long serialVersionUID = 7829216855303543146L;
@Column(name = "OBJECT_CODE")
@ApiParam("对象代码")
private String objectCode;
@Column(name = "OBJECT_NAME")
@ApiParam("对象名称")
private String objectName;
@Column(name = "OPERATE_TYPE")
@ApiParam("运算类型")
private Integer operateType;
}

@ -0,0 +1,57 @@
package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
/**
* @Description:
* @Author: jokelin
* @Date: 2020/4/28 4:08
* @Modify:MES_OPERATE_OBJECT_CFG
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_OPERATE_OBJECT_ATTRIBUTE")
@Api("MES_运算对象属性")
public class MesOperateObjectAttribute extends BaseBean implements Serializable {
private static final long serialVersionUID = 3916105499867386686L;
@Column(name = "ATTRIBUTE_CODE")
@ApiParam("属性代码")
private String attributeCode;
@Column(name = "ATTRIBUTE_NAME")
@ApiParam("属性名称")
private String attributeName;
@Column(name = "ATTRIBUTE_TYPE")
@ApiParam("属性类型")
private Integer attributeType;
@Column(name = "OPERATE_TYPE")
@ApiParam("运算类型")
private Integer operateType;
@Transient
@ApiParam("属性值")
private String attributeValue;
@Transient
@ApiParam("是否自定义属性")
private boolean customAttribute = false;
}

@ -0,0 +1,65 @@
package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
/**
* @Description:
* @Author: jokelin
* @Date: 2020/4/28 4:12
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_OPERATE_OBJECT_ATTRIBUTE")
@Api("MES_运算对象属性配置")
public class MesOperateObjectCfg extends BaseBean implements Serializable {
private static final long serialVersionUID = -8066603810736365082L;
@Column(name = "OBJECT_CODE")
@ApiParam("对象代码")
private String objectCode;
@Column(name = "ATTRIBUTE_CODE")
@ApiParam("属性代码")
private String attributeCode;
@Column(name = "VALUE_TYPE")
@ApiParam("赋值类型")
private String valueType;
@Column(name = "METHOD_CODE")
@ApiParam("函数方法")
private String methodCode;
@Column(name = "JOB_ID")
@ApiParam("job编号")
private String jobId;
@Column(name = "SPEL_CONTENT")
@ApiParam("spel表达式")
private String spelContent;
@Column(name = "SEQ")
@ApiParam("运算顺序")
private Integer seq;
@Transient
@ApiParam("属性名称")
private String attributeName;
}

@ -41,6 +41,10 @@ public class MesProdPack extends BaseBean implements Serializable {
@ApiParam("包装规格")
private String packSpec;
@Column(name = "PROCESS_LABEL_TEMPLATE")
@ApiParam("过程标签模板")
private String processLabelTemplate;
@Column(name = "PROD_LABEL_TEMPLATE")
@ApiParam("产品标签模板")
private String prodLabelTemplate;

@ -91,6 +91,10 @@ public class MesQcCheckStandard extends BaseBean implements Serializable {
@Transient
private List<MesQcCheckStandard> childQcList;
@Transient
@ApiParam("备注")
private String memo;
public MesQcCheckStandard() {
}

@ -0,0 +1,56 @@
package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/**
* @Description:
* @Author: jokelin
* @Date: 2020/4/28 4:58
* @Modify:
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_SCRIPT_PERSISTENCE")
@Api("动态脚本")
public class MesScriptPersistence extends BaseBean implements Serializable {
private static final long serialVersionUID = 1941422535481564572L;
@Column(name = "SCRIPT_NO")
@ApiParam("脚本编号")
private String scriptNo;
@Column(name = "SCRIPT_NAME")
@ApiParam("脚本名称")
private String scriptName;
@Column(name = "SCRIPT_REMARK")
@ApiParam("脚本描述")
private String scriptRemark;
@Column(name = "SCRIPT_TYPE")
@ApiParam("脚本类型")
private Integer scriptType;
@Column(name = "LANGUAGE_TYPE")
@ApiParam("语言类型")
private Integer languageType;
@Column(name = "SCRIPT_CONTENT")
@ApiParam("脚本内容")
private String scriptContent;
}

@ -260,6 +260,10 @@ public class MesWorkOrder extends BaseBean implements Serializable {
@ApiParam("计划类型")
private Integer planType;
@Transient
@ApiParam(value = "完成按钮编号")
public String comButtonCode;
public double getQtyVal() {
return this.qty == null ? 0.0d : this.qty;
}

@ -43,6 +43,13 @@ public class ButtonDynamicModel {
this.buttonName = buttonName;
}
public ButtonDynamicModel(String buttonCode, String buttonName, String paramCode){
this.buttonCode = buttonCode;
this.buttonName = buttonName;
this.paramCode = paramCode;
}
public ButtonDynamicModel(Long id, String buttonCode, String windowNo, String windowModuleBack, String paramCode, String paramValue){
this.id = id;
this.buttonCode = buttonCode;

@ -0,0 +1,181 @@
//package cn.estsh.i3plus.pojo.mes.model;
//
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiParam;
//import lombok.AllArgsConstructor;
//import lombok.Data;
//import lombok.NoArgsConstructor;
//import org.apache.poi.ss.usermodel.CellStyle;
//import org.springframework.util.StringUtils;
//
//import java.io.Serializable;
//import java.math.BigDecimal;
//
///**
// * @Author: wangjie
// * @CreateDate: 2019/8/21 9:19 AM
// * @Description:
// **/
//@Data
//@NoArgsConstructor
//@AllArgsConstructor
//@Api("EXCEL参数model")
//public class ExcelDataParamModel<T> implements Serializable {
//
// public ExcelDataParamModel(Class<T> clazz){
// this.clazz = clazz;
// }
//
// @ApiParam("获取相对应的类,用来映射数据,如果不设置此值那么整个数据将会用String[]作为数据,不再通过映射拿取数据")
// private Class<T> clazz;
//
// @ApiParam("对应类的映射字段名String类型")
// private String[] strField;
//
// @ApiParam("对应类的标题,需要一一对应")
// private String[] titleStr;
//
// @ApiParam("大标题")
// private String title;
//
// @ApiParam("文件名如果传入的ExcelDataParamModel是一个List的时候以sheetNo = 1为文件名如果sheetNo为空则默认随机")
// private String fileName;
//
// @ApiParam("后缀")
// private String sufix;
//
// @ApiParam("大标题样式")
// private CellStyle bigTitleCellStyle;
//
// @ApiParam("标题样式")
// private CellStyle titleCellStyle;
//
// @ApiParam("数据样式")
// private CellStyle cellStyle;
//
// @ApiParam("sheet名")
// private String sheetName;
//
// @ApiParam("每个格子的宽度")
// private BigDecimal[] cellWidth;
//
// @ApiParam("如果传入的ExcelDataParamModel是List的时候默认以sheetNo排序")
// private Integer sheetNo;
//
// @ApiParam("导出数据转换器")
// private QueryDataInterface queryDataInterface;
//
// public Class<T> getClazz() {
// return clazz;
// }
//
// public String[] getStrField() {
// return strField;
// }
//
// public String[] getTitleStr() {
// return titleStr;
// }
//
// public String getTitle() {
// if(StringUtils.isEmpty(this.title)){
// return "无效的标题";
// }else{
// return title;
// }
// }
//
// public String getFileName() {
// if(StringUtils.isEmpty(this.fileName)){
// return "未命名";
// }else{
// return this.fileName;
// }
// }
//
// public CellStyle getBigTitleCellStyle() {
// return bigTitleCellStyle;
// }
//
// public CellStyle getTitleCellStyle() {
// return titleCellStyle;
// }
//
// public CellStyle getCellStyle() {
// return cellStyle;
// }
//
// public String getSheetName() {
// return sheetName;
// }
//
// public Integer getSheetNo() {
// return sheetNo;
// }
//
// public BigDecimal[] getCellWidth() {
// return cellWidth;
// }
//
// public String getSufix() {
// return sufix;
// }
//
// public QueryDataInterface getQueryDataInterface() {
// return queryDataInterface;
// }
//
// public void setClazz(Class<T> clazz) {
// this.clazz = clazz;
// }
//
// public void setStrField(String[] strField) {
// this.strField = strField;
// }
//
// public void setTitleStr(String[] titleStr) {
// this.titleStr = titleStr;
// }
//
// public void setTitle(String title) {
// this.title = title;
// }
//
// public void setFileName(String fileName) {
// this.fileName = fileName;
// }
//
// public void setSufix(String sufix) {
// this.sufix = sufix;
// }
//
// public void setBigTitleCellStyle(CellStyle bigTitleCellStyle) {
// this.bigTitleCellStyle = bigTitleCellStyle;
// }
//
// public void setTitleCellStyle(CellStyle titleCellStyle) {
// this.titleCellStyle = titleCellStyle;
// }
//
// public void setCellStyle(CellStyle cellStyle) {
// this.cellStyle = cellStyle;
// }
//
// public void setSheetName(String sheetName) {
// this.sheetName = sheetName;
// }
//
// public void setCellWidth(BigDecimal[] cellWidth) {
// this.cellWidth = cellWidth;
// }
//
//
// public void setSheetNo(Integer sheetNo) {
// this.sheetNo = sheetNo;
// }
//
// public void setQueryDataInterface(QueryDataInterface queryDataInterface) {
// this.queryDataInterface = queryDataInterface;
// }
//
//}

@ -0,0 +1,11 @@
package cn.estsh.i3plus.pojo.mes.model;
import lombok.Data;
import java.util.List;
@Data
public class FilterGroup {
private String andOr;
private List<FilterRuleAndOr> groups;
}

@ -0,0 +1,10 @@
package cn.estsh.i3plus.pojo.mes.model;
import lombok.Data;
@Data
public class FilterRule {
private String filed;
private String op;
private String value;
}

@ -0,0 +1,11 @@
package cn.estsh.i3plus.pojo.mes.model;
import lombok.Data;
import java.util.List;
@Data
public class FilterRuleAndOr {
private String andOr;
private List<FilterRule> rules;
}

@ -97,6 +97,9 @@ public class MesEquipmentModel implements Serializable {
@ApiParam("连接类型")
private String connectTypeName;
@ApiParam("作业校验模式")
private Integer checkModel;
public MesEquipmentModel() {
@ -139,7 +142,7 @@ public class MesEquipmentModel implements Serializable {
}
//获取设备分页数据 queryMesEquipmentByPager
public MesEquipmentModel(Long id, String equipmentCode, String equipmentName, Integer status, String workCenterCode, String areaCode, Integer equipmentType, String equipmentCategory, String memo, String equipmentModel, String equipmentSpec, String equipmentMaker, String releaseDate, String receiveDate, String enableDate, Integer connectType, String organizeCode, Integer isValid, Integer isDeleted, String createUser, String createDatetime, String modifyUser, String modifyDatetime) {
public MesEquipmentModel(Long id, String equipmentCode, String equipmentName, Integer status, String workCenterCode, String areaCode, Integer equipmentType, String equipmentCategory, String memo, String equipmentModel, String equipmentSpec, String equipmentMaker, String releaseDate, String receiveDate, String enableDate, Integer connectType, String organizeCode, Integer isValid, Integer isDeleted, String createUser, String createDatetime, String modifyUser, String modifyDatetime, Integer checkModel) {
this.id = id;
this.equipmentCode = equipmentCode;
this.equipmentName = equipmentName;
@ -163,6 +166,7 @@ public class MesEquipmentModel implements Serializable {
this.createDatetime = createDatetime;
this.modifyUser = modifyUser;
this.modifyDatetime = modifyDatetime;
this.checkModel = checkModel;
}
}

@ -96,6 +96,9 @@ public class MesPlcModel implements Serializable {
@ApiParam("OPCUA路径")
private String opcUrl;
@ApiParam("PLC类型")
private Integer plcType;
public MesPlcModel() {
}
@ -103,7 +106,7 @@ public class MesPlcModel implements Serializable {
public MesPlcModel(Long id, String equipmentCode, String equipmentName, Integer isValid, Integer isDeleted, String createUser, String createDatetime,
String modifyUser, String modifyDatetime, String organizeCode, String plcCode, String plcName, String plcModel,
String plcIp, String channel, String tagName, String tagAddress, String dataType, String groupName,
String workCenterCode, String workCellCode, String plcCfg, String analysisRule, String isAnalysis, String device, String objectCode, String opcUrl) {
String workCenterCode, String workCellCode, String plcCfg, String analysisRule, String isAnalysis, String device, String objectCode, String opcUrl, Integer plcType) {
this.id = id;
this.equipmentCode = equipmentCode;
this.equipmentName = equipmentName;
@ -131,5 +134,6 @@ public class MesPlcModel implements Serializable {
this.device = device;
this.objectCode = objectCode;
this.opcUrl = opcUrl;
this.plcType = plcType;
}
}

@ -29,7 +29,7 @@ public class MesWorkOrderModel {
//客户产线代码
@ApiParam("ProductionLineID")
@AnnoOutputColumn
private String custProdLineCode;
private String workCenterCode;
//数量
@ApiParam("DemandQty")

@ -0,0 +1,44 @@
package cn.estsh.i3plus.pojo.mes.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Transient;
/**
* @Description:
* @Author: jokelin
* @Date: 2020/4/30 2:01
* @Modify:
*/
@Data
public class OperateObjectParamModel {
private String organizeCode;
@ApiParam("设备代码")
private String equCode;
@ApiParam("运算对象代码")
private String objectCode;
@ApiParam("日期")
private String oeeDate;
@ApiParam("开始时段")
private String startTime;
@Transient
@ApiParam("结束时段")
private String endTime;
@ApiParam("属性值")
private Integer attributeValue = 0;
@ApiParam("工作中心代码")
private String workCenterCode;
@ApiParam("工作单元代码")
private String workCellCode;
}

@ -0,0 +1,48 @@
package cn.estsh.i3plus.pojo.mes.model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
/**
* @Description : PojoField
* @Reference :
* @Author : jack.jia
* @CreateDate : 2020-04-28
* @Modify:
* @Modify:
**/
@Data
public class PojoFieldModel implements Serializable {
private static final long serialVersionUID = 6761788924707802928L;
@ApiParam(value ="属性名")
private String fieldName;
@ApiParam(value ="属性类型")
private String fieldType;
@ApiParam(value ="属性描述")
private String fieldDesc;
@ApiParam(value ="字段名称")
private String fieldColumnName;
@ApiParam(value = "数据来源")
private String dataSrc;
@ApiParam(value = "开窗列表显示列名称")
private String listColumnName;
@ApiParam(value = "开窗搜索列名称")
private String searchColumnName;
@ApiParam(value = "回显列名")
private String explicitColumnName;
@ApiParam(value = "下拉框规则")
private Integer selectRule;
}

@ -0,0 +1,38 @@
package cn.estsh.i3plus.pojo.mes.model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @Description : Pojo
* @Reference :
* @Author : jack.jia
* @CreateDate : 2020-04-28
* @Modify:
**/
@Data
public class PojoModel implements Serializable {
private static final long serialVersionUID = -3617516560880011259L;
@ApiParam(value ="包名")
private String packageName;
@ApiParam(value ="POJO类名")
private String simpleName;
@ApiParam(value ="POJO类全名")
private String fullName;
@ApiParam(value ="表名称名")
private String tableName;
@ApiParam(value ="POJO类描述")
private String pojoDesc;
@ApiParam(value ="属性集合")
private List<PojoFieldModel> fieldList;
}

@ -42,9 +42,6 @@ public class ProdPlanBatchCompileModel {
@ApiParam("班次")
private String shiftCode;
@ApiParam("客户名称")
private String custCodeName;
@ApiParam("客户代码")
private String custCode;
@ -75,4 +72,52 @@ public class ProdPlanBatchCompileModel {
@ApiParam("计划类型名称")
private String planTypeName;
@ApiParam("数量1")
private String qty1;
@ApiParam("完成数量1")
private String completeQty1;
@ApiParam("数量2")
private String qty2;
@ApiParam("完成数量2")
private String completeQty2;
@ApiParam("数量3")
private String qty3;
@ApiParam("完成数量3")
private String completeQty3;
@ApiParam("数量4")
private String qty4;
@ApiParam("完成数量4")
private String completeQty4;
@ApiParam("数量5")
private String qty5;
@ApiParam("完成数量5")
private String completeQty5;
@ApiParam("数量6")
private String qty6;
@ApiParam("完成数量6")
private String completeQty6;
@ApiParam("数量7")
private String qty7;
@ApiParam("完成数量7")
private String completeQty7;
@ApiParam("合计")
private String amountStr;
@ApiParam("完成合计")
private String completeAmountStr;
}

@ -0,0 +1,48 @@
package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.mes.bean.MesLabelTemplate;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* @Description: model
* @Reference:
* @Author: wangjie
* @CreateDate:2019-08-27-13:24
* @Modify:
**/
@Data
@Api("条码打印模版model")
public class SnPrintLabelTemplateModel {
@ApiParam("模版信息")
private MesLabelTemplate labelTemplate;
@ApiParam("工厂")
private String organizeCode;
@ApiParam("物料号")
private String partNo;
@ApiParam("客户代码")
private String custCode;
@ApiParam("条码类型 10-过程条码20-产品条码30-包装条码")
private Integer snType;
@ApiParam("包装条码层级 1-第一层2-第二层3-第三层4-第四层")
private Integer packLevel;
public SnPrintLabelTemplateModel() {
}
public SnPrintLabelTemplateModel(String organizeCode, String partNo, String custCode, Integer snType, Integer packLevel, MesLabelTemplate labelTemplate) {
this.organizeCode = organizeCode;
this.partNo = partNo;
this.custCode = custCode;
this.snType = snType;
this.packLevel = packLevel;
this.labelTemplate = labelTemplate;
}
}

@ -132,9 +132,6 @@ public class StationRequestBean implements Serializable {
@ApiParam("客户工厂代码")
private String customerFactoryCode;
@ApiParam("发运命令")
private String shippingCmd;
@Override
public String toString() {
return "StationRequestBean{" +

@ -0,0 +1,17 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesBom;
import cn.estsh.i3plus.pojo.mes.bean.MesDataAuth;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : jack.jia
* @CreateDate : 2019-04-02
* @Modify:
**/
@Repository
public interface MesDataAuthRepository extends BaseRepository<MesDataAuth, Long> {
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesOee;
import org.springframework.stereotype.Repository;
/**
* @Description:
* @Author: jokelin
* @Date: 2020/4/28 5:04
* @Modify:
*/
@Repository
public interface MesOeeRepository extends BaseRepository<MesOee, Long> {
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesOperateObjectAttribute;
import org.springframework.stereotype.Repository;
/**
* @Description:
* @Author: jokelin
* @Date: 2020/4/28 5:05
* @Modify:
*/
@Repository
public interface MesOperateObjectAttributeRepository extends BaseRepository<MesOperateObjectAttribute, Long> {
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesOperateObjectCfg;
import org.springframework.stereotype.Repository;
/**
* @Description:
* @Author: jokelin
* @Date: 2020/4/28 5:04
* @Modify:
*/
@Repository
public interface MesOperateObjectCfgRepository extends BaseRepository<MesOperateObjectCfg, Long> {
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesOperateObject;
import org.springframework.stereotype.Repository;
/**
* @Description:
* @Author: jokelin
* @Date: 2020/4/28 5:05
* @Modify:
*/
@Repository
public interface MesOperateObjectRepository extends BaseRepository<MesOperateObject, Long> {
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesScriptPersistence;
import org.springframework.stereotype.Repository;
/**
* @Description:
* @Author: jokelin
* @Date: 2020/4/28 5:03
* @Modify:
*/
@Repository
public interface MesScriptPersistenceRepository extends BaseRepository<MesScriptPersistence, Long> {
}

@ -2495,6 +2495,30 @@ public class MesHqlPack {
return packBean;
}
/**
*
*
* @param mesProdScatterDetail
* @param organizeCode
* @return
*/
public static DdlPackBean getMesScatterDetail(MesProdScatterDetail mesProdScatterDetail, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesProdScatterDetail, organizeCode);
if (!StringUtils.isEmpty(mesProdScatterDetail.getPartNo())) {
DdlPreparedPack.getStringLikerPack(mesProdScatterDetail.getPartNo(), "partNo", packBean);
}
if (!StringUtils.isEmpty(mesProdScatterDetail.getPartName())) {
DdlPreparedPack.getStringLikerPack(mesProdScatterDetail.getPartName(), "partName", packBean);
}
if (!StringUtils.isEmpty(mesProdScatterDetail.getProduceCtgyCode())) {
DdlPreparedPack.getStringLikerPack(mesProdScatterDetail.getProduceCtgyCode(), "produceCtgyCode", packBean);
}
if (!StringUtils.isEmpty(mesProdScatterDetail.getSpCfgCode())) {
DdlPreparedPack.getStringLikerPack(mesProdScatterDetail.getSpCfgCode(), "spCfgCode", packBean);
}
return packBean;
}
public static DdlPackBean getMesBoardEquDetail(MesBoardEquDetail mesBoardEquDetail) {
DdlPackBean packBean = getAllBaseData(mesBoardEquDetail.getOrganizeCode());
DdlPreparedPack.getStringEqualPack(mesBoardEquDetail.getBoardCode(), "boardCode", packBean);
@ -2625,4 +2649,15 @@ public class MesHqlPack {
}
return packBean;
}
public static DdlPackBean getDataAuthCondition(MesDataAuth dataAuth, String organizeCode) {
DdlPackBean packBean = DdlPackBean.getDdlPackBean(organizeCode);
if (!StringUtils.isEmpty(dataAuth.getDataObject())) {
DdlPreparedPack.getStringLikerPack(dataAuth.getDataObject(), "dataObject", packBean);
}
if (dataAuth.getRoleIdVal() > 0) {
DdlPreparedPack.getNumEqualPack(dataAuth.getRoleIdVal(), "roleId", packBean);
}
return packBean;
}
}

@ -5,14 +5,14 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>i3plus-pojo-model</artifactId>
<packaging>jar</packaging>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<dependencies>
<dependency>

@ -19,4 +19,8 @@ public class ExportDataModel {
private String exportCol;
private String title;
private Integer module;
}

@ -5,7 +5,7 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

@ -53,6 +53,21 @@ public class CoreHqlPack {
return result.toString();
}
/**
* In
* @param columnName
* @return
*/
public static DdlPackBean packHqlInStr(String columnName, String[] params){
DdlPackBean ddlPackBean = new DdlPackBean();
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.IS_VAILD.VAILD.getValue(),"isValid",ddlPackBean);
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue(),"isDeleted",ddlPackBean);
DdlPreparedPack.getInPack(params, columnName, ddlPackBean);
return ddlPackBean;
}
/**
*
* @param resource

@ -5,7 +5,7 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

@ -5,7 +5,7 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

@ -5,14 +5,14 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>i3plus-pojo-softswitch</artifactId>
<packaging>jar</packaging>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<dependencies>

@ -5,7 +5,7 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

@ -5,7 +5,7 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

@ -41,6 +41,10 @@ public class BasVendor extends BaseBean{
@ApiParam("供应商全称")
private String vendorDesc;
@Column(name = "USER_NAME")
@ApiParam("用户名")
private String userName;
@Column(name="VENDOR_ADDR")
@ApiParam("供应商地址")
private String vendorAddr;
@ -57,10 +61,6 @@ public class BasVendor extends BaseBean{
@ApiParam(value = "是否发ASN", example = "0")
private Integer isAsn;
@Column(name = "USER_NAME")
@ApiParam(value = "用户名")
private String userName;
@Column(name = "PASSWORD")
@ApiParam(value = "密码")
private String password;

@ -47,4 +47,14 @@ public class WmsCustWindow extends BaseBean {
@Column(name = "DELAY_HOUR")
@ApiParam(value = "容差")
private Integer delayHour;
public WmsCustWindow(WmsCustWindow custWindow) {
this.custNo = custWindow.getCustNo();
this.custWindowTime = custWindow.getCustWindowTime();
this.weeks = custWindow.getWeeks();
this.delayHour = custWindow.getDelayHour();
}
public WmsCustWindow() {
}
}

@ -1,7 +1,6 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api;
@ -359,4 +358,10 @@ public class WmsDocMovementDetails extends BaseBean {
this.modifyDatetime = modifyDatetime;
}
public WmsDocMovementDetails(WmsPOMasterDetails poMasterDetails) {
this.orderNo = poMasterDetails.getOrderNo();
this.planDate = poMasterDetails.getPlanDate();
this.planTime = poMasterDetails.getPlanTime();
}
}

@ -217,4 +217,12 @@ public class WmsDocMovementMaster extends BaseBean {
public int getBusiTypeVal() {
return this.busiType == null ? 0 : this.busiType;
}
public WmsDocMovementMaster(WmsPOMaster wmsPoMaster) {
this.orderNo = wmsPoMaster.getOrderNo();
this.vendorNo = wmsPoMaster.getVendorNo();
}
public WmsDocMovementMaster() {
}
}

@ -15,6 +15,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
* @Description :
@ -67,4 +68,8 @@ public class WmsDocSoDetails extends BaseBean {
@ColumnDefault("0")
@ApiParam(value = "需求数量", example = "0")
public Double qty;
@Transient
@ApiParam(value = "客户编号")
private String custCode;
}

@ -72,6 +72,10 @@ public class WmsDockOrderInfo extends BaseBean {
private String orderNo;
@Transient
@ApiParam("驾驶员编码")
private String driverNo;
@Transient
@ApiParam("库位代码")
private Integer masterStatus;
}

@ -0,0 +1,72 @@
package cn.estsh.i3plus.pojo.wms.dto;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
/**
* @Description :
* @Reference :
* @Author :QianHuaSheng
* @CreateDate : 2020-04-27 4:37
* @Modify:
**/
@Data
@Entity
public class AssignmentDto {
@Id
@GeneratedValue(generator = "IDGenerator")
@GenericGenerator(name = "IDGenerator", strategy = "assigned")
@ApiParam(value = "主键", example = "0")
public Long id;
@ApiParam(value = "单号")
private String orderNo;
@ApiParam(value = "时间")
private String createDatetime;
@ApiParam(value = "零件号")
private String partNo;
@ApiParam(value = "零件号名称")
private String partNameRdd;
@ApiParam(value = "源存储区")
private String srcZoneNo;
@ApiParam(value = "客户编码")
private String custNo;
@ApiParam(value = "状态", example = "1")
@AnnoOutputColumn(refClass = WmsEnumUtil.ORDER_DETAILS_STATUS.class, refForeignKey = "value", value = "description")
private Integer itemStatus;
@ApiParam(value = "状态中文描述", example = "1")
private String itemStatusStr;
@ApiParam(value = "出库数量")
private Double outQty;
public AssignmentDto(String orderNo, String createDatetime, String partNameRdd,
String srcZoneNo, String custNo, Integer itemStatus, Double outQty, String partNo) {
this.orderNo = orderNo;
this.createDatetime = createDatetime;
this.partNameRdd = partNameRdd;
this.srcZoneNo = srcZoneNo;
this.custNo = custNo;
this.itemStatus = itemStatus;
this.outQty = outQty;
this.partNo = partNo;
}
public AssignmentDto() {
}
}

@ -72,4 +72,7 @@ public class WmsStockSnDto {
this.partSpec = partSpec;
this.zoneNo = zoneNo;
}
public WmsStockSnDto() {
}
}

@ -21,6 +21,9 @@ public class WmsSupplierExtensionDto {
@ApiParam(value = "供应商编号")
private String vendorNo;
@ApiParam(value = "供应商编号")
private String vendorName;
@ApiParam(value = "数量")
private Integer num;
@ -28,8 +31,9 @@ public class WmsSupplierExtensionDto {
}
public WmsSupplierExtensionDto(String vendorNo, Integer num) {
public WmsSupplierExtensionDto(String vendorNo, Integer num, String vendorName) {
this.vendorNo = vendorNo;
this.num = num;
this.vendorName = vendorName;
}
}

@ -1663,7 +1663,8 @@ public class WmsHqlPack {
DdlPreparedPack.getNumEqualPack(wmsStockSn.getSnStatus(), "snStatus", result);
DdlPreparedPack.getNumEqualPack(wmsStockSn.getQcStatus(), "qcStatus", result);
DdlPreparedPack.getStringEqualPack(wmsStockSn.getRefSrc(), "refSrc", result);
DdlPreparedPack.getNumEqualPack(wmsStockSn.getPrinted(), "printed", result);
DdlPreparedPack.getStringEqualPack(wmsStockSn.getPackageNo(), "packageNo", result);
DdlPreparedPack.getNumEqualPack(wmsStockSn.getPrinted(), "printed", result);
DdlPreparedPack.getInPackList(wmsStockSn.getErpZoneNoList(), "zoneNo", result);
DdlPreparedPack.getNumEqualPack(wmsStockSn.getSnType(), "snType", result);

@ -5,7 +5,7 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

@ -15,7 +15,7 @@
<groupId>i3plus.pojo</groupId>
<artifactId>i3plus-pojo</artifactId>
<packaging>pom</packaging>
<version>1.0-DEV-SNAPSHOT</version>
<version>1.0-PROD-SNAPSHOT</version>
<modules>
<module>modules/i3plus-pojo-base</module>
<module>modules/i3plus-pojo-platform</module>

Loading…
Cancel
Save