Merge branches 'ext-dev' and 'test' of http://git.estsh.com/i3-IMPP/i3plus-pojo into pext-dev

yun-zuoyi
andly.pan 4 years ago
commit 754124ff25

@ -1,9 +1,12 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.aps.annotation.MainKey;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
import cn.estsh.i3plus.pojo.aps.holders.EImportDetail;
import cn.estsh.i3plus.pojo.aps.validator.InsertGroup;
import cn.estsh.i3plus.pojo.aps.validator.UpdateGroup;
import cn.estsh.i3plus.pojo.base.enumutil.ApsEnumUtil;
import com.fasterxml.jackson.annotation.JsonBackReference;
import io.swagger.annotations.Api;
@ -28,23 +31,28 @@ import java.util.List;
@Entity
@Table(name = "APS_IMPORT_DETAIL")
@Api("数据导入明细")
@MainKey(groups = {InsertGroup.class, UpdateGroup.class})
public class ImportDetail extends BaseAPS {
private static final long serialVersionUID = 1264030397500660450L;
@Column(name="group_Name")
@ApiParam(value ="组名称")
@Column(name="NAME")
@ApiParam(value ="名称")
@FieldAnnotation(notEmpty = true, mainkey = true)
private String name;
@Column(name="GROUP_NAME")
@ApiParam(value ="分组名称")
@FieldAnnotation(notEmpty = true)
private String groupName;
@Column(name="LINK_TYPE")
@ApiParam(value ="链接类型")
@FieldAnnotation(defaultValue = "EXCEL")
@FieldAnnotation(defaultValue = "EXCEL", notEmpty = true)
private ApsEnumUtil.DATA_LINK_TYPE linkType;
@Column(name="PATH")
@ApiParam(value ="IP/文件路径")
@FieldAnnotation(notEmpty = true)
private String path;
@Column(name="OUT_NAME")
@ -73,7 +81,7 @@ public class ImportDetail extends BaseAPS {
@Column(name="IMPORT_TYPE")
@ApiParam(value ="导入类型")
@FieldAnnotation(defaultValue = "REPLACE")
@FieldAnnotation(defaultValue = "DIFF")
private ApsEnumUtil.IMPORT_DETAIL_TYPE importType;
@Column(name="SKIP_ROWS")
@ -87,8 +95,8 @@ public class ImportDetail extends BaseAPS {
private Integer orderNumber;
@Column(name="PROJECT_ID")
@ApiParam(value ="导入项目ID")
@FieldAnnotation(relation = "Project")
@ApiParam(value ="导入项目")
@FieldAnnotation(relation = "Project", property = false)
private Long projectId;
public ImportProject getProject() {

@ -51,6 +51,7 @@ public class ImportField extends BaseAPS {
@Column(name="MAX_LENGTH")
@ApiParam(value = "最大长度", example = "0")
@FieldAnnotation(defaultValue = "255")
private Integer maxLength;
@Column(name="RELATION_TABLE")
@ -61,9 +62,6 @@ public class ImportField extends BaseAPS {
@ApiParam("关联字段")
private String relationField;
@Transient
private transient boolean hasDeal = false;
@Column(name="IMPORT_DETAIL_ID")
@ApiParam(value ="导入明细ID")
@FieldAnnotation(relation = "ImportDetail", notEmpty = true)

@ -28,17 +28,17 @@ public class MaterialSetTime extends BaseAPS {
private static final long serialVersionUID = -7996431489447641539L;
@Column(name="RES_CODE")
@ApiParam(value ="资源编码")
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.MULTI_OBJECT, typeName = "Resource", notEmpty = true)
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.MULTI_OBJECT, typeName = "Resource", notEmpty = true, mainkey = true)
private String resCode;
@Column(name="PREV_MATERIAL")
@ApiParam(value ="前物料编码")
@FieldAnnotation(notEmpty = true)
@FieldAnnotation(notEmpty = true, mainkey = true)
private String prevMaterial;
@Column(name="POST_MATERIAL")
@ApiParam(value ="后物料编码")
@FieldAnnotation(notEmpty = true)
@FieldAnnotation(notEmpty = true, mainkey = true)
private String postMaterial;
@Column(name="TIME")
@ -46,8 +46,8 @@ public class MaterialSetTime extends BaseAPS {
@FieldAnnotation(notEmpty = true)
private String time;
@Column(name="PRIORITY")
@ApiParam(value ="优先级")
@FieldAnnotation(defaultValue = "10")
private Integer priority;
// @Column(name="PRIORITY")
// @ApiParam(value ="优先级")
// @FieldAnnotation(defaultValue = "10", mainkey = true)
// private Integer priority;
}

@ -313,6 +313,24 @@ public class BeanRelation {
}
/**
*
*
* @param bean
*/
public static void remove(BaseBean bean) {
if (bean == null) {
return;
}
BeanInfo beanInfo = BeanInfo.getBeanInfo(bean.getClass());
if (beanInfo != null) {
List<Enum<?>> holders = beanInfo.getAllHolders();
for (Enum<?> holder :holders) {
remove(bean, holder);
}
}
}
/**
*
*
* @param bean

@ -0,0 +1,25 @@
package cn.estsh.i3plus.pojo.aps.model;
import io.swagger.annotations.Api;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2021-02-25
* @Modify:
**/
@Data
@Api("导入校验错误信息")
public class ImportErrorInfo {
private List<String> headers = new ArrayList<>();
private List<List<String>> errorData = new ArrayList<>(100);
public boolean hasErrorData() {
return !errorData.isEmpty();
}
}

@ -337,6 +337,7 @@ public class BlockFormEnumUtil {
return tmp;
}
}
/**
*
*/
@ -988,7 +989,6 @@ public class BlockFormEnumUtil {
}
/**
*
*/
@ -1209,19 +1209,19 @@ public class BlockFormEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PROPERTY_VIRTUAL_OPERATE_TYPE {
STRING_SPLICE(10, "SPLICE", "字符串拼接",String.class),
NUM_ADD(20, "ADD", "加法计算",Double.class),
NUM_LESS(30, "MIN", "减法计算",Double.class),
NUM_MAKE(40, "MUL", "乘法计算",Double.class),
NUM_DIVISION(50, "DIVISION", "除法计算",Double.class),
JOIN_TABLE(60, "JOIN_TABLE", "连表查询",String.class);
STRING_SPLICE(10, "SPLICE", "字符串拼接", String.class),
NUM_ADD(20, "ADD", "加法计算", Double.class),
NUM_LESS(30, "MIN", "减法计算", Double.class),
NUM_MAKE(40, "MUL", "乘法计算", Double.class),
NUM_DIVISION(50, "DIVISION", "除法计算", Double.class),
JOIN_TABLE(60, "JOIN_TABLE", "连表查询", String.class);
private int value;
private String code;
private String description;
private Class clzFullName;
private PROPERTY_VIRTUAL_OPERATE_TYPE(int value, String code, String description,Class clzFullName) {
private PROPERTY_VIRTUAL_OPERATE_TYPE(int value, String code, String description, Class clzFullName) {
this.value = value;
this.code = code;
this.description = description;
@ -1298,23 +1298,23 @@ public class BlockFormEnumUtil {
return tmp;
}
public Object getPropertyVirtual(Object ... objs){
if(this.getValue() == STRING_SPLICE.getValue()){
public Object getPropertyVirtual(Object... objs) {
if (this.getValue() == STRING_SPLICE.getValue()) {
return getPropertyVirtualString(objs);
}else if(this.getValue() == NUM_ADD.getValue()){
} else if (this.getValue() == NUM_ADD.getValue()) {
return getPropertyVirtualDoubleAdd(objs);
}else if(this.getValue() == NUM_LESS.getValue()){
} else if (this.getValue() == NUM_LESS.getValue()) {
return getPropertyVirtualDoubleLess(objs);
}else if(this.getValue() == NUM_MAKE.getValue()){
} else if (this.getValue() == NUM_MAKE.getValue()) {
return getPropertyVirtualDoubleMake(objs);
}else if(this.getValue() == NUM_DIVISION.getValue()){
} else if (this.getValue() == NUM_DIVISION.getValue()) {
return getPropertyVirtualDoubleDivision(objs);
}
return objs;
}
private String getPropertyVirtualString(Object ... objs){
if(objs != null && objs.length > 0){
private String getPropertyVirtualString(Object... objs) {
if (objs != null && objs.length > 0) {
StringBuffer result = new StringBuffer();
for (Object o : objs) {
result.append(o == null ? "" : o.toString());
@ -1324,15 +1324,15 @@ public class BlockFormEnumUtil {
return null;
}
private Double getPropertyVirtualDoubleAdd(Object ... objs){
if(objs != null && objs.length > 0){
private Double getPropertyVirtualDoubleAdd(Object... objs) {
if (objs != null && objs.length > 0) {
Double result = Double.valueOf(0);
for (Object o : objs) {
try {
if(o != null){
if (o != null) {
result += Double.parseDouble(o.toString());
}
}catch (Exception e){
} catch (Exception e) {
e.printStackTrace();
}
}
@ -1341,15 +1341,15 @@ public class BlockFormEnumUtil {
return null;
}
private Double getPropertyVirtualDoubleLess(Object ... objs){
if(objs != null && objs.length > 0){
private Double getPropertyVirtualDoubleLess(Object... objs) {
if (objs != null && objs.length > 0) {
Double result = Double.valueOf(0);
for (Object o : objs) {
try {
if(o != null){
if (o != null) {
result -= Double.parseDouble(o.toString());
}
}catch (Exception e){
} catch (Exception e) {
e.printStackTrace();
}
}
@ -1358,15 +1358,15 @@ public class BlockFormEnumUtil {
return null;
}
private Double getPropertyVirtualDoubleMake(Object ... objs){
if(objs != null && objs.length > 0){
private Double getPropertyVirtualDoubleMake(Object... objs) {
if (objs != null && objs.length > 0) {
Double result = Double.valueOf(0);
for (Object o : objs) {
try {
if(o != null){
if (o != null) {
result *= Double.parseDouble(o.toString());
}
}catch (Exception e){
} catch (Exception e) {
e.printStackTrace();
}
}
@ -1375,15 +1375,15 @@ public class BlockFormEnumUtil {
return null;
}
private Double getPropertyVirtualDoubleDivision(Object ... objs){
if(objs != null && objs.length > 0){
private Double getPropertyVirtualDoubleDivision(Object... objs) {
if (objs != null && objs.length > 0) {
Double result = Double.valueOf(0);
for (Object o : objs) {
try {
if(o != null){
if (o != null) {
result /= Double.parseDouble(o.toString());
}
}catch (Exception e){
} catch (Exception e) {
e.printStackTrace();
}
}
@ -1394,7 +1394,6 @@ public class BlockFormEnumUtil {
}
/**
*
*/
@ -1751,8 +1750,8 @@ public class BlockFormEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TRIGGER_EVENT {
CLICK(10, "CLICK", "单击");
// DB_LCLICK(20, "DB_LCLICK", "双击"),
CLICK(10, "CLICK", "单击"),
DOUBLE_CLICK(20, "DOUBLE_CLICK", "双击");
// MOUSE_OUT(30, "MOUSE_OUT", "鼠标指针移出"),
// MOUSE_OVER(40, "MOUSE_OVER", "鼠标指针移入");
@ -1830,6 +1829,88 @@ public class BlockFormEnumUtil {
}
/**
*
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TRIGGER_ACTION {
REFRESH(10, "REFRESH", "刷新元素"),
SHOW_METHOD(20, "SHOW_METHOD", "展示其他功能明细");
private int value;
private String code;
private String description;
private TRIGGER_ACTION(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 TRIGGER_ACTION 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;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -2105,7 +2186,7 @@ public class BlockFormEnumUtil {
private String code;
private String description;
private ELEMENT_TREE_DIRECTION (int value, String code, String description) {
private ELEMENT_TREE_DIRECTION(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
@ -2185,7 +2266,7 @@ public class BlockFormEnumUtil {
private String code;
private String description;
private DATA_SOURCE_STATUS (int value, String code, String description) {
private DATA_SOURCE_STATUS(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
@ -2204,7 +2285,6 @@ public class BlockFormEnumUtil {
}
public static String valueOfCode(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
@ -2268,7 +2348,7 @@ public class BlockFormEnumUtil {
private int value;
private String description;
private ELEMENT_CONSTRAINT_TYPE (int value, String description) {
private ELEMENT_CONSTRAINT_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
@ -2314,7 +2394,7 @@ public class BlockFormEnumUtil {
private int value;
private String description;
private FORM_TRIGGER_SOURCE (int value, String description) {
private FORM_TRIGGER_SOURCE(int value, String description) {
this.value = value;
this.description = description;
}
@ -2356,14 +2436,14 @@ public class BlockFormEnumUtil {
public enum PROCEDURE_COL_TYPE {
IN_PARAM(1, "入参"),
INOUT_PARAM(2, "出入参"),
// ?(3, "按钮"),
// ?(3, "按钮"),
OUT_PARAM(4, "出参"),
RETURN_PARAM(5, "返回值");
private int value;
private String description;
private PROCEDURE_COL_TYPE (int value, String description) {
private PROCEDURE_COL_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
@ -2405,7 +2485,6 @@ public class BlockFormEnumUtil {
* PROCEDURE_INOUT_PARAM30-sqlserver
* PROCEDURE_OUT_PARAM40-
* PROCEDURE_RETURN50-mysqlsqlserver
*
*/
public enum ORIGIN_PROPERTY_TYPE {
NORMAL_PROPERTY(10, "正常属性"),
@ -2417,7 +2496,7 @@ public class BlockFormEnumUtil {
private final int value;
private final String description;
private ORIGIN_PROPERTY_TYPE (int value, String description) {
private ORIGIN_PROPERTY_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
@ -2452,7 +2531,7 @@ public class BlockFormEnumUtil {
public static ORIGIN_PROPERTY_TYPE procColTypeValOf(int procColTypeVal) {
ORIGIN_PROPERTY_TYPE result = NORMAL_PROPERTY;
switch (Objects.requireNonNull(PROCEDURE_COL_TYPE.valueOf(procColTypeVal))){
switch (Objects.requireNonNull(PROCEDURE_COL_TYPE.valueOf(procColTypeVal))) {
case IN_PARAM:
result = PROCEDURE_IN_PARAM;
break;

@ -160,14 +160,14 @@ public class BfElement extends BaseBean {
@ApiParam(value ="默认排序规则")
private Integer elementSortAttrType;
@Lob
// @Lob
@Column(name="ELEMENT_CSS_STYLE")
@ApiParam(value ="元素样式")
private String elementCssStyle;
@Lob
// @Lob
@Column(name="ELEMENT_FORMATTER")
@ApiParam(value ="元素样式")
@ApiParam(value ="元素格式化")
private String elementFormatter;
@Column(name="ELEMENT_DESCRIPTION")

@ -28,59 +28,64 @@ import java.util.List;
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="BF_METHOD_DETAIL_PROPERTY")
@Api(value="表单功能明细关联属性",description = "表单功能明细关联属性")
@Table(name = "BF_METHOD_DETAIL_PROPERTY")
@Api(value = "表单功能明细关联属性", description = "表单功能明细关联属性")
public class BfMethodDetailProperty extends BaseBean {
private static final long serialVersionUID = -7541677357317732343L;
@Column(name="METHOD_ID")
@ApiParam(value ="功能id")
@Column(name = "METHOD_ID")
@ApiParam(value = "功能id")
@JsonSerialize(using = ToStringSerializer.class)
private Long methodId;
// 关联功能明细表id
@Column(name="PRI_METHOD_DETAIL_ID")
@ApiParam(value ="主功能明细id")
@Column(name = "PRI_METHOD_DETAIL_ID")
@ApiParam(value = "主功能明细id")
@JsonSerialize(using = ToStringSerializer.class)
private Long priMethodDetailId;
@Column(name="PRI_METHOD_DETAIL_NAME_RDD")
@ApiParam(value ="主功能明细名称")
@Column(name = "PRI_METHOD_DETAIL_NAME_RDD")
@ApiParam(value = "主功能明细名称")
private String priMethodDetailNameRdd;
@Column(name="PRI_ELEMENT_ID")
@ApiParam(value ="主对象元素id")
@Column(name = "PRI_ELEMENT_ID")
@ApiParam(value = "主对象元素id")
@JsonSerialize(using = ToStringSerializer.class)
private Long priElementId;
@Column(name="PRI_ELEMENT_NAME_RDD")
@ApiParam(value ="主对象元素名称")
@Column(name = "PRI_ELEMENT_NAME_RDD")
@ApiParam(value = "主对象元素名称")
private String priElementNameRdd;
// 枚举:BlockFormEnumUtil.TRIGGER_EVENT
@Column(name="PRI_ELEMENT_EVENT")
@ApiParam(value ="主对象元素事件")
@Column(name = "PRI_ELEMENT_EVENT")
@ApiParam(value = "主对象元素事件")
private Integer priElementEvent;
@Column(name="SEC_METHOD_DETAIL_ID")
@ApiParam(value ="关联功能明细id")
// 枚举:BlockFormEnumUtil.TRIGGER_ACTION
@Column(name = "PRI_ELEMENT_ACTION")
@ApiParam(value = "主对象元素动作")
private Integer priElementAction;
@Column(name = "SEC_METHOD_DETAIL_ID")
@ApiParam(value = "关联功能明细id")
@JsonSerialize(using = ToStringSerializer.class)
private Long secMethodDetailId;
@Column(name="SEC_METHOD_DETAIL_NAME_RDD")
@ApiParam(value ="关联功能明细名称")
@Column(name = "SEC_METHOD_DETAIL_NAME_RDD")
@ApiParam(value = "关联功能明细名称")
private String secMethodDetailNameRdd;
@Column(name="SEC_ELEMENT_ID")
@ApiParam(value ="关联对象元素id")
@Column(name = "SEC_ELEMENT_ID")
@ApiParam(value = "关联对象元素id")
@JsonSerialize(using = ToStringSerializer.class)
private Long secElementId;
@Column(name="SEC_ELEMENT_NAME_RDD")
@ApiParam(value ="关联对象元素名称")
@Column(name = "SEC_ELEMENT_NAME_RDD")
@ApiParam(value = "关联对象元素名称")
private String secElementNameRdd;
@Transient
@ApiParam(value ="表单功能明细关联属性")
@ApiParam(value = "表单功能明细关联属性")
private List<BfMethodDetailPropertyRef> refList;
}

@ -26,7 +26,7 @@ import javax.persistence.Table;
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="BF_METHOD_DETAIL_PROPERTY")
@Table(name="BF_METHOD_DETAIL_PROPERTY_REF")
@Api(value="表单功能明细关联属性",description = "表单功能明细关联属性")
public class BfMethodDetailPropertyRef extends BaseBean {

@ -1,47 +0,0 @@
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 javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
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:
* @CreateDate: 2020/10/13
* @Author: simon.song
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_BOARD_IMAGE")
@Api("MES_看板图片")
public class MesBoardImage extends BaseBean implements Serializable {
private static final long serialVersionUID = -3511836584646450267L;
@Column(name = "BOARD_CODE")
@ApiParam("看板代码")
private String boardCode;
@Column(name = "WORK_CENTER_CODE")
@ApiParam("工作中心代码")
private String workCenterCode;
@Column(name = "IMAGE_URL")
@ApiParam("图片路径")
private String imageUrl;
}

@ -76,4 +76,16 @@ public class MesNumberRule extends BaseBean implements Serializable {
@ApiParam("拼接固定字符,多个逗号分隔")
private String spiltRule;
public Integer getBeginVal() {
return this.beginVal == null ? 1 : this.beginVal;
}
public Integer getSerialnoIncrement() {
return this.serialnoIncrement == null ? 1 : this.serialnoIncrement;
}
public Integer getSerialnoLength() {
return this.serialnoLength == null ? 1 : this.serialnoLength;
}
}

@ -47,6 +47,14 @@ public class MesProdCfgDetail extends BaseBean implements Serializable {
@ApiParam("是否虚零件")
private Integer isVirtual;
@Column(name = "IS_LEFT_PART")
@ApiParam("是否左零件")
private Integer isLeftPart;
@Column(name = "PRINTER_NAME")
@ApiParam("打印机名称")
private String printerName;
@Transient
@ApiParam("零件名称")
private String partName;

@ -236,6 +236,18 @@ public class MesProduceSn extends BaseBean implements Serializable {
@ApiParam("物料版本号")
private String versionNo;
@Transient
@ApiParam("配方内容")
private String formulaContent;
@Transient
@ApiParam("分组队列编号")
private String queueGroupNo;
@Transient
@ApiParam("组内编号")
private Integer groupNo;
public MesProduceSn() {
}

@ -8,12 +8,7 @@ import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.persistence.*;
import java.io.Serializable;
/**
@ -74,4 +69,8 @@ public class MesQueueJitActualBom extends BaseBean implements Serializable {
@Column(name = "PART_COLOR_VALUE")
@ApiParam("零件色值")
private String partColorValue;
@Transient
@ApiParam("物料名称")
private String partName;
}

@ -0,0 +1,148 @@
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.ColumnDefault;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
import java.io.Serializable;
/**
* @Description:
* @Reference:
* @Author: Crish
* @CreateDate:2019-04-16-17:36
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_QUEUE_ORDER_DETAIL_RECORD", indexes = {
@Index(columnList = "ORDER_NO"),
@Index(columnList = "SERIAL_NUMBER"),
@Index(columnList = "QUEUE_GROUP_NO"),
@Index(columnList = "PRODUCE_CATEGORY_CODE")
})
@Api("生产队列明细记录表")
public class MesQueueOrderDetailRecord extends BaseBean implements Serializable {
private static final long serialVersionUID = 7840873844253353896L;
@Column(name = "ORDER_NO")
@ApiParam("主队列编号")
private String orderNo;
@Column(name = "PART_NO")
@ApiParam("物料号")
private String partNo;
@Column(name = "PART_NAME_RDD")
@ApiParam("物料名称")
private String partNameRdd;
@Column(name = "SERIAL_NUMBER")
@ApiParam("产品条码")
private String serialNumber;
@Column(name = "SEQ", columnDefinition = "decimal(18,8)")
@ColumnDefault("0")
@ApiParam("队列明细序号")
private Double seq;
@Column(name = "QTY", columnDefinition = "decimal(18,8)")
@ColumnDefault("0")
@ApiParam("数量")
private Double qty;
@Column(name = "STATUS")
@ApiParam("状态")
private Integer status;
@Column(name = "WORK_TYPE")
@ApiParam("生产类型")
private String workType;
@Column(name = "PRODUCE_CATEGORY_CODE")
@ApiParam("产品位置")
private String produceCategoryCode;
@Column(name = "PRODUCE_CATEGORY_NAME_RDD")
@ApiParam("产品位置名称")
private String produceCategoryNameRdd;
@Column(name = "PPT_CODE")
@ApiParam("产品类型名称")
private String pptCode;
@Column(name = "QUEUE_GROUP_NO")
@ApiParam("分组队列编号")
private String queueGroupNo;
@Column(name = "GROUP_NO")
@ApiParam("组内编号")
private Integer groupNo;
@Column(name = "IS_GROUP_PRINTED")
@ApiParam("料架是否已打印")
private Integer isGroupPrinted = 2;
@Column(name = "PRODUCE_COLOR")
@ApiParam("产品颜色")
private String produceColor;
@Column(name = "PRODUCE_COLOR_CODE")
@ApiParam("产品颜色代码")
private String produceColorCode;
@Column(name = "OPTION_CODE")
@ApiParam("选项代码")
private String optionCode;
@Column(name = "ASSY_NO")
@ApiParam("组件编号")
private String assyNo;
@Column(name = "FORMULA_CONTENT")
@ApiParam("配方内容")
private String formulaContent;
@Column(name = "FINSIH_QTY", columnDefinition = "decimal(18,8)")
@ColumnDefault("0")
@ApiParam("已生产数量")
private Double finsihQty;
@Column(name = "GROUP_SIDE")
@ApiParam("料架摆放位置")
private String groupSide;
@Column(name = "GROUP_SEQ")
@ApiParam("分组序号")
private String groupSeq;
@Column(name = "PRODUCT_SN")
@ApiParam("产品条码")
private String productSn;
@Column(name = "IS_EMPTY")
@ApiParam("是否放空")
private Integer isEmpty;
@Column(name = "JIS_BACKFLUSH_STATUS")
@ApiParam("回冲标识")
private String jisBackflushStatus;
@Column(name = "WORK_CELL_CODE")
@ApiParam("工作单元代码")
private String workCellCode;
@Column(name = "WORK_CENTER_CODE")
@ApiParam("工作中心")
private String workCenterCode;
}

@ -115,9 +115,10 @@ public class MesStateMachineStatus extends BaseBean implements Serializable {
public MesStateMachineStatus() {
}
public MesStateMachineStatus(String smCode, String statusCode, String nextStatus, String statusName, String nextStatusName, Integer triggerType,
public MesStateMachineStatus(Long id, String smCode, String statusCode, String nextStatus, String statusName, String nextStatusName, Integer triggerType,
String triggerEvent, String triggerWhere, Long triggerAmgId, Long inAmgId, Long outAmgId, Integer statusType, Integer seq,
Integer isInit, String routeCode, String processCode) {
this.id = id;
this.smCode = smCode;
this.statusCode = statusCode;
this.nextStatus = nextStatus;

@ -35,6 +35,9 @@ public class BypassModel {
@ApiParam("状态")
private String status;
@ApiParam("检测结果")
private Integer result;
@ApiParam("颜色")
private String color;

@ -20,6 +20,8 @@ public class SnPrintDataModel {
@ApiParam("打印数据")
private List<StepPrintSnModel> valueList;
@ApiParam("打印数据")
private List<StepPrintSnModel> templateData;
@ApiParam("打印模板及参数")
private MesLabelTemplate labelTemplate;

@ -1,14 +0,0 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesBoardImage;
import org.springframework.stereotype.Repository;
/**
* @Description:
* @CreateDate: 2020/10/13
* @Author: simon.song
*/
@Repository
public interface MesBoardImageRepository extends BaseRepository<MesBoardImage, Long> {
}

@ -0,0 +1,13 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesQueueOrderDetailRecord;
/**
* @Description:
* @Author: jokelin
* @Date: 2021/2/26 10:18 AM
* @Modify:
*/
public interface MesQueueOrderDetailRecordRepository extends BaseRepository<MesQueueOrderDetailRecord, Long> {
}

@ -1906,6 +1906,9 @@ public class MesHqlPack {
if (!StringUtils.isEmpty(mesDataObject.getFieldPk())) {
DdlPreparedPack.getStringLikerPack(mesDataObject.getFieldPk(), "fieldPk", packBean);
}
if (!StringUtils.isEmpty(mesDataObject.getDsCode())) {
DdlPreparedPack.getStringLikerPack(mesDataObject.getDsCode(), "dsCode", packBean);
}
return packBean;
}
@ -2120,7 +2123,7 @@ public class MesHqlPack {
DdlPreparedPack.getNumEqualPack(mesProduceSn.getQcStatus(), "qcStatus", packBean);
}
if (!StringUtils.isEmpty(mesProduceSn.getVinCode())) {
DdlPreparedPack.getStringEqualPack(mesProduceSn.getVinCode(), "vinCode", packBean);
DdlPreparedPack.getStringLikerPack(mesProduceSn.getVinCode(), "vinCode", packBean);
}
if (!StringUtils.isEmpty(mesProduceSn.getOutWorkCenterTimeEnd())) {
DdlPreparedPack.getStringSmallerPack(mesProduceSn.getOutWorkCenterTimeEnd(), "outWorkCenterTime", packBean);

@ -0,0 +1,39 @@
package cn.estsh.i3plus.pojo.model.platform;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* @author Wynne.Lu
* @date 2021/2/20 4:39
* @desc
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Api("日志字段模型")
public class LogFieldModel implements Serializable {
private static final long serialVersionUID = 6303989757683476327L;
@ApiParam("日志时间")
private String time;
@ApiParam("线程")
private String thread;
@ApiParam("日志等级")
private String level;
@ApiParam("执行堆栈")
private String stack;
@ApiParam("日志信息")
private String message;
}

@ -0,0 +1,57 @@
package cn.estsh.i3plus.pojo.model.platform;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.List;
/**
* @author Wynne.Lu
* @date 2021/2/20 12:55
* @desc
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Api("系统日志模型")
public class SysLogModel implements Serializable {
private static final long serialVersionUID = -2982120258911167575L;
@ApiParam("查询日期")
private String queryDate;
@ApiParam("查询开始时间")
private String queryBeginTime;
@ApiParam("查询结束时间")
private String queryEndTime;
@ApiParam("索引名称")
private String indexName;
@ApiParam("索引类型")
private Integer indexType;
@ApiParam("聚合时间")
private Integer aggsDuration;
@ApiParam("日志等级")
private Integer level;
@ApiParam("执行线程")
private String thread;
@ApiParam("服务器环境变量HostId")
private String hostId;
@ApiParam("日志信息")
private List<LogFieldModel> logs;
}

@ -17,7 +17,7 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
@Api("系统登录模型")
public class SystemLoginModel {
public class SysLoginModel {
@ApiParam(value = "登录名")
private String loginName;

@ -26,46 +26,50 @@ import javax.persistence.Table;
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="SYS_LOG_OPERATE")
@Api(value="操作日志表",description = "操作日志表")
@Table(name = "SYS_LOG_OPERATE")
@Api(value = "操作日志表", description = "操作日志表")
public class SysLogOperate extends BaseBean {
private static final long serialVersionUID = 1515035521283176727L;
@ApiParam(value ="系统模块(枚举)", example = "1")
@AnnoOutputColumn(refClass = CommonEnumUtil.SOFT_TYPE.class,refForeignKey = "value",value = "description")
@ApiParam(value = "系统模块(枚举)", example = "1")
@AnnoOutputColumn(refClass = CommonEnumUtil.SOFT_TYPE.class, refForeignKey = "value", value = "description")
private Integer softType;
public String getSoftTypeTxt() {
return softType == null ? null : CommonEnumUtil.SOFT_TYPE.valueOfDescription(softType);
}
@ApiParam(value ="操作类型" , example = "-1")
@AnnoOutputColumn(refClass = ImppEnumUtil.OPERATE_TYPE.class,refForeignKey = "value",value = "description")
@ApiParam(value = "操作类型", example = "-1")
@AnnoOutputColumn(refClass = ImppEnumUtil.OPERATE_TYPE.class, refForeignKey = "value", value = "description")
private Integer operateType;
public String getOperateTypeTxt(){
public String getOperateTypeTxt() {
return operateType == null ? null : ImppEnumUtil.OPERATE_TYPE.valueOfDescription(operateType);
}
@ApiParam(value ="操作信息" , access ="操作信息")
@ApiParam(value = "操作信息", access = "操作信息")
private String operateMessage;
@ApiParam(value ="登录用户名称" , access ="登录用户名称")
@ApiParam(value = "登录用户名称", access = "登录用户名称")
private String userLoginName;
@ApiParam(value ="请求IP" , access ="请求IP")
@ApiParam(value = "请求IP", access = "请求IP")
private String remoteIp;
@ApiParam(value ="请求路径" , access ="请求路径")
@ApiParam(value = "本机名/Ip", access = "本机名/Ip")
private String serverHost;
@ApiParam(value = "请求路径", access = "请求路径")
private String requestUrl;
// @Column(name="HTTP_METHOD")
// @ApiParam(value ="http请求方法" , access ="http请求方法")
// private String httpMethod;
@ApiParam(value ="方法入参" , access ="方法入参")
@ApiParam(value = "方法入参", access = "方法入参")
private String logArgs;
@ApiParam(value ="执行耗时")
@ApiParam(value = "执行耗时")
@JsonSerialize(using = ToStringSerializer.class)
private Long executeTime;
}

@ -1,8 +1,10 @@
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.CommonEnumUtil;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
@ -53,5 +55,6 @@ public class WmsBhChildDetectionItem extends BaseBean {
@Column(name = "VALUE_TYPE")
@ApiParam("值类型")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, dataSrc = "BH_VALUE_TYPE")
@AnnoOutputColumn(refClass = WmsEnumUtil.BH_VALUE_TYPE.class)
private Integer valueType;
}

@ -486,6 +486,11 @@ public class WmsDocMovementDetails extends BaseBean {
@ApiParam("项目名称")
String prodCfgTypeName;
@Transient
@ApiParam("完成时间")
public String complateDateTime;

@ -377,4 +377,9 @@ public class WmsMoveMaster extends BaseBean {
public int getBusiTypeCodeVal() {
return this.busiTypeCode == null ? 0 : this.busiTypeCode.intValue();
}
public WmsMoveMaster(String createDatetime, String createUser) {
this.createDatetime = createDatetime;
this.createUser = createUser;
}
}

@ -7,18 +7,18 @@ import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
/**
* @Description :
* @Description :
* @Reference :
* @Author : puxiao.liao
* @CreateDate : 2020-08-19 14:50

@ -1,8 +1,10 @@
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.CommonEnumUtil;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
@ -62,11 +64,13 @@ public class WmsPartItemCheck extends BaseBean {
@Column(name = "VALUE_TYPE")
@ApiParam("子检测箱值类型")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, dataSrc = "BH_VALUE_TYPE")
@AnnoOutputColumn(refClass = WmsEnumUtil.BH_VALUE_TYPE.class)
private Integer valueType;
@Column(name = "STANDARD")
@ApiParam("标准值")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isRequire = 2, dataSrc = "BH_PART_CHECK_STD")
@AnnoOutputColumn(refClass = WmsEnumUtil.BH_PART_CHECK_STD.class)
private Integer standard;
@Column(name = "MAX")

@ -243,6 +243,10 @@ public class WmsStockQuan extends BaseBean {
return this.lockVersion == null ? 0 : this.lockVersion;
}
public boolean getShowNoDiffStock() {
return this.showNoDiffStock == null ? false : this.showNoDiffStock;
}
public WmsStockQuan() {
}

Loading…
Cancel
Save