任务#1744:全局替换自定义搜索功能

yun-zuoyi
许心洁 5 years ago
commit 75be7d5078

@ -37,8 +37,8 @@ public abstract class BaseBean implements Serializable {
@Id
@GeneratedValue(generator = "IDGenerator")
@GenericGenerator(name = "IDGenerator", strategy = "assigned")
@Column(name = "ID")
@ApiParam(value = "主键", example = "0")
@Column(name="ID")
@ApiParam(value = "主键",example = "0")
@JsonSerialize(using = ToStringSerializer.class)
@AnnoOutputColumn(hidden = true)
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
@ -46,41 +46,40 @@ public abstract class BaseBean implements Serializable {
//get单独处理
public Long getId() {
if (id != null) {
if(id != null) {
return id.longValue();
} else {
}else{
return id;
}
}
/**
* MonogoDB _id
*
* @param id
*/
@JSONField(name = "_id")
@JSONField(name="_id")
public void setId(Long id) {
this.id = id;
}
@Column(name = "ORGANIZE_CODE", nullable = false)
@ApiParam(value = "组织代码")
@Column(name="ORGANIZE_CODE", nullable = false)
@ApiParam(value ="组织代码")
// @AnnoOutputColumn(hidden = true)
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT, isQuery = 2, isRequire = 2)
public String organizeCode;
@Column(name = "IS_VALID", columnDefinition = "int default 1", nullable = false)
@ApiParam(value = "有效性", example = "1")
@AnnoOutputColumn(refClass = WmsEnumUtil.TRUE_OR_FALSE.class, refForeignKey = "value", value = "description", hidden = true)
@Column(name="IS_VALID", columnDefinition = "int default 1", nullable = false)
@ApiParam(value = "有效性",example = "1")
@AnnoOutputColumn(refClass = WmsEnumUtil.TRUE_OR_FALSE.class,refForeignKey = "value",value = "description", hidden = true)
public Integer isValid; //CommonEnumUtil.IS_VAILD;
@Column(name = "IS_DELETED", columnDefinition = "int default 2", nullable = false)
@ApiParam(value = "是否已删除", example = "2")
@Column(name="IS_DELETED", columnDefinition = "int default 2", nullable = false)
@ApiParam(value = "是否已删除",example = "2")
@AnnoOutputColumn(hidden = true)
//逻辑删除,软删除
public Integer isDeleted; //CommonEnumUtil.TRUE_OR_FALSEA
@Column(name = "CREATE_USER", updatable = false)
@Column(name="CREATE_USER",updatable = false)
@ApiParam(value = "创建用户")
@AnnoOutputColumn(hidden = true)
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.LIST, getValWay = CommonEnumUtil.DYNAMIC_FIELD_GET_WAY.URL,
@ -89,12 +88,12 @@ public abstract class BaseBean implements Serializable {
public String createUser;
@Indexed(direction = IndexDirection.DESCENDING)
@Column(name = "CREATE_DATE_TIME", updatable = false)
@Column(name="CREATE_DATE_TIME",updatable = false)
@ApiParam(value = "创建日期")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.DATETIME, isRequire = 2)
public String createDatetime;
@Column(name = "MODIFY_USER")
@Column(name="MODIFY_USER")
@ApiParam(value = "修改人")
@AnnoOutputColumn(hidden = true)
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.LIST, getValWay = CommonEnumUtil.DYNAMIC_FIELD_GET_WAY.URL,
@ -102,31 +101,32 @@ public abstract class BaseBean implements Serializable {
searchColumnName = "userName", listColumnName = "userLoginName,userName", explicitColumnName = "userName")
public String modifyUser;
@Column(name = "MODIFY_DATE_TIME")
@Column(name="MODIFY_DATE_TIME")
@ApiParam(value = "修改日期")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.DATETIME, isRequire = 2)
public String modifyDatetime;
@Transient
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiParam(value = "创建日期查询用,查询起始日期", example = "2018-01-01 01:00:00")
@ApiParam(value="创建日期查询用,查询起始日期",example = "2018-01-01 01:00:00")
@AnnoOutputColumn(hidden = true)
public String createDateTimeStart;
@Transient
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiParam(value = "创建日期查询用,查询结束日期", example = "2018-12-31 23:59:59")
@ApiParam(value="创建日期查询用,查询结束日期",example = "2018-12-31 23:59:59")
@AnnoOutputColumn(hidden = true)
public String createDateTimeEnd;
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiParam(value = "修改日期查询用,查询起始日期", example = "2018-01-01 01:00:00")
@Transient
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiParam(value="修改日期查询用,查询起始日期",example = "2018-01-01 01:00:00")
@AnnoOutputColumn(hidden = true)
public String modifyDateTimeStart;
@Transient
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiParam(value = "修改日期查询用,查询结束日期", example = "2018-12-31 23:59:59")
@ApiParam(value = "修改日期查询用,查询结束日期",example = "2018-12-31 23:59:59")
@AnnoOutputColumn(hidden = true)
public String modifyDateTimeEnd;
@ -136,19 +136,19 @@ public abstract class BaseBean implements Serializable {
public String orderByParam = "";
@Transient
@ApiParam(value = "排序类型1 正序2 倒序", example = "1")
@ApiParam(value = "排序类型1 正序2 倒序",example = "1")
@AnnoOutputColumn(hidden = true)
//CommonEnumUtil.ASC_OR_DESC 1 asc,2 desc
public transient Integer ascOrDesc = 1;
//排序方式
public String orderBy() {
public String orderBy(){
String result = "";
if (orderByParam != null && orderByParam.trim().length() > 0) {
if (orderByParam!=null&&orderByParam.trim().length()>0) {
result = " order by " + orderByParam;
if (ascOrDesc == CommonEnumUtil.ASC_OR_DESC.ASC.getValue()) {
if(ascOrDesc == CommonEnumUtil.ASC_OR_DESC.ASC.getValue()) {
result += " asc";
} else {
}else{
result += " desc";
}
}

@ -4,6 +4,7 @@ import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
import java.util.HashMap;
import java.util.Map;
/**
* @Description : hql
@ -141,6 +142,24 @@ public class DdlPackBean {
}
/**
* -
* @param hql
* @param hqlMap
*/
public void addColumnQuery(String hql,HashMap<String,Object> hqlMap){
if(hqlPreparedMap == null){
hqlPreparedMap = new HashMap<>();
}
if(hqlMap != null && !hqlMap.isEmpty()) {
hqlPreparedMap.putAll(hqlMap);
}
whereAppend.append(hql);
}
/**
*
* @return
*/

@ -985,6 +985,89 @@ public class BlockFormEnumUtil {
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ELEMENT_ORGANIZE_ISOLATION_STATUS {
ON(1, "ON", "开启"),
OFF(2, "OFF", "关闭");
private int value;
private String code;
private String description;
private ELEMENT_ORGANIZE_ISOLATION_STATUS(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
public static String valueOfCode(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 codeOfValue(String code) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i].value;
}
}
return tmp;
}
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;
}
public static ELEMENT_ORGANIZE_ISOLATION_STATUS valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
return values()[i];
}
}
return null;
}
public static String codeOfDescription(String code) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
*/

@ -2013,8 +2013,8 @@ public class CommonEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ACTUATOR_ENV_PATH {
PID(1,"PID" ,"PID"),
JAVA_VERSION(2, "java.version","jdk版本");
PID(1,"/PID" ,"PID"),
JAVA_VERSION(2, "/java.version","jdk版本");
private int value;
private String path;

@ -11,6 +11,59 @@ import com.fasterxml.jackson.annotation.JsonFormat;
**/
public class MesEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum HQL_EXPRESSION {
GT(">",">","大于"),
LT("<","<","小于"),
EQ("=","=","等于"),
NEQ("!=","!=","不等于"),
GTE(">=",">=","大于等于"),
LTE("<=","<=","小于等于"),
LIKE("like","like","LIKE"),
IN("in","in","包含");
private String value;
private String code;
private String description;
HQL_EXPRESSION(String value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
public String getCode() {
return code;
}
public static String valueOfDesc(String val) {
for (int i = 0; i < values().length; i++) {
if (values()[i].value.equals(val)) {
return values()[i].description;
}
}
return null;
}
public static HQL_EXPRESSION codeOf(String value) {
for (int i = 0; i < values().length; i++) {
if (values()[i].value.equals(value)) {
return values()[i];
}
}
return null;
}
}
/**
*
*/
@ -430,6 +483,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 +700,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 +1855,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 +1924,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;
@ -5018,7 +5077,8 @@ public class MesEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum BOARD_TYPE {
BOARD_CAPACITY_JIT("BOARD_CAPACITY_JIT", "产能监控看板(JIT)"),
BOARD_EQU_STATUS("BOARD_EQU_STATUS", "设备状态监控看板(布局模式)");
BOARD_EQU_STATUS("BOARD_EQU_STATUS", "设备状态监控看板(布局模式)"),
BOARD_ORG_HOUR_OEE("BOARD_ORG_HOUR_OEE", " 工厂小时OEE");
private String code;
private String description;
@ -5139,5 +5199,362 @@ public class MesEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WINDOW_TYPE {
BUTTON_CFG(10, "按钮组件"),
BOARD_BASE_WINDOW(20, "看板基础页面");
private int value;
private String description;
WINDOW_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 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;

@ -716,8 +716,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;
@ -2245,7 +2245,8 @@ public class WmsEnumUtil {
MATERIAL(40, "MATERIAL", "物料对象"),
TRANS_TYPE(50, "TRANS_TYPE", "交易代码对象"),
BUSI_TYPE(60, "BUSI_TYPE", "业务类型对象"),
BUSI_OPERATION_TYPE(70, "BUSI_OPERATION_TYPE", "业务操作对象");
BUSI_OPERATION_TYPE(70, "BUSI_OPERATION_TYPE", "业务操作对象"),
BH_CHECK_TYPE(80, "BH_CHECK_TYPE", "检测大类对象");
private String code;
private String description;
@ -6412,6 +6413,53 @@ public class WmsEnumUtil {
}
/**
* BatchHold
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum FG_INSTOCK_SN_TYPE {
NORMAL(10, "NORMAL", "实物条码(正常)"),
FIRST_PIECE(20, "FIRST_PIECE", "首件"),
MIDDLE_PIECE(30, "MIDDLE_PIECE", "中件"),
TAIL_PIECE(40, "TAIL_PIECE", "末件");
private int value;
private String code;
private String description;
FG_INSTOCK_SN_TYPE(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 valueOfDescription(int val) {
return valueOf(val);
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -6467,4 +6515,61 @@ public class WmsEnumUtil {
return valueOf(val);
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum BOM_TYPE {
INIT(10, "PART", "物料"),
BE_HANDLE(20, "OUT", "委外"),
FINISH(30, "UTENSIL", "器具");
private int value;
private String code;
private String description;
BOM_TYPE(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 static String valueOfDescription(int val) {
return valueOf(val);
}
}
}

@ -46,9 +46,14 @@ public class BfButton extends BaseBean {
}
}
@Column(name = "IS_REQUIRED_DATA")
@ApiParam(value = "是必填数据")
private Integer isRequiredData;
@Column(name = "IS_NEED_SELECT_DATA")
@ApiParam(value = "是否需要选中数据")
private Integer isNeedSelectData;
@Column(name = "IS_REFRESH")
@ApiParam(value = "是否刷新")
private Integer isRefresh;
// 关联表单功能表id
@Column(name = "METHOD_ID")

@ -1,6 +1,7 @@
package cn.estsh.i3plus.pojo.form.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
@ -66,6 +67,10 @@ public class BfDataObjectProperty extends BaseBean {
@ApiParam(value = "是否允许为空")
private Integer isNullable;
public Integer getIsNullableVal(){
return isNullable == null ? CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue() : isNullable.intValue();
}
// 字段长度
@ApiParam(value = "字段长度")
@Column(name="OBJECT_COLUMN_PRECISION")

@ -1,6 +1,7 @@
package cn.estsh.i3plus.pojo.form.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.BlockFormEnumUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
@ -82,6 +83,10 @@ public class BfElement extends BaseBean {
@ApiParam(value = "是否弱删除")
private Integer isObjectDelWeak;
public Integer getIsObjectDelWeakVal(){
return isObjectDelWeak == null ? BlockFormEnumUtil.ELEMENT_DELETE_WEAK_STATUS.OFF.getValue() : isObjectDelWeak.intValue();
}
@Column(name = "ELEMENT_DEL_WEAK_ATTR_ID")
@ApiParam(value = "元素弱删除属性id")
private Long elementDelWeakAttrId;
@ -90,10 +95,22 @@ public class BfElement extends BaseBean {
@ApiParam(value = "是否有效")
private Integer isObjectValid;
public Integer getIsObjectValidVal(){
return isObjectValid == null ? BlockFormEnumUtil.ELEMENT_VALID_STATUS.OFF.getValue() : isObjectValid.intValue();
}
@Column(name = "ELEMENT_VALID_ATTR_ID")
@ApiParam(value = "元素有效属性id")
private Long elementValidAttrId;
@Column(name = "IS_ORGANIZE_ISOLATION")
@ApiParam(value = "是否组织隔离")
private Integer isOrganizeIsolation;
public Integer getIsOrganizeIsolationVal(){
return isOrganizeIsolation == null ? BlockFormEnumUtil.ELEMENT_ORGANIZE_ISOLATION_STATUS.OFF.getValue() : isOrganizeIsolation.intValue();
}
@Column(name = "IS_OBJECT_EXPORT")
@ApiParam(value = "是否导出")
private Integer isObjectExport;

@ -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;
}

@ -10,6 +10,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
@ -93,6 +94,7 @@ public class IfDismantleRecord extends BaseBean implements Serializable {
@Column(name = "ERROR_MESSAGE")
@ApiParam("异常消息")
@Lob
private String errorMessage;
@Column(name = "ACTION_CODE")

@ -10,6 +10,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import java.io.Serializable;
@ -84,6 +85,7 @@ public class IfPackageDetail extends BaseBean implements Serializable {
@Column(name = "ERROR_MESSAGE")
@ApiParam("异常消息")
@Lob
private String errorMessage;
@Column(name = "ACTION_CODE")
@ -93,4 +95,8 @@ public class IfPackageDetail extends BaseBean implements Serializable {
@Column(name = "IF_CODE")
@ApiParam("接口代码")
private String ifCode;
@Column(name = "CT_NO")
@ApiParam("容器编号")
private String ctNo;
}

@ -10,6 +10,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import java.io.Serializable;
@ -96,6 +97,7 @@ public class IfProductOffLine extends BaseBean implements Serializable {
@Column(name = "ERROR_MESSAGE")
@ApiParam("异常消息")
@Lob
private String errorMessage;
@Column(name = "ACTION_CODE")

@ -11,6 +11,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import java.io.Serializable;
@ -93,6 +94,7 @@ public class IfQueueShipping extends BaseBean implements Serializable {
@Column(name = "ERROR_MESSAGE")
@ApiParam("异常消息")
@Lob
private String errorMessage;
@Column(name = "ACTION_CODE")

@ -10,6 +10,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import java.io.Serializable;
@ -75,6 +76,7 @@ public class IfRawPartData extends BaseBean implements Serializable {
@Column(name = "ERROR_MESSAGE")
@ApiParam("异常消息")
@Lob
private String errorMessage;
@Column(name = "ACTION_CODE")

@ -11,6 +11,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import java.io.Serializable;
@ -47,6 +48,7 @@ public class IfWmsPpm extends BaseBean implements Serializable {
@Column(name = "ERROR_MESSAGE")
@ApiParam("异常消息")
@Lob
private String errorMessage;
@Column(name = "ACTION_CODE")

@ -1,6 +1,7 @@
package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
@ -11,6 +12,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;
/**
@ -49,4 +51,38 @@ public class MesBoardEquDetail extends BaseBean implements Serializable {
@Column(name = "Y_AXES")
@ApiParam(value = "纵坐标")
private Double yAxes = 0d;
@Transient
@ApiParam("设备状态")
private Integer equStatus;
@Transient
@ApiParam("颜色")
private String color;
@JsonProperty("xAxes")
public Double getxAxes() {
return xAxes;
}
public void setxAxes(Double xAxes) {
this.xAxes = xAxes;
}
@JsonProperty("yAxes")
public Double getyAxes() {
return yAxes;
}
public void setyAxes(Double yAxes) {
this.yAxes = yAxes;
}
public double getXAxes() {
return this.xAxes == null ? 0.0d : this.xAxes;
}
public double getYAxes() {
return this.yAxes == null ? 0.0d : this.yAxes;
}
}

@ -34,10 +34,6 @@ public class MesBoardEquStatus extends BaseBean implements Serializable {
@ApiParam("看板代码")
private String boardCode;
@Column(name = "EQU_CODE")
@ApiParam("设备代码")
private String equCode;
@Column(name = "EQU_STATUS_CODE")
@ApiParam("状态代码")
private Integer equStatusCode;

@ -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;
}

@ -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,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;
}

@ -61,8 +61,8 @@ public class MesPatternJis extends BaseBean implements Serializable {
private Integer patternType;
@Lob
@Column(name = "RULE")
@ApiParam("规则")
private String rule;
@Column(name = "MATCH_RULE")
@ApiParam("匹配规则")
private String matchRule;
}

@ -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;
}

@ -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;
}

@ -162,11 +162,11 @@ public class MesWorkOrder extends BaseBean implements Serializable {
private String reserved2;
@Column(name = "RESERVED3")
@ApiParam("预留字段13")
@ApiParam("预留字段3")
private String reserved3;
@Column(name = "RESERVED4")
@ApiParam("预留字段14")
@ApiParam("预留字段4")
private String reserved4;
@Column(name = "RESERVED5")
@ -178,18 +178,6 @@ public class MesWorkOrder extends BaseBean implements Serializable {
@ApiParam(value = "乐观锁", example = "1")
public Integer lockVersion;
@Column(name = "CATEGORY_CODE1")
@ApiParam("类型1")
private String categoryCode1;
@Column(name = "CATEGORY_CODE2")
@ApiParam("类型2")
private String categoryCode2;
@Column(name = "CATEGORY_CODE3")
@ApiParam("类型3")
private String categoryCode3;
/********************** 冗余字段 *********************************/
@Transient
@ApiParam(value = "工作中心名称")
@ -272,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;
}

@ -151,6 +151,26 @@ public class MesWorkOrderLog extends BaseBean implements Serializable {
@ApiParam("首检生成数量")
private Double fiGenerateQty;
@Column(name = "RESERVED1")
@ApiParam("预留字段1")
private String reserved1;
@Column(name = "RESERVED2")
@ApiParam("预留字段2")
private String reserved2;
@Column(name = "RESERVED3")
@ApiParam("预留字段3")
private String reserved3;
@Column(name = "RESERVED4")
@ApiParam("预留字段4")
private String reserved4;
@Column(name = "RESERVED5")
@ApiParam("预留字段5")
private String reserved5;
/********************** 冗余字段 *********************************/
@Transient
@ApiParam(value = "工作中心名称")

@ -3,6 +3,7 @@ package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.mes.bean.MesBoardEquDetail;
import cn.estsh.i3plus.pojo.mes.bean.MesBoardEquStatus;
import cn.estsh.i3plus.pojo.mes.bean.MesBoardShiftSectionCapacity;
import cn.estsh.i3plus.pojo.mes.bean.MesOee;
import io.swagger.annotations.ApiParam;
import lombok.Data;
@ -48,4 +49,7 @@ public class BoardModel {
@ApiParam("看板设备明细")
private List<MesBoardEquDetail> boardEquDetailList;
@ApiParam("oee")
private List<MesOee> oeeList;
}

@ -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<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;
}

@ -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;
}
}

@ -16,23 +16,28 @@ import lombok.Data;
@Api(value="生产工单导入",description = "生产工单导入")
public class MesWorkOrderModel {
@ApiParam("工单号")
//工单号
@ApiParam("OrderCode")
@AnnoOutputColumn
private String orderNo;
@ApiParam("物料号")
//物料号
@ApiParam("ItemCode")
@AnnoOutputColumn
private String partNo;
@ApiParam("客户产线代码")
//产线代码
@ApiParam("ProductionLineID")
@AnnoOutputColumn
private String custProdLineCode;
private String workCenterCode;
@ApiParam("数量")
//数量
@ApiParam("DemandQty")
@AnnoOutputColumn
private Double qty;
@ApiParam("开始时间")
//开始时间
@ApiParam("ProductDate")
@AnnoOutputColumn
private String startTime;

@ -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,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> {
}

@ -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> {
}

@ -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;
}
}

@ -1,7 +1,6 @@
package cn.estsh.i3plus.pojo.model.common;
import lombok.Data;
import java.util.LinkedHashMap;
/**
* @Description :
@ -19,4 +18,8 @@ public class ExportDataModel {
private String exportCol;
private String title;
private Integer module;
}

@ -8,6 +8,10 @@ import com.thoughtworks.xstream.annotations.XStreamOmitField;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;
import java.util.Map;
@ -20,9 +24,12 @@ import java.util.Map;
**/
@Data
@XStreamAlias("server")
@XmlRootElement(name ="server")
@XmlAccessorType(XmlAccessType.NONE)
public class SuitServerModel {
// 执行方法命令
@XmlElement
@ApiParam(value = "适配器code")
private String suitCaseCode;
/* 认证使用 以后使用 */
@ -31,6 +38,7 @@ public class SuitServerModel {
// 请求ID
private String requestId;
// 传输单对象
@XmlElement(name = "data")
private Object obj;
// 传输集合
private List list;
@ -44,6 +52,7 @@ public class SuitServerModel {
*/
// @XStreamImplicit
@XStreamCDATA
@XmlElement
private String suitMessage;
/**

@ -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
@ -339,6 +354,7 @@ public class CoreHqlPack {
}
DdlPreparedPack.getNumEqualPack(dictionary.getParentId(), "parentId", result);
DdlPreparedPack.getStringLikerPack(dictionary.getParentCodeRdd(), "parentCodeRdd", result);
DdlPreparedPack.getStringLikerPack(dictionary.getParentNameRdd(), "parentNameRdd", result);
DdlPreparedPack.getStringLikerPack(dictionary.getDictionaryValue(), "dictionaryValue", result);
DdlPreparedPack.getNumEqualPack(dictionary.getDictionarySoftType(), "dictionarySoftType", result);

@ -31,6 +31,7 @@ import javax.persistence.Table;
@Api(value = "长数据", description = "长数据")
public class BsLongData extends BaseBean {
private static final long serialVersionUID = -329128754646765129L;
@Column(name = "REF_ID")
@ApiParam(value = "关联id")
private Long refId;

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.softswitch.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
@ -40,6 +42,7 @@ public class BsSuitCaseREST extends BaseBean {
//CommonEnumUtil.HTTP_METHOD_TYPE
@Column(name = "REQUEST_METHOD_ID")
@ApiParam(value = "请求方式id")
@AnnoOutputColumn(refClass = CommonEnumUtil.HTTP_METHOD_TYPE.class)
private Integer requestMethodId;
@Transient

@ -46,6 +46,13 @@ public class BasVendor extends BaseBean{
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)
private String vendorDesc;
@Column(name = "USER_NAME")
@ApiParam("用户名")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.LIST, getValWay = CommonEnumUtil.DYNAMIC_FIELD_GET_WAY.URL,
dataSrc = "/impp/operate/sys-user/query-user-by-pager",
searchColumnName = "userName",listColumnName = "userLoginName,userName", explicitColumnName = "userName")
private String userName;
@Column(name="VENDOR_ADDR")
@ApiParam("供应商地址")
private String vendorAddr;
@ -65,13 +72,6 @@ public class BasVendor extends BaseBean{
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isRequire = 2, dataSrc = "TRUE_OR_FALSE")
private Integer isAsn;
@Column(name = "USER_NAME")
@ApiParam(value = "用户名")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.LIST, getValWay = CommonEnumUtil.DYNAMIC_FIELD_GET_WAY.URL,
dataSrc = "/impp/operate/sys-user/query-user-by-pager",
searchColumnName = "userName",listColumnName = "userLoginName,userName", explicitColumnName = "userName")
private String userName;
@Column(name = "PASSWORD")
@ApiParam(value = "密码")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)

@ -4,6 +4,7 @@ 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.CommonEnumUtil;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
@ -112,6 +113,14 @@ public class WmsBom extends BaseBean {
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String terminalNo;
@Column(name = "BOM_TYPE")
@ApiParam(value = "BOM类型")
@ColumnDefault("10")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isRequire = 1)
@AnnoOutputColumn(refClass = WmsEnumUtil.BOM_TYPE.class, refForeignKey = "value", value = "description")
private Integer bomType;
@ApiParam(value = "目标存储区")
@Transient
public String destZoneNo;

@ -4,6 +4,7 @@ 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.CommonEnumUtil;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
@ -115,6 +116,13 @@ public class WmsBomHistory extends BaseBean {
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String newBomVersion;
@Column(name = "BOM_TYPE")
@ApiParam(value = "BOM类型")
@ColumnDefault("10")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isRequire = 1)
@AnnoOutputColumn(refClass = WmsEnumUtil.BOM_TYPE.class, refForeignKey = "value", value = "description")
private Integer bomType;
@ApiParam(value = "目标存储区")
@Transient
public String destZoneNo;

@ -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;
}

@ -71,7 +71,7 @@ public class WmsFGInStock extends BaseBean {
public String remark;
/**
* MNU=,MES=MES
* BH:BatchHold,MNU=,MES=MES
*/
@Column(name = "SRC")
@ApiParam("单据来源")
@ -100,4 +100,19 @@ public class WmsFGInStock extends BaseBean {
@Column(name = "MFG_LOG_NO")
@ApiParam("生产批次")
public String mfgLogNo;
@Column(name = "BATCH_NO")
@ApiParam("batch号")
private String batchNo;
@Column(name = "PACKAGE_NO")
@ApiParam("箱条码")
private String packageNo;
/**
* 10=(),20=,30=,40=
*/
@Column(name = "SN_TYPE")
@ApiParam("条码类型")
private Integer snType;
}

@ -63,7 +63,7 @@ public class WmsPartItemCheck extends BaseBean {
@Column(name = "STANDARD")
@ApiParam("标准值")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double standard;
private Integer standard;
@Column(name = "MAX")
@ApiParam("最大值")

@ -392,6 +392,14 @@ public class WmsStockSn extends BaseBean {
@Transient
private String requerimentCode;
@Transient
@ApiParam("大检测项类型")
public Integer checkType;
@Transient
@ApiParam("样本数")
private Integer sampleSize;
public WmsStockSn() {
}

@ -13,6 +13,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
* @Description :
@ -64,4 +65,18 @@ public class WmsTestResultDetails extends BaseBean {
@Column(name = "check_value")
@ApiParam("检测值")
public String checkValue;
@Transient
@ApiParam("已检测数")
private Long checkSize;
public WmsTestResultDetails() {
}
public WmsTestResultDetails(String partNo, Integer checkType, String bhCode, Long checkSize) {
this.partNo = partNo;
this.checkType = checkType;
this.bhCode = bhCode;
this.checkSize = checkSize;
}
}

@ -70,7 +70,6 @@ public class WmsTestResultSummary extends BaseBean {
@Column(name = "PICK_STATUS")
@ApiParam("挑选状态")
@AnnoOutputColumn(refClass = WmsEnumUtil.REWORK_STATUS.class, refForeignKey = "value", value = "description")
public Integer pickStatus;
@Column(name = "PICK_RESULT")

@ -76,7 +76,7 @@ public class WmsTransportRule extends BaseBean {
public String partNo;
@Column(name = "CUST_NO")
@ApiParam("客户代码")
@ApiParam("客户编号")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)
public String custNo;

@ -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;
}
}

@ -0,0 +1,63 @@
package cn.estsh.i3plus.pojo.wms.engine.script;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
*
*
* @author jason.niu
* @since 2020-04-29
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table(name = "SCRIPT_PERSISTENCE_HISTORY")
@Api("系统动态脚本")
public class EngineScriptPersistenceHistory extends BaseBean {
// 脚本调用的唯一编号例如WMS_PDA_0001
@Column(name = "SCRIPT_NO", length = 50)
private String scriptNo;
// 脚本的中文名称
@Column(name = "SCRIPT_NAME", length = 50)
private String scriptName;
// 10=组件脚本20=表单脚本30=报表脚本40=JOB脚本50=其他脚本
@Column(name = "SCRIPT_TYPE")
private Integer scriptType;
// 脚本编写的语言
// 10=Groovy, 20=Jython, 30=JavaScript, 40=Scala, 50=JRuby
@Column(name = "LANGUAGE_TYPE")
private Integer languageType;
// 脚本的具体内容
@Lob
@Column(name = "SCRIPT_CONTENT", columnDefinition = "TEXT")
private String scriptContent;
// 脚本的描述,包含脚本的用法,参数说明等
@Column(name = "SCRIPT_REMARK", length = 2000)
private String scriptRemark;
// 编译后的脚本内容,通过预编译加快脚本的运行速度
@Transient
private Object compiledScript;
}

@ -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;
}

@ -48,6 +48,9 @@ public class WmsDataAuthModel extends BaseBean {
@ApiParam("业务类型列表")
private List<String> busiOperationTypeList;
@ApiParam("检测大类列表")
private List<String> bhCheckTypeList;
@ApiParam(
value = "新增操作",
example = "0"

@ -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> {
}

@ -16,6 +16,7 @@ import cn.estsh.i3plus.pojo.wms.bean.template.BasImportTemplateDetails;
import cn.estsh.i3plus.pojo.wms.dbinterface.WmsInterfaceDataMapper;
import cn.estsh.i3plus.pojo.wms.engine.rule.EngineRulePersistence;
import cn.estsh.i3plus.pojo.wms.engine.script.EngineScriptPersistence;
import cn.estsh.i3plus.pojo.wms.engine.script.EngineScriptPersistenceHistory;
import com.alibaba.fastjson.JSONObject;
import com.google.common.base.Strings;
import org.apache.commons.lang3.StringUtils;
@ -1663,7 +1664,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);
@ -2278,6 +2280,14 @@ public class WmsHqlPack {
return packBean;
}
public static DdlPackBean packHqlWmsScriptHistory(EngineScriptPersistenceHistory history) {
DdlPackBean packBean = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(history.getScriptNo(), "scriptNo", packBean);
getStringBuilderPack(history, packBean);
return packBean;
}
/**
*
*
@ -2877,6 +2887,39 @@ public class WmsHqlPack {
}
/**
*
*
* @param itemCheck
* @return
*/
public static DdlPackBean packHqlWmsPartItemCheck(WmsPartItemCheck itemCheck) {
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringLikerPack(itemCheck.getPartNo(), "partNo", result);
getStringBuilderPack(itemCheck, result);
return result;
}
/**
* BH
*
* @param item
* @return
*/
public static DdlPackBean packHqlWmsBhChildDetectionItem(WmsBhChildDetectionItem item) {
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringLikerPack(item.getItemCheckCode(), "itemCheckCode", result);
DdlPreparedPack.getStringLikerPack(item.getItemCheckName(), "itemCheckName", result);
getStringBuilderPack(item, result);
return result;
}
/**
* dataAuth
*
* @param wmsSnOperateRecord
@ -3171,4 +3214,19 @@ public class WmsHqlPack {
return result;
}
/**
*
*
* @param checkType
* @return
*/
public static DdlPackBean packHqlWmsPartCheckType(WmsPartCheckType checkType) {
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(checkType.getWorkCenterCode(), "workCenterCode", result);
DdlPreparedPack.getStringEqualPack(checkType.getPartNo(), "partNo", result);
DdlPreparedPack.getNumEqualPack(checkType.getCheckType(), "checkType", result);
getStringBuilderPack(checkType, result);
return result;
}
}

Loading…
Cancel
Save