任务#1744:全局替换自定义搜索功能
commit
75be7d5078
@ -0,0 +1,65 @@
|
||||
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_FULL_NAME")
|
||||
@ApiParam("数据对象全称")
|
||||
private String dataObjectFullName;
|
||||
|
||||
@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;
|
||||
}
|
@ -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,69 @@
|
||||
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_CFG")
|
||||
@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;
|
||||
|
||||
@Transient
|
||||
@ApiParam("属性类型")
|
||||
private Integer attributeType;
|
||||
}
|
@ -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;
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
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/26 11:43 上午
|
||||
* @Modify:
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_WINDOW")
|
||||
@Api("MES_看板界面")
|
||||
public class MesWindow extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -55209393692924780L;
|
||||
|
||||
@Column(name = "WINDOW_NO")
|
||||
@ApiParam("界面编号")
|
||||
private String windowNo;
|
||||
|
||||
@Column(name = "WINDOW_NAME")
|
||||
@ApiParam("界面名称")
|
||||
private String windowName;
|
||||
|
||||
@Column(name = "WINDOW_TYPE")
|
||||
@ApiParam("界面类型")
|
||||
private Integer windowType;
|
||||
|
||||
@Column(name = "MEMO")
|
||||
@ApiParam("备注")
|
||||
private String memo;
|
||||
|
||||
@Transient
|
||||
@ApiParam("顺序")
|
||||
private Integer seq;
|
||||
}
|
@ -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<FilterRules> groups;
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class FilterRule {
|
||||
private String field;
|
||||
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 FilterRules {
|
||||
private String andOr;
|
||||
private List<FilterRule> rules;
|
||||
}
|
@ -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;
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description: 生产计划批量编制明细model
|
||||
* @Author: wangjie
|
||||
* @Date: 2020/4/21 6:55 下午
|
||||
* @Modify:
|
||||
*/
|
||||
@Data
|
||||
public class ProdPlanBatchCompileDetailModel {
|
||||
|
||||
@ApiParam("日期")
|
||||
private String date;
|
||||
|
||||
@ApiParam("日期对应到数量")
|
||||
private Double qty;
|
||||
|
||||
@ApiParam("是否只读")
|
||||
private Boolean readonly;
|
||||
|
||||
@ApiParam("完成数量")
|
||||
private Double completeQty;
|
||||
|
||||
@ApiParam("完成数量的颜色")
|
||||
private String color;
|
||||
|
||||
@ApiParam("工单号")
|
||||
private String orderNo;
|
||||
|
||||
}
|
@ -0,0 +1,123 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description: 生产计划批量编制model
|
||||
* @Author: wangjie
|
||||
* @Date: 2020/4/21 6:55 下午
|
||||
* @Modify:
|
||||
*/
|
||||
@Data
|
||||
public class ProdPlanBatchCompileModel {
|
||||
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@ApiParam("预留字段1")
|
||||
private String reserved1;
|
||||
|
||||
@ApiParam("预留字段2")
|
||||
private String reserved2;
|
||||
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@ApiParam("物料名称")
|
||||
private String partNameRdd;
|
||||
|
||||
@ApiParam(value = "班组名称")
|
||||
public String shiftGroupName;
|
||||
|
||||
@ApiParam(value = "班次名称")
|
||||
public String shiftName;
|
||||
|
||||
@ApiParam("班组")
|
||||
private String shiftGroup;
|
||||
|
||||
@ApiParam("班次")
|
||||
private String shiftCode;
|
||||
|
||||
@ApiParam("客户代码")
|
||||
private String custCode;
|
||||
|
||||
@ApiParam("客户订单号")
|
||||
private String custOrderNo;
|
||||
|
||||
@ApiParam("预留字段3")
|
||||
private String reserved3;
|
||||
|
||||
@ApiParam("预留字段4")
|
||||
private String reserved4;
|
||||
|
||||
@ApiParam("单位")
|
||||
private String unit;
|
||||
|
||||
@ApiParam("日期数量集合")
|
||||
private List<ProdPlanBatchCompileDetailModel> detailList;
|
||||
|
||||
@ApiParam("合计")
|
||||
private Double amount;
|
||||
|
||||
@ApiParam("完成合计")
|
||||
private Double completeAmount;
|
||||
|
||||
@ApiParam("计划类型")
|
||||
private Integer planType;
|
||||
|
||||
@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,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> {
|
||||
}
|
@ -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.MesWindow;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: jokelin
|
||||
* @Date: 2020/4/26 11:48 上午
|
||||
* @Modify:
|
||||
*/
|
||||
@Repository
|
||||
public interface MesWindowRepository extends BaseRepository<MesWindow, Long> {
|
||||
}
|
@ -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() {
|
||||
}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package cn.estsh.i3plus.pojo.wms.modelbean;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description : 脚本执行日志
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2020-04-29
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Api("插件日志")
|
||||
public class ScriptLoggerModel {
|
||||
@ApiParam("工厂")
|
||||
private Boolean error;
|
||||
|
||||
@ApiParam("日志内容")
|
||||
private String context;
|
||||
|
||||
@ApiParam("日志打印日期")
|
||||
private String printDate;
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package cn.estsh.i3plus.pojo.wms.modelbean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description : 子检测项
|
||||
* @Reference :
|
||||
* @Author : jimmy.zeng
|
||||
* @CreateDate : 2020-04-29 16:23
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Api("子检测项model")
|
||||
public class WmsPartItemCheckModel {
|
||||
|
||||
@ApiParam("子检测项代码")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
|
||||
private String checkItemCode;
|
||||
|
||||
@ApiParam("子检测项名称")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
|
||||
private String checkItemName;
|
||||
|
||||
@ApiParam("子检测箱值类型")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, dataSrc = "BH_VALUE_TYPE")
|
||||
private Integer valueType;
|
||||
|
||||
@ApiParam("检测值")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
|
||||
private Double checkValue;
|
||||
|
||||
@ApiParam("是否合格")
|
||||
@AnnoOutputColumn(refClass = WmsEnumUtil.TRUE_OR_FALSE.class, refForeignKey = "value", value = "description")
|
||||
public Integer isQualified;
|
||||
|
||||
@ApiParam("标准值")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
|
||||
private Integer standard;
|
||||
|
||||
@ApiParam("最大值")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
|
||||
private Double max;
|
||||
|
||||
@ApiParam("最小值")
|
||||
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
|
||||
private Double min;
|
||||
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package cn.estsh.i3plus.pojo.wms.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.wms.engine.script.EngineScriptPersistenceHistory;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface EngineScriptPersistenceHistoryRepository extends BaseRepository<EngineScriptPersistenceHistory, Long> {
|
||||
}
|
Loading…
Reference in New Issue