Merge branch 'test'

yun-zuoyi
WYnneaoapc 6 years ago
commit 2cde398cca

@ -38,7 +38,7 @@ public class BaseOrder extends BaseCode {
@FieldAnnotation(relation = "Material", notEmpty = true)
private Long materialId;
@Column(name="COUNT")
@Column(name="COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="数量")
@FieldAnnotation(notEmpty = true)
@Min(0)

@ -0,0 +1,49 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2019-12-03
* @Modify:
**/
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "APS_EXPRESSION_RECORD")
@Api("表达式记录")
public class ExpressionRecord extends BaseAPS {
@Column(name="BEAN_NAME")
@ApiParam(value ="表名")
@FieldAnnotation(property = false)
private String beanName;
@Column(name="FIELD_NAME")
@ApiParam(value ="字段名")
@FieldAnnotation(property = false)
private String fieldName;
@Column(name="NAME")
@ApiParam(value ="名称")
@FieldAnnotation(notEmpty = true)
private String name;
@Column(name="EXPRESSION")
@ApiParam(value ="表达式")
private String expression;
@Column(name="REMARK")
@ApiParam(value ="备注")
private String remark;
}

@ -46,7 +46,7 @@ public class FurnaceCapacity extends BaseAPS {
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.MULTI_OBJECT, typeName = "Material")
private String materialCode;
@Column(name="CAPACITY")
@Column(name="CAPACITY", columnDefinition = "decimal(18,8)")
@ApiParam(value ="容量限制")
@Min(0)
private Double capacity;

@ -32,7 +32,7 @@ import java.util.List;
@Api("炉资源计划")
public class FurnacePlan extends BaseAPS {
@Column(name="CAPACITY")
@Column(name="CAPACITY", columnDefinition = "decimal(18,8)")
@ApiParam(value ="已占用的能力")
private Double capacity;

@ -34,12 +34,12 @@ public class Inventory extends BaseOrder {
@ApiParam(value ="指定上层订单")
private String specifyUpOrder;
@Column(name="ASSIGN_COUNT")
@Column(name="ASSIGN_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="已分配量")
@FieldAnnotation(modify = false)
private Double assignCount;
@Column(name="EXCESS_COUNT")
@Column(name="EXCESS_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="多余量")
@FieldAnnotation(modify = false)
private Double excessCount;

@ -80,40 +80,40 @@ public class Material extends BaseCode {
@FieldAnnotation(defaultValue = "1")
private Boolean autoFixPegging;
@Column(name="MAX_PRODUCT_BATCH")
@Column(name="MAX_PRODUCT_BATCH", columnDefinition = "decimal(18,8)")
@ApiParam(value ="最大制造批量")
private Double maxProductBatch;
@Column(name="MIN_PRODUCT_BATCH")
@Column(name="MIN_PRODUCT_BATCH", columnDefinition = "decimal(18,8)")
@ApiParam(value ="最小制造批量")
@FieldAnnotation(defaultValue = "0.0")
private Double minProductBatch;
@Column(name="UNIT_PRODUCT_BATCH")
@Column(name="UNIT_PRODUCT_BATCH", columnDefinition = "decimal(18,8)")
@ApiParam(value ="制造批量单位")
private Double UnitProductBatch;
@Column(name="MAX_PUR_BATCH")
@Column(name="MAX_PUR_BATCH", columnDefinition = "decimal(18,8)")
@ApiParam(value ="最大采购批量")
private Double maxPurBatch;
@Column(name="MIN_PUR_BATCH")
@Column(name="MIN_PUR_BATCH", columnDefinition = "decimal(18,8)")
@ApiParam(value ="最小采购批量")
private Double minPurBatch;
@Column(name="UNIT_PUR_BATCH")
@Column(name="UNIT_PUR_BATCH", columnDefinition = "decimal(18,8)")
@ApiParam(value ="采购批量单位")
private Double unitPurBatch;
@Column(name="MIN_STOCK_COUNT")
@Column(name="MIN_STOCK_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="最小库存数量")
private Double minStockCount;
@Column(name="SAFE_STOCK_COUNT")
@Column(name="SAFE_STOCK_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="安全库存数量")
private Double safeStockCount;
@Column(name="MAX_STOCK_COUNT")
@Column(name="MAX_STOCK_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="最大库存数量")
private Double maxStockCount;

@ -39,15 +39,15 @@ public class OperInput extends BaseAPS {
@FieldAnnotation(relation = "Material", notEmpty = true)
private Long materialId;
@Column(name="INPUT_COUNT")
@Column(name="INPUT_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="单位输入量")
private Double inputCount;
@Column(name="YIELD")
@Column(name="YIELD", columnDefinition = "decimal(18,8)")
@ApiParam(value ="成品率")
private Double yield;
@Column(name="FIX_SCRAP_COUNT")
@Column(name="FIX_SCRAP_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="固定报废数")
private Double fixScrapCount;

@ -38,15 +38,15 @@ public class OperOutput extends BaseAPS {
@FieldAnnotation(relation = "Material", notEmpty = true)
private Long materialId;
@Column(name="OUTPUT_COUNT")
@Column(name="OUTPUT_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="单位输出量")
private Double outputCount;
@Column(name="YIELD")
@Column(name="YIELD", columnDefinition = "decimal(18,8)")
@ApiParam(value ="成品率")
private Double yield;
@Column(name="FIX_SCRAP_COUNT")
@Column(name="FIX_SCRAP_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="固定报废数")
private Double fixScrapCount;

@ -44,17 +44,17 @@ public class Operation extends BaseAPS {
@FieldAnnotation(relation = "StandOperation", notEmpty = true)
private Long standOperationId;
@Column(name="PREV_COUNT_RATE")
@Column(name="PREV_COUNT_RATE", columnDefinition = "decimal(18,8)")
@ApiParam(value ="前工序数量比")
@FieldAnnotation(notEmpty = true, defaultValue = "1.0")
private Double prevCountRate;
@Column(name="YIELD")
@Column(name="YIELD", columnDefinition = "decimal(18,8)")
@ApiParam(value ="成品率")
@FieldAnnotation(notEmpty = true, defaultValue = "1.0")
private Double yield;
@Column(name="FIX_SCRAP_COUNT")
@Column(name="FIX_SCRAP_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="固定报废数")
private Double fixScrapCount;
@ -66,7 +66,7 @@ public class Operation extends BaseAPS {
@ApiParam(value ="分割的工作个数")
private Integer count;
@Column(name="BATCH")
@Column(name="BATCH", columnDefinition = "decimal(18,8)")
@ApiParam(value ="分割批量")
private Double batch;

@ -32,7 +32,7 @@ import java.util.List;
@Api("父工作")
@ExcludeImportExport
public class ParentWork extends BaseAPS {
@Column(name="count")
@Column(name="count", columnDefinition = "decimal(18,8)")
@ApiParam(value ="数量")
private Double count;

@ -71,7 +71,7 @@ public class ProductOrder extends BaseOrder {
@ApiParam(value ="指定上层订单")
private String specifyUpOrder;
@Column(name="ASSIGN_COUNT")
@Column(name="ASSIGN_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="已分配数量")
private Double assignCount;
@ -84,12 +84,12 @@ public class ProductOrder extends BaseOrder {
@FieldAnnotation(modify = false)
private String calcLeadTime;
@Column(name="EXCESS_COUNT")
@Column(name="EXCESS_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="多余量")
@FieldAnnotation(modify = false)
private Double excessCount;
@Column(name="LACK_COUNT")
@Column(name="LACK_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="缺少量")
@FieldAnnotation(modify = false)
private Double lackCount;

@ -34,7 +34,7 @@ public class PurchaseOrder extends BaseOrder {
@ApiParam(value ="指定上层订单")
private String specifyUpOrder;
@Column(name="ASSIGN_COUNT")
@Column(name="ASSIGN_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="已分配数量")
private Double assignCount;
@ -47,7 +47,7 @@ public class PurchaseOrder extends BaseOrder {
@FieldAnnotation(modify = false)
private String calcLeadTime;
@Column(name="EXCESS_COUNT")
@Column(name="EXCESS_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="多余量")
@FieldAnnotation(modify = false)
private Double excessCount;

@ -30,7 +30,7 @@ import java.util.List;
@Api("日历")
public class ResCalendar extends BaseAPS {
@Column(name="RES_CODES")
@ApiParam(value ="资源码")
@ApiParam(value ="资源码")
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.MULTI_OBJECT, typeName = "Resource", notEmpty = true)
private String resCodes;
@ -44,7 +44,7 @@ public class ResCalendar extends BaseAPS {
private String dates;
@Column(name="SHIFT_CODES")
@ApiParam(value ="班次码")
@ApiParam(value ="班次码")
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.MULTI_OBJECT, typeName = "DayShift", notEmpty = true)
private String shiftCodes;

@ -39,7 +39,7 @@ public class Resource extends BaseCode {
@FieldAnnotation(defaultValue = "SINGLE")
private ApsEnumUtil.RESOURCE_CLASS resClass;
@Column(name="EFFICIENCY")
@Column(name="EFFICIENCY", columnDefinition = "decimal(18,8)")
@ApiParam(value ="生产效率")
@FieldAnnotation(defaultValue = "1.0", notEmpty = true)
private Double efficiency;
@ -52,7 +52,7 @@ public class Resource extends BaseCode {
@ApiParam(value ="后缓冲时间")
private String postBuffer;
@Column(name="MAX_PRODUCE_BATCH")
@Column(name="MAX_PRODUCE_BATCH", columnDefinition = "decimal(18,8)")
@ApiParam(value ="最大生产批量")
private Double maxProduceBatch;

@ -39,7 +39,7 @@ public class StandOperation extends BaseCode {
@ApiParam(value ="分割的工作个数")
private Integer count;
@Column(name="BATCH")
@Column(name="BATCH", columnDefinition = "decimal(18,8)")
@ApiParam(value ="分割批量")
private Double batch;

@ -46,7 +46,7 @@ public class Work extends BaseAPS {
@FieldAnnotation(property = false)
private ApsEnumUtil.WORK_TYPE workType;
@Column(name="count")
@Column(name="count", columnDefinition = "decimal(18,8)")
@ApiParam(value ="数量")
@FieldAnnotation(modify = false)
private Double count;
@ -70,7 +70,7 @@ public class Work extends BaseAPS {
@FieldAnnotation(modify = false)
private String planResource;
@Column(name="SPECIFY_COUNT")
@Column(name="SPECIFY_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="指定数量")
private Double specifyCount;
@ -120,7 +120,7 @@ public class Work extends BaseAPS {
@ApiParam(value ="已分割的工作是否固定")
private Boolean fixSplit;
@Column(name="NEED_PREV_COUNT")
@Column(name="NEED_PREV_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="需要的前工作数量")
@FieldAnnotation(display = false, modify = false)
private Double needPrevCount;

@ -39,12 +39,12 @@ public class WorkInput extends BaseAPS {
@FieldAnnotation(relation = "Material")
private Long materialId;
@Column(name="INPUT_COUNT")
@Column(name="INPUT_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="输入数量")
@FieldAnnotation(modify = false)
private Double inputCount;
@Column(name="SHORT_COUNT")
@Column(name="SHORT_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="短缺数量")
@FieldAnnotation(modify = false)
private Double shortCount;

@ -41,12 +41,12 @@ public class WorkOutput extends BaseAPS {
@FieldAnnotation(relation = "Material")
private Long materialId;
@Column(name="OUTPUT_COUNT")
@Column(name="OUTPUT_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="输出数量")
@FieldAnnotation(modify = false)
private Double outputCount;
@Column(name="REMAIN_COUNT")
@Column(name="REMAIN_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="多余数量")
@FieldAnnotation(modify = false)
private Double remainCount;

@ -53,7 +53,7 @@ public class WorkRelation extends BaseAPS {
@FieldAnnotation(relation = "PostWork")
private Long postWorkId;
@Column(name="COUNT")
@Column(name="COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="关联数量")
@FieldAnnotation(modify = false)
private Double count;

@ -0,0 +1,10 @@
package cn.estsh.i3plus.pojo.aps.model;
import lombok.Data;
@Data
public class FunctionModel {
private String code;
private String name;
private String params;
}

@ -0,0 +1,9 @@
package cn.estsh.i3plus.pojo.aps.repository;
import cn.estsh.i3plus.pojo.aps.bean.ExpressionRecord;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ExpressionRecordRepository extends CrudRepository<ExpressionRecord, Long> {
}

@ -60,6 +60,7 @@ public class ApsEnumUtil {
PRODUCT("PRODUCT", "成品"),
HALF_PRODUCT("HALF_PRODUCT", "半成品"),
RAW_MATERIAL("RAW_MATERIAL", "原材料"),
INNER_PRODUCT("INNER_PRODUCT", "中间品"),
VIRTUAL("VIRTUAL", "虚拟件");
private String value;
@ -978,7 +979,7 @@ public class ApsEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DATA_LINK_TYPE {
CSV("CSV", "csv文件"),
EXCEL("EXCEL", "EXCEL文件"),
MYSQL("MYSQL", "MySql"),
ORACLE("ORACLE", "Oracle"),
SQLSERVER("SQLSERVER", "SqlServer");

@ -161,7 +161,8 @@ public class MesEnumUtil {
DEFECT("DEFECT", "缺陷"),
DEFECT_CAUSE("DEFECT_CAUSE", "缺陷原因"),
REPAIR("REPAIR", "处理措施"),
SCRAP("SCRAP", "报废原因");
SCRAP("SCRAP", "报废原因"),
QC_CHECK_STAND("QC_CHECK_STAND", "质量检测标准");
private String value;
private String description;
@ -428,6 +429,16 @@ public class MesEnumUtil {
}
return tmp;
}
public static Integer descriptionOfValue(String description) {
Integer tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
@ -714,6 +725,16 @@ public class MesEnumUtil {
}
return tmp;
}
public static Integer descriptionOfValue(String description) {
Integer tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
@ -1308,7 +1329,11 @@ public class MesEnumUtil {
MES_SHIFT(180, "班次"),
MES_SHIFT_GROUP(190, "班组"),
MES_WORK_CELL_PARAM_CFG(200, "工作单元参数配置"),
MES_STATION_BOM(210, "工位BOM表");
MES_STATION_BOM(210, "工位BOM表"),
MES_DATA_OBJECT(220, "数据对象"),
MES_OBJECT_CFG(230, "对象结构"),
MES_WC_CHECK(240, "开线检查"),
MES_QC_CHECK_STANDARD(250, "质量检测标准");
private int value;
private String description;
@ -1466,8 +1491,8 @@ public class MesEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_STATION_BOM_IS_REPEAT {
REPEATABLE(1, "可重复"),
NOT_REPEAT(2, "不可重复");
REPEATABLE(1, ""),
NOT_REPEAT(2, "");
private int value;
private String description;
@ -3479,6 +3504,16 @@ public class MesEnumUtil {
}
return tmp;
}
public static String descriptionOfValue(String description) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
@ -3525,6 +3560,16 @@ public class MesEnumUtil {
}
return tmp;
}
public static Integer descriptionOfValue(String description) {
Integer tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**

@ -12,6 +12,43 @@ import org.apache.commons.lang3.StringUtils;
**/
public class MesPcnEnumUtil {
/**
* MesMethodmethodType
* 10.
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum METHOD_TYPE {
EXEC(10, "执行方法"),
COMPLETE(20, "完成方法");
private int value;
private String description;
METHOD_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;
}
}
/**
* mes Bom
@ -19,8 +56,8 @@ public class MesPcnEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_STATION_BOM_IS_REPEAT {
REPEATABLE(1, "可重复"),
NOT_REPEAT(2, "不可重复");
REPEATABLE(1, ""),
NOT_REPEAT(2, "");
private int value;
private String description;
@ -179,7 +216,7 @@ public class MesPcnEnumUtil {
}
/**
* pcn
* MesProdBindRecord
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_IS_BIND_KEY {

@ -3815,7 +3815,8 @@ public class WmsEnumUtil {
AUTO_OPT(20, "AUTO_OPT", "自动操作"),
MENU_OPT(30, "MENU_OPT", "手工操作"),
AUTO_OPT_NON_TRANS(40, "AUTO_OPT_NON_TRANS", "自动操作无交易"),
CREATE_DOCMOVE(50, "CREATE_DOCMOVE", "生成移库单");
CREATE_DOCMOVE(50, "CREATE_DOCMOVE", "生成移库单"),
UPDATE_TASK(60, "UPDATE_TASK", "复用任务");
private int value;
private String code;
private String description;

@ -0,0 +1,50 @@
package cn.estsh.i3plus.pojo.mes.pcn.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;
/**
* @Description :mes
* @Reference :
* @Author : jack.jia
* @CreateDate : 2019-04-12
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_EVENT")
@Api("系统业务事件")
public class MesEvent extends BaseBean {
@Column(name = "EVENT_CODE")
@ApiParam("事件代码")
private String eventCode;
@Column(name = "EVENT_NAME")
@ApiParam("事件名称")
private String eventName;
@Column(name = "EVENT_TYPE")
@ApiParam("事件类型")
private Integer eventType;
@Column(name = "BUTTON_CODE")
@ApiParam("按钮代码")
private String buttonCode;
public int getEventTypeVal() {
return this.eventType == null ? 0 : this.eventType;
}
}

@ -0,0 +1,52 @@
package cn.estsh.i3plus.pojo.mes.pcn.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
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.Table;
/**
* @Description :mes
* @Reference :
* @Author : jack.jia
* @CreateDate : 2019-04-12
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_EVENT_ACTION")
@Api("系统业务事件动作")
public class MesEventAction extends BaseBean {
@Column(name = "EVENT_CODE")
@ApiParam("事件代码")
private String eventCode;
@Column(name = "ACTION_CODE")
@ApiParam("动作代码")
private String actionCode;
@Column(name = "SEQ")
@ApiParam("序号")
private Integer seq;
public int getSeqVal() {
return this.seq == null ? 0 : this.seq;
}
}

@ -0,0 +1,53 @@
package cn.estsh.i3plus.pojo.mes.pcn.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;
/**
* @Description :mes
* @Reference :
* @Author : jack.jia
* @CreateDate : 2019-04-12
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_METHOD")
@Api("系统业务方法")
public class MesMethod extends BaseBean {
@Column(name = "METHOD_CODE")
@ApiParam("方法代码")
private String methodCode;
@Column(name = "METHOD_NAME")
@ApiParam("方法名称")
private String methodName;
@Column(name = "CALL_CLASS")
@ApiParam("具体实现类")
private String callClass;
/**
* 10-20-ResultBean
*/
@Column(name = "METHOD_TYPE")
@ApiParam("方法类型")
private Integer methodType;
public int getMethodTypeVal() {
return this.methodType == null ? 0 : this.methodType;
}
}

@ -45,7 +45,7 @@ public class MesObjectCfg extends BaseBean {
@Column(name = "FIELD_LENGTH")
@ApiParam("列长度")
private String fieldLength;
private Integer fieldLength;
@Column(name = "POJO_ATTR")
@ApiParam("对应的pojo属性")

@ -55,4 +55,16 @@ public class MesProduceCtgyPicture extends BaseBean {
@Column(name = "FILE_TYPE_NAME")
@ApiParam("FILE_TYPE_NAME")
private String fileTypeName;
@Column(name = "SOP_NAME")
@ApiParam("SOP名称")
private String sopName;
@Column(name = "GROUP_NAME")
@ApiParam("GROUP_NAME")
private String groupName;
@Column(name = "SYNC_TAG")
@ApiParam("SYNC_TAG")
private Integer syncTag = 0;
}

@ -73,10 +73,14 @@ public class MesQcCheckStandard extends BaseBean {
@ApiParam("检测值")
private String checkValue;
@Column(name = "CHECK_ITEM_TYPE")
@ApiParam("检测项类型")
private String checkItemType;
public MesQcCheckStandard() {
}
public MesQcCheckStandard(String partNo, String workCenterCode, String workCellCode, Integer checkType, String checkItem, String checkStandard, String checkGuide, String checkFrequency, String partName) {
public MesQcCheckStandard(String partNo, String workCenterCode, String workCellCode, Integer checkType, String checkItem, String checkStandard, String checkGuide, String checkFrequency, String partName, String checkItemType) {
this.partNo = partNo;
this.workCenterCode = workCenterCode;
this.workCellCode = workCellCode;
@ -86,5 +90,6 @@ public class MesQcCheckStandard extends BaseBean {
this.checkGuide = checkGuide;
this.checkFrequency = checkFrequency;
this.partName = partName;
this.checkItemType = checkItemType;
}
}

@ -0,0 +1,38 @@
package cn.estsh.i3plus.pojo.mes.pcn.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
/**
* @Description :
* @Reference :
* @Author : jack.jia
* @CreateDate : 2019-04-12
* @Modify:
**/
@Data
public class ActionRequestBean<Obj> implements Serializable {
@ApiParam("事件代码")
@Deprecated
public String eventCode;
@ApiParam("按钮代码")
public String buttonCode;
@ApiParam("单个结果")
public Obj resultObject;
@ApiParam("List请求集")
public List<Obj> resultList;
@ApiParam("Map请求集")
public Map<String, Object> resultMap;
@ApiParam("目的状态")
private Integer destStatus;
}

@ -35,6 +35,8 @@ public class RequestModel {
private List<String> orderNoList;//工单编号
private ActionRequestBean actionRequestBean;//工单状态
public RequestModel(List<MesQueueOrder> queueOrderList, Double currentSeq, Double nextSeq) {
this.queueOrderList = queueOrderList;
this.currentSeq = currentSeq;
@ -111,6 +113,10 @@ public class RequestModel {
return orderNoList;
}
public void setActionRequestBean(ActionRequestBean actionRequestBean) { this.actionRequestBean = actionRequestBean; }
public ActionRequestBean getActionRequestBean() { return actionRequestBean; }
public Double getCurrentSeq() {
return currentSeq == null ? 0.0d : currentSeq;
}

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

@ -371,4 +371,11 @@ public class MesHqlPack {
}
return packBean;
}
public static DdlPackBean getMesEventByButtonCode(String buttonCode, String org) {
DdlPackBean packBean = getAllBaseData(org);
DdlPreparedPack.getStringEqualPack(buttonCode, "buttonCode", packBean);
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.IS_VAILD.VAILD.getValue(), "isValid", packBean);
return packBean;
}
}

@ -45,7 +45,7 @@ public class MesObjectCfg extends BaseBean {
@Column(name = "FIELD_LENGTH")
@ApiParam("列长度")
private String fieldLength;
private Integer fieldLength;
@Column(name = "POJO_ATTR")
@ApiParam("对应的pojo属性")

@ -129,6 +129,14 @@ public class MesProduceSn extends BaseBean {
@ApiParam("返回信息")
private String resultMsg;
@Transient
@ApiParam("下线开始时间")
private String outWorkCenterStartTime;
@Transient
@ApiParam("下线结束时间")
private String outWorkCenterEndTime;
public double getQtyVal() {
return this.qty == null ? 0.0d : this.qty;
}

@ -93,29 +93,4 @@ public class MesQcCheckData extends BaseBean {
@Column(name = "CUST_CODE")
@ApiParam("客户代码")
private String custCode;
@Transient
@ApiParam("班次")
private String shiftCode;
@Transient
@ApiParam("班组")
private String shiftGroup;
@Transient
@ApiParam("班长")
private String squadLeader;
@Transient
@ApiParam("工作单元名称")
private String workCellName;
@Transient
@ApiParam("物料名称")
private String partNoName;
public MesQcCheckData(String createDatetime, String createUser) {
super.createDatetime = createDatetime;
super.createUser = createUser;
}
}

@ -60,4 +60,8 @@ public class MesQcCheckStandard extends BaseBean {
@ApiParam("频率")
private String checkFrequency;
@Column(name = "CHECK_ITEM_TYPE")
@ApiParam("检测项类型")
private String checkItemType;
}

@ -0,0 +1,106 @@
package cn.estsh.i3plus.pojo.mes.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\12\3 18:59
* @Modify:
**/
@Data
public class ProdBindRecordModel implements Serializable {
private Long id;
private String createUser;
private String createDatetime;
private String modifyUser;
private String modifyDatetime;
@ApiParam(value = "产品条码")
private String serialNumber;
@ApiParam("产品条码零件号")
private String partNo;
@ApiParam("产品条码零件名称")
private String partName;
@ApiParam("工单号")
private String workOrderNo;
@ApiParam(value = "工作中心")
private String workCenterCode;
@ApiParam(value = "工作单元")
private String workCellCode;
@ApiParam(value = "工步代码")
private String stepCode;
@ApiParam("原材料零件号")
private String itemPartNo;
@ApiParam("原材料零件名称")
private String itemPartName;
@ApiParam("原材料条码")
private String kpSn;
@ApiParam(value = "原材料数量", example = "0")
private Double kpQty;
@ApiParam("供应商")
private String supplierCode;
@ApiParam
private String lotNo;
@ApiParam
private Integer isFeed;
@ApiParam("版本")
private String version;
@ApiParam(value = "结果")
private String result;
@ApiParam(value = "是否绑定关键件")
private Integer isBindKey;
@ApiParam(value = "动作类型")
private String actionType;
public ProdBindRecordModel() {
}
public ProdBindRecordModel(Long id, String createUser, String createDatetime, String modifyUser, String modifyDatetime, String serialNumber, String partNo, String partName, String workOrderNo, String workCenterCode, String workCellCode, String stepCode, String itemPartNo, String itemPartName, String kpSn, Double kpQty, String supplierCode, String lotNo, Integer isFeed, String version, String result, Integer isBindKey, String actionType) {
this.id = id;
this.createUser = createUser;
this.createDatetime = createDatetime;
this.modifyUser = modifyUser;
this.modifyDatetime = modifyDatetime;
this.serialNumber = serialNumber;
this.partNo = partNo;
this.partName = partName;
this.workOrderNo = workOrderNo;
this.workCenterCode = workCenterCode;
this.workCellCode = workCellCode;
this.stepCode = stepCode;
this.itemPartNo = itemPartNo;
this.itemPartName = itemPartName;
this.kpSn = kpSn;
this.kpQty = kpQty;
this.supplierCode = supplierCode;
this.lotNo = lotNo;
this.isFeed = isFeed;
this.version = version;
this.result = result;
this.isBindKey = isBindKey;
this.actionType = actionType;
}
}

@ -1876,6 +1876,10 @@ public class MesHqlPack {
mesProduceSn.getCreateDateTimeStart(),
mesProduceSn.getCreateDateTimeEnd(),
"createDatetime", packBean, true);
DdlPreparedPack.timeBuilder(
mesProduceSn.getOutWorkCenterStartTime(),
mesProduceSn.getOutWorkCenterEndTime(),
"outWorkCenterTime", packBean, true);
return packBean;
}
@ -1999,6 +2003,9 @@ public class MesHqlPack {
if (!StringUtils.isEmpty(mesQcCheckData.getSn())) {
DdlPreparedPack.getStringLikerPack(mesQcCheckData.getSn(), "sn", packBean);
}
if (!StringUtils.isEmpty(mesQcCheckData.getCheckType())) {
DdlPreparedPack.getNumEqualPack(mesQcCheckData.getCheckType(), "checkType", packBean);
}
if (!StringUtils.isEmpty(mesQcCheckData.getWorkCenterCode())) {
DdlPreparedPack.getStringLikerPack(mesQcCheckData.getWorkCenterCode(), "workCenterCode", packBean);
}

@ -76,4 +76,26 @@ public class StationRequestBean implements Serializable {
@ApiParam("工步列表")
private List<StepModel> stepList;
@Override
public String toString() {
return "StationRequestBean{" +
"scanInfo='" + scanInfo + '\'' +
", serialNumber='" + serialNumber + '\'' +
", partNo='" + partNo + '\'' +
", organizeCode='" + organizeCode + '\'' +
", organizeName='" + organizeName + '\'' +
", workCenterCode='" + workCenterCode + '\'' +
", workCellCode='" + workCellCode + '\'' +
", routeCode='" + routeCode + '\'' +
", processCode='" + processCode + '\'' +
", clientInfo='" + clientInfo + '\'' +
", userInfo='" + userInfo + '\'' +
", buttonCode='" + buttonCode + '\'' +
", stepCode='" + stepCode + '\'' +
", busiType='" + busiType + '\'' +
", workOrderNo='" + workOrderNo + '\'' +
", tray='" + tray + '\'' +
", finishCount=" + finishCount +
'}';
}
}

@ -0,0 +1,43 @@
package cn.estsh.i3plus.pojo.model.wms;
import lombok.Data;
/**
* @author ealvis
* @date 2019/12/2 14:45
* model
*/
@Data
public class WmsFinalShipmentModel {
/*订单号*/
private String orderNo;
/*车牌号*/
private String carNo;
/*物料号*/
private String partNo;
/*计划数量*/
private Double qty;
/*已发运数量*/
private Double pickQty;
/*计划发货时间*/
private String planTime;
/*实际发运时间*/
private String finishTime;
/*状态*/
private Integer orderStatus;
public WmsFinalShipmentModel(){
}
public WmsFinalShipmentModel(String orderNo, String carNo, String partNo, Double qty, Double pickQty, String planTime, String finishTime, Integer orderStatus) {
this.orderNo = orderNo;
this.carNo = carNo;
this.partNo = partNo;
this.qty = qty;
this.pickQty = pickQty;
this.planTime = planTime;
this.finishTime = finishTime;
this.orderStatus = orderStatus;
}
}

@ -23,13 +23,13 @@ import javax.persistence.*;
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "WMS_TRANS_QUAN"/*, indexes = {
@Table(name = "WMS_TRANS_QUAN", indexes = {
@Index(columnList = "WH_NO"),
@Index(columnList = "ZONE_NO"),
@Index(columnList = "LOCATE_NO"),
@Index(columnList = "REF_SRC"),
@Index(columnList = "ORGANIZE_CODE")
}*/)
})
@Api("库存交易信息")
public class WmsTransQuan extends BaseBean {

@ -603,6 +603,8 @@ public class WmsHqlPack {
//供应商编号
DdlPreparedPack.getStringEqualPack(wmsShippingFlag.getFlagNo(), "flagNo", result);
//客户编号
DdlPreparedPack.getStringEqualPack(wmsShippingFlag.getCustNo(), "custNo", result);
//供应商简称
DdlPreparedPack.getStringLikerPack(wmsShippingFlag.getFlagName(), "flagName", result);
//供应商全称

Loading…
Cancel
Save