Merge branch 'dev' into test

yun-zuoyi
jokelone 5 years ago
commit 5ed822c4d3

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

@ -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 : ANDON_
@ -45,4 +46,12 @@ public class AndonCellAlarmCause extends BaseBean {
@Column(name = "AC_CODE")
@ApiParam(value = "事件描述")
private String acCode;
@Transient
@ApiParam(value = "安灯类型名称")
private String alarmCodeName;
@Transient
@ApiParam(value = "呼叫原因描述")
private String acName;
}

@ -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 : ANDON_
@ -47,5 +48,12 @@ public class AndonCellEventCause extends BaseBean {
@ApiParam(value = "事件原因")
private String ecCode;
@Transient
@ApiParam(value = "安灯类型名称")
private String alarmCodeName;
@Transient
@ApiParam(value = "事件原因描述")
private String ecName;
}

@ -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 : ANDON_
@ -45,4 +46,12 @@ public class AndonCellEventMethod extends BaseBean {
@Column(name = "EM_CODE")
@ApiParam(value = "处理方法")
private String emCode;
@Transient
@ApiParam(value = "安灯类型名称")
private String alarmCodeName;
@Transient
@ApiParam(value = "处理方法描述")
private String emName;
}

@ -266,6 +266,10 @@ public class AndonManageQueue extends BaseManageQueue {
@ApiParam(value ="生产累计件数")
private Integer totalProdNum;
@Transient
@ApiParam(value ="安灯类型名称")
private String alarmCodeName;
// 是否转呼
public Integer getIsShiftCall() {
return this.isShiftCall == null ? 0 : this.isShiftCall;

@ -14,6 +14,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
* @Description : ANDON_PLC
@ -82,6 +83,22 @@ public class AndonPLC extends BaseBean {
@ApiParam(value = "是否安灯")
private Integer isAlarmStatus;
@Transient
@ApiParam(value = "安灯类型名称")
private String alarmCodeName;
@Transient
@ApiParam(value = "生产线名称")
private String workCenterName;
@Transient
@ApiParam(value = "标签业务类型名称")
private String tagBusinessTypeName;
@Transient
@ApiParam(value = "是否安灯名称")
private String isAlarmStatusName;
public int getIsAlarmStatusVal(){
if(isAlarmStatus == null){
return 0;

@ -5,12 +5,13 @@
<parent>
<artifactId>i3plus-pojo</artifactId>
<groupId>i3plus.pojo</groupId>
<version>1.0-TEST-SNAPSHOT</version>
<version>1.0-DEV-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>i3plus-pojo-aps</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>

@ -2,9 +2,12 @@ package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.annotation.ExcludeImportExport;
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.aps.common.BaseCode;
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.EBaseOrder;
import cn.estsh.i3plus.pojo.aps.validator.InsertGroup;
import cn.estsh.i3plus.pojo.aps.validator.UpdateGroup;
import com.fasterxml.jackson.annotation.JsonBackReference;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
@ -29,7 +32,17 @@ import java.util.List;
@MappedSuperclass
@Api("订单基类")
@ExcludeImportExport
public class BaseOrder extends BaseCode {
@MainKey(groups = {InsertGroup.class, UpdateGroup.class})
public class BaseOrder extends BaseAPS {
@Column(name="CODE")
@ApiParam(value ="编码")
@FieldAnnotation(popSearch = true, mainkey = true)
private String code;
@Column(name="NAME")
@ApiParam(value ="名称")
@FieldAnnotation(popSearch = true)
private String name;
@Column(name="MATERIAL_ID")
@ApiParam(value ="物料")
@ -49,7 +62,6 @@ public class BaseOrder extends BaseCode {
@Column(name="LET")
@ApiParam(value ="最晚结束时刻")
@FieldAnnotation(notEmpty = true)
private Date let;
@Column(name="CALC_EST")

@ -1,8 +1,10 @@
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.BaseCode;
import cn.estsh.i3plus.pojo.aps.validator.InsertGroup;
import cn.estsh.i3plus.pojo.aps.validator.UpdateGroup;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
@ -24,7 +26,18 @@ import javax.persistence.Table;
@Entity
@Table(name = "APS_DAY_SHIFT")
@Api("班次")
public class DayShift extends BaseCode {
@MainKey(groups = {InsertGroup.class, UpdateGroup.class})
public class DayShift extends BaseAPS {
@Column(name="CODE")
@ApiParam(value ="编码")
@FieldAnnotation(popSearch = true, mainkey = true)
private String code;
@Column(name="NAME")
@ApiParam(value ="名称")
@FieldAnnotation(popSearch = true)
private String name;
@Column(name="WORK_TIMES")
@ApiParam(value ="工作时间")
@FieldAnnotation(notEmpty = true)

@ -2,7 +2,7 @@ package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.annotation.ExcludeImportExport;
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.aps.common.BaseCode;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.ApsEnumUtil;
import com.fasterxml.jackson.annotation.JsonIgnore;
@ -34,7 +34,17 @@ import java.sql.JDBCType;
@Table(name="APS_FIELD_INFO")
@Api("字段信息")
@ExcludeImportExport
public class FieldInfo extends BaseCode {
public class FieldInfo extends BaseAPS {
@Column(name="CODE")
@ApiParam(value ="编码")
@FieldAnnotation(popSearch = true, mainkey = true)
private String code;
@Column(name="NAME")
@ApiParam(value ="名称")
@FieldAnnotation(popSearch = true)
private String name;
@Column(name="CLASS_NAME")
@ApiParam(value ="所属类简称")
private String className;

@ -1,10 +1,13 @@
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.annotation.RippleAnnotation;
import cn.estsh.i3plus.pojo.aps.common.BaseCode;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
import cn.estsh.i3plus.pojo.aps.holders.EMaterial;
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;
@ -29,7 +32,18 @@ import java.util.List;
@Entity
@Table(name = "APS_MATERIAL")
@Api("物料")
public class Material extends BaseCode {
@MainKey(groups = {InsertGroup.class, UpdateGroup.class})
public class Material extends BaseAPS {
@Column(name="CODE")
@ApiParam(value ="编码")
@FieldAnnotation(popSearch = true, mainkey = true)
private String code;
@Column(name="NAME")
@ApiParam(value ="名称")
@FieldAnnotation(popSearch = true)
private String name;
@Column(name="TYPE")
@ApiParam(value ="物料类型")
@FieldAnnotation(defaultValue = "PRODUCT")

@ -53,11 +53,6 @@ public class ProductOrder extends BaseOrder {
@ApiParam(value ="指定工艺路线")
private String specifyRouting;
@Column(name="RESYNCHRONIZE")
@ApiParam(value ="是否同步")
@FieldAnnotation(defaultValue = "true")
private Boolean resynchronize;
@Column(name="RECALC_COUNT")
@ApiParam(value ="是否重新计算数量")
@FieldAnnotation(defaultValue = "true")

@ -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.common.BaseCode;
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.EProductRouting;
import cn.estsh.i3plus.pojo.aps.validator.InsertGroup;
import cn.estsh.i3plus.pojo.aps.validator.UpdateGroup;
import com.fasterxml.jackson.annotation.JsonBackReference;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
@ -28,7 +31,18 @@ import java.util.List;
@Entity
@Table(name = "APS_PRODUCT_ROUTING")
@Api("工艺路线")
public class ProductRouting extends BaseCode {
@MainKey(groups = {InsertGroup.class, UpdateGroup.class})
public class ProductRouting extends BaseAPS {
@Column(name="CODE")
@ApiParam(value ="编码")
@FieldAnnotation(popSearch = true, mainkey = true)
private String code;
@Column(name="NAME")
@ApiParam(value ="名称")
@FieldAnnotation(popSearch = true)
private String name;
@Column(name="MATERIAL_ID")
@ApiParam(value ="物料")
@FieldAnnotation(relation = "Material", notEmpty = true, display = false)

@ -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.common.BaseCode;
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.EResource;
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,7 +31,18 @@ import java.util.List;
@Entity
@Table(name = "APS_RESOURCE")
@Api("资源")
public class Resource extends BaseCode {
@MainKey(groups = {InsertGroup.class, UpdateGroup.class})
public class Resource extends BaseAPS {
@Column(name="CODE")
@ApiParam(value ="编码")
@FieldAnnotation(popSearch = true, mainkey = true)
private String code;
@Column(name="NAME")
@ApiParam(value ="名称")
@FieldAnnotation(popSearch = true)
private String name;
@Column(name="TYPE")
@ApiParam(value ="资源类型")
@FieldAnnotation(defaultValue = "MAIN")

@ -1,7 +1,10 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.aps.common.BaseCode;
import cn.estsh.i3plus.pojo.aps.annotation.MainKey;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
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 io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
@ -24,7 +27,17 @@ import javax.persistence.Table;
@Entity
@Table(name = "APS_STAND_OPERATION")
@Api("标准工序")
public class StandOperation extends BaseCode {
@MainKey(groups = {InsertGroup.class, UpdateGroup.class})
public class StandOperation extends BaseAPS {
@Column(name="CODE")
@ApiParam(value ="编码")
@FieldAnnotation(popSearch = true, mainkey = true)
private String code;
@Column(name="NAME")
@ApiParam(value ="名称")
@FieldAnnotation(popSearch = true)
private String name;
@Column(name="DIRECTION")
@ApiParam(value ="排程方向")

@ -1,10 +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.BaseCode;
import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
import cn.estsh.i3plus.pojo.aps.holders.EWork;
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;
@ -30,15 +32,16 @@ import java.util.List;
@Entity
@Table(name = "APS_WORK")
@Api("工作")
@MainKey(groups = {InsertGroup.class, UpdateGroup.class})
public class Work extends BaseAPS {
@Column(name="CODE")
@ApiParam(value ="编码")
@FieldAnnotation(popSearch = true, mainkey = true)
@FieldAnnotation(popSearch = true, mainkey = true, modify = false)
private String code;
@Column(name="ORDER_ID")
@ApiParam(value ="订单")
@FieldAnnotation(relation = "Order")
@FieldAnnotation(relation = "Order", modify = false)
private Long orderId;
@Column(name="WORK_TYPE")
@ -74,9 +77,10 @@ public class Work extends BaseAPS {
@ApiParam(value ="指定数量")
private Double specifyCount;
@Column(name="SPECIFY_RESOURCE")
@ApiParam(value ="指定资源")
private String specifyResource;
@Column(name="SPECIFY_RESOURCE_ID")
@ApiParam(value ="指定主资源")
@FieldAnnotation(relation = "SpecifyResource")
private Long specifyResourceId;
@Column(name="SPECIFY_PRODUCE_TIME")
@ApiParam(value ="指定制造时间")
@ -220,4 +224,13 @@ public class Work extends BaseAPS {
@JsonBackReference
public List<WorkPlan> getWorkPlans() { return BeanRelation.list(this, EWork.WorkPlans); }
public Resource getSpecifyResource() {
return BeanRelation.get(this, EWork.SpecifyResource);
}
public void setSpecifyResource(Resource resource) {
this.specifyResourceId = resource != null ? resource.getId() : 0;
BeanRelation.set(this, EWork.SpecifyResource, resource);
}
}

@ -113,6 +113,11 @@ public class WorkPlan extends BaseAPS {
@FieldAnnotation(modify = false, editType = ApsEnumUtil.EDIT_TYPE.DURATION)
private Integer lockTime;
@Column(name="FORCE_POST_SET_ZERO")
@ApiParam(value ="是否将后设置时间强制设置成0")
@FieldAnnotation(property = false)
private Boolean forcePostSetZero;
@Column(name="WORK_RESOURCE_ID")
@ApiParam(value ="工作资源对象id")
@FieldAnnotation(property = false)

@ -30,27 +30,27 @@ public class WorkRelation extends BaseAPS {
@Column(name="MATERIAL_ID")
@ApiParam(value ="物料")
@FieldAnnotation(relation = "Material")
@FieldAnnotation(relation = "Material", modify = false)
private Long materialId;
@Column(name="PREV_ORDER_ID")
@ApiParam(value ="前订单")
@FieldAnnotation(relation = "PrevOrder")
@FieldAnnotation(relation = "PrevOrder", modify = false)
private Long prevOrderId;
@Column(name="POST_ORDER_ID")
@ApiParam(value ="后订单")
@FieldAnnotation(relation = "PostOrder")
@FieldAnnotation(relation = "PostOrder", modify = false)
private Long postOrderId;
@Column(name="PREV_WORK_ID")
@ApiParam(value ="前工作")
@FieldAnnotation(relation = "PrevWork")
@FieldAnnotation(relation = "PrevWork", modify = false)
private Long prevWorkId;
@Column(name="POST_WORK_ID")
@ApiParam(value ="后工作")
@FieldAnnotation(relation = "PostWork")
@FieldAnnotation(relation = "PostWork", modify = false)
private Long postWorkId;
@Column(name="COUNT", columnDefinition = "decimal(18,8)")

@ -8,10 +8,10 @@ import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Lob;
import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;
import java.util.HashMap;
import java.util.Map;
/**
* @Description :APS
@ -26,7 +26,9 @@ import java.util.Map;
@ExcludeImportExport
public abstract class BaseAPS extends BaseBean {
@JsonIgnore
private transient Map<String, Object> customFields = new HashMap<>();
@Lob
@FieldAnnotation(property = false)
private HashMap<String, Object> customFields = new HashMap<>();
@Column(name="KEY")
@ApiParam(value ="主键值")

@ -1,36 +0,0 @@
package cn.estsh.i3plus.pojo.aps.common;
import cn.estsh.i3plus.pojo.aps.annotation.ExcludeImportExport;
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.aps.annotation.MainKey;
import cn.estsh.i3plus.pojo.aps.validator.InsertGroup;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2019-09-12
* @Modify:
**/
@Data
@EqualsAndHashCode(callSuper = true)
@MappedSuperclass
@MainKey(groups = {InsertGroup.class})
@ExcludeImportExport
public abstract class BaseCode extends BaseAPS {
@Column(name="CODE")
@ApiParam(value ="编码")
@FieldAnnotation(popSearch = true, mainkey = true)
private String code;
@Column(name="NAME")
@ApiParam(value ="名称")
@FieldAnnotation(popSearch = true)
private String name;
}

@ -1,5 +1,6 @@
package cn.estsh.i3plus.pojo.aps.common;
import cn.estsh.i3plus.pojo.aps.validator.IMainKeyValidatorImpl;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.ApsEnumUtil;
@ -177,6 +178,7 @@ public class BeanInfo {
private static Map<Class<? extends BaseBean>, BeanInfo> beanInfos = new HashMap<>();
private static Map<String, BeanInfo> nameMapBeanInfos = new HashMap<>();
private static IMainKeyValidatorImpl mainKeyValidator;
static {
BeanInfo beanInfo = new BeanInfo(BaseBean.class);
@ -306,4 +308,8 @@ public class BeanInfo {
return cls;
}
public static IMainKeyValidatorImpl getMainKeyValidator() { return mainKeyValidator; }
public static void setMainKeyValidator(IMainKeyValidatorImpl impl) { mainKeyValidator = impl; }
}

@ -12,4 +12,5 @@ public enum EWork {
PlanFeedbacks, // 工作计划反馈
MainPlan, // 关联的为主资源的计划
WorkPlans, // 关联的工作计划
SpecifyResource, // 指定资源
}

@ -21,5 +21,4 @@ public class GanttCalendarModel {
//private String timeRangeColor;
private String eventColor;
private String name;
private Long workId;
}

@ -0,0 +1,11 @@
package cn.estsh.i3plus.pojo.aps.model;
import lombok.Data;
@Data
public class GanttDragModel {
private Long workId;
private Long resId;
private Long targetResId;
private Long targetWorkId;
}

@ -0,0 +1,31 @@
package cn.estsh.i3plus.pojo.aps.model;
import cn.estsh.i3plus.pojo.aps.converter.CustomDateDeserializer;
import cn.estsh.i3plus.pojo.aps.converter.CustomDateSerializer;
import cn.estsh.i3plus.pojo.base.common.Pager;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.Api;
import lombok.Data;
import java.util.Date;
import java.util.List;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2019-11-22
* @Modify:
**/
@Data
@Api("甘特图分页查询参数")
public class GanttEventRequest {
private Long[] resourceIds;
@JsonSerialize(using = CustomDateSerializer.class)
@JsonDeserialize(using = CustomDateDeserializer.class)
private Date begin;
@JsonSerialize(using = CustomDateSerializer.class)
@JsonDeserialize(using = CustomDateDeserializer.class)
private Date end;
}

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.aps.model;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
public class GanttOrderModel {
private Long id;
private String code;
private String name;
private List<GanttOrderModel> children = new ArrayList<>();
}

@ -0,0 +1,27 @@
package cn.estsh.i3plus.pojo.aps.model;
import cn.estsh.i3plus.pojo.aps.converter.CustomDateDeserializer;
import cn.estsh.i3plus.pojo.aps.converter.CustomDateSerializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import java.util.Date;
import java.util.List;
@Data
public class GanttPlanModel {
private Long resourceId;
@JsonSerialize(using = CustomDateSerializer.class)
@JsonDeserialize(using = CustomDateDeserializer.class)
private Date startDate;
@JsonSerialize(using = CustomDateSerializer.class)
@JsonDeserialize(using = CustomDateDeserializer.class)
private Date endDate;
private String cls;
private String eventColor;
private String name;
private Long workId;
private List<Long> resIds;
private Boolean draggable;
}

@ -10,7 +10,7 @@ import lombok.Data;
import java.util.Date;
@Data
public class ResourceLodaRequest {
public class ResourceLoadRequest {
private ApsEnumUtil.RESOURCE_LOAD_SPAN span;
@JsonSerialize(using = CustomDateSerializer.class)
@JsonDeserialize(using = CustomDateDeserializer.class)

@ -0,0 +1,7 @@
package cn.estsh.i3plus.pojo.aps.validator;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
public interface IMainKeyValidatorImpl {
boolean isValid(BaseBean bean);
}

@ -1,6 +1,7 @@
package cn.estsh.i3plus.pojo.aps.validator;
import cn.estsh.i3plus.pojo.aps.annotation.MainKey;
import cn.estsh.i3plus.pojo.aps.common.BeanInfo;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import javax.validation.ConstraintValidator;
@ -9,6 +10,6 @@ import javax.validation.ConstraintValidatorContext;
public class MainKeyValidator implements ConstraintValidator<MainKey, BaseBean> {
@Override
public boolean isValid(BaseBean bean, ConstraintValidatorContext constraintValidatorContext) {
return true;
return BeanInfo.getMainKeyValidator().isValid(bean);
}
}

@ -0,0 +1,4 @@
package cn.estsh.i3plus.pojo.aps.validator;
public interface UpdateGroup {
}

@ -18,4 +18,6 @@
</Relation>
<Relation field="PlanFeedbacks" name="PlanFeedback" reverse="Work" type="ONE_TO_MULTI" owner="true">
</Relation>
<Relation field="SpecifyResource" name="Resource" type="MULTI_TO_ONE">
</Relation>
</Class>

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

@ -0,0 +1,36 @@
package cn.estsh.i3plus.pojo.base.annotation;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import java.lang.annotation.*;
/**
*
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface FieldAnnotation {
// Web前端字段数据类型
WmsEnumUtil.FIELD_TYPE webFieldType();
// 条件表达式:>,<,>=等
String conditionExpre() default "=";
// 条件连接符:and/or
String conditionConnector() default "and";
// 排序序号
int seq() default 0;
// 字段列宽度
double width() default 0d;
// 排序规则:默认0-不排序1-升序2-降序
int sort() default 0;
// 是否标题字段加粗 是否加粗:默认1-加粗2-非加粗
int isWider() default 2;
// 是否勾选:默认1-勾选2-非勾选
int isSelect() default 1;
// 是否必选:默认1-必选2-非必选
int isRequire() default 1;
// 是否表单字段展示:默认1-显示2-隐藏
int isShow() default 1;
// 是否跳过本字段扫描 0-不跳过1-跳过
int isSkip() default 0;
}

@ -1,7 +1,9 @@
package cn.estsh.i3plus.pojo.base.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
@ -39,6 +41,7 @@ public abstract class BaseBean implements Serializable {
@ApiParam(value = "主键",example = "0")
@JsonSerialize(using = ToStringSerializer.class)
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
public Long id;
//get单独处理
@ -61,16 +64,19 @@ public abstract class BaseBean implements Serializable {
@Column(name="ORGANIZE_CODE")
@ApiParam(value ="组织代码")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isRequire = 2)
// @AnnoOutputColumn(hidden = true)
public String organizeCode;
@Column(name="IS_VALID", columnDefinition = "int default 1", nullable = false)
@ApiParam(value = "有效性",example = "1")
@AnnoOutputColumn(refClass = CommonEnumUtil.TRUE_OR_FALSE.class,refForeignKey = "value",value = "description", hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isSkip = 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")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isSkip = 1)
@AnnoOutputColumn(hidden = true)
//逻辑删除,软删除
public Integer isDeleted; //CommonEnumUtil.TRUE_OR_FALSEA
@ -78,54 +84,64 @@ public abstract class BaseBean implements Serializable {
@Column(name="CREATE_USER",updatable = false)
@ApiParam(value = "创建用户")
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
public String createUser;
@Indexed(direction = IndexDirection.DESCENDING)
@Column(name="CREATE_DATE_TIME",updatable = false)
@ApiParam(value = "创建日期")
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.DATETIME, isRequire = 2)
public String createDatetime;
@Column(name="MODIFY_USER")
@ApiParam(value = "修改人")
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
public String modifyUser;
@Column(name="MODIFY_DATE_TIME")
@ApiParam(value = "修改日期")
@FieldAnnotation(webFieldType = WmsEnumUtil.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")
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isSkip = 1)
public String createDateTimeStart;
@Transient
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiParam(value="创建日期查询用,查询结束日期",example = "2018-12-31 23:59:59")
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isSkip = 1)
public String createDateTimeEnd;
@Transient
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiParam(value="修改日期查询用,查询起始日期",example = "2018-01-01 01:00:00")
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isSkip = 1)
public String modifyDateTimeStart;
@Transient
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiParam(value = "修改日期查询用,查询结束日期",example = "2018-12-31 23:59:59")
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isSkip = 1)
public String modifyDateTimeEnd;
@Transient
@ApiParam(value = "排序属性")
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isSkip = 1)
public String orderByParam = "";
@Transient
@ApiParam(value = "排序类型1 正序2 倒序",example = "1")
@AnnoOutputColumn(hidden = true)
@FieldAnnotation(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isSkip = 1)
//CommonEnumUtil.ASC_OR_DESC 1 asc,2 desc
public transient Integer ascOrDesc = 1;

@ -863,8 +863,8 @@ public class ApsEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum CALENDAR_TYPE {
ENABLE("ENABLE", "启用"),
DISABLE("DISABLE", "停用");
ENABLE("ENABLE", "加班"),
DISABLE("DISABLE", "下班");
private String value;
private String description;

@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.StringUtils;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description :
@ -1985,7 +1984,7 @@ public class BlockFormEnumUtil {
}
private String getJDBCUrlSQLServer(String database,String host,Integer port){
return "jdbc:sqlserver://" + host + ":" + port + ";database=" + database;
return "jdbc:sqlserver://" + host + ":" + port + ";database=" + database+";autoReconnect=true";
}
}
@ -2071,447 +2070,4 @@ public class BlockFormEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PROPERTY_CONTROL_TYPE {
RADIO(100, "RADIO", "单选"),
CHECKBOX(110, "CHECKBOX", "复选"),
TEXT(200, "TEXT", "文本"),
NUMBER(210, "NUMBER", "数字"),
PASSWORD(230, "PASSWORD", "密码"),
DATE_TIME(300, "DATE", "日期",SQL_WHERE.BETWEEN),
// DATE(300, "DATE", "日期(yyyy-MM-dd)"),
// DATE_TIME(310, "DATE_TIME", "时间(yyyy-MM-dd hh:mm:ss)"),
// ELEMENT(700, "DICT_SELECT", "元素"),
DICTIONARY(800, "DICT_SELECT", "字典"),
CASCADE(900, "CASCADE", "级联");
//FILE(400, "file", "文件"),
//IMAGE(410, "image", "image"),
//OFF(500, "color", "颜色"),
private int value;
private String code;
private String description;
/**
*
*/
private SQL_WHERE defaultWhere;
PROPERTY_CONTROL_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
PROPERTY_CONTROL_TYPE(int value, String code, String description, SQL_WHERE defaultWhere) {
this.value = value;
this.code = code;
this.description = description;
this.defaultWhere = defaultWhere;
}
public int getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
public SQL_WHERE getDefaultWhere() {
return defaultWhere;
}
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 PROPERTY_CONTROL_TYPE 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)
public enum SQL_WHERE {
EQUAL(1, "=", "等于"),
NOT_EQUAL(2, "<>", "不等于"),
MORE(3, ">", "大于"),
LESS(4, "<", "小于"),
MORE_OR_EQUAL(5, ">=", "大于等于"),
LESS_OR_EQUAL (6, "<=", "小于等于"),
LIKE(7, "LIKE", "全模糊"),
START_LIKE(7, "LIKE", "前模糊"),
END_LIKE(7, "LIKE", "后模糊"),
IN(8, "in", "in"),
BETWEEN(9, "BETWEEN", "区间查询(逗号区分)"),;
private int value;
private String code;
private String description;
private SQL_WHERE(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.toLowerCase())) {
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 SQL_WHERE valueOf(int val) {
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;
}
}
/**
* ()
* <per>
* <br/> Form
* <br/> Java
* <br/> Java
* </per>
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PROPERTY_TYPE {
STRING(10, "String", "字符串", "java.lang.String", String.class,PROPERTY_CONTROL_TYPE.TEXT,SQL_WHERE.LIKE,""),
CHAR(11, "Character", "单字符", "java.lang.Character", Character.class,PROPERTY_CONTROL_TYPE.TEXT,SQL_WHERE.EQUAL,""),
INTEGER(20, "Integer", "短整型", "java.lang.Integer", Integer.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,"0"),
LONG(21, "Long", "长整型", "java.lang.Long", Long.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,"0"),
DOUBLE(30, "Double", "大浮点型", "java.lang.Double", Double.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,"0.0"),
FLOAT(31, "Float", "小浮点型", "java.lang.Float", Float.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,"0.0"),
BIG_DECIMAL(32, "BigDecimal", "大浮点型", "java.math.BigDecimal", BigDecimal.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,"0.0"),
BOOLEAN(40, "Boolean", "布尔值", "java.lang.Boolean", Boolean.class,PROPERTY_CONTROL_TYPE.RADIO,SQL_WHERE.EQUAL,null),
BYTE(50, "Byte", "字节", "java.lang.Byte", Byte.class,PROPERTY_CONTROL_TYPE.TEXT,SQL_WHERE.EQUAL,null),
DATE_TIME(12, "String", "日期时分秒", "java.sql.Timestamp", String.class,PROPERTY_CONTROL_TYPE.DATE_TIME,SQL_WHERE.BETWEEN,null,"yyyy-MM-dd hh:mm:ss");
/**
*
*/
private int value;
/**
*
*/
private String code;
/**
*
*/
private String description;
/**
* ClassPath
*/
private String classPath;
/**
* Class
*/
private Class clzFullName;
/**
*
*/
private PROPERTY_CONTROL_TYPE controlType;
/**
*
*/
private SQL_WHERE defaultWhere;
/**
*
*/
private String defaultFormat;
/**
*
*/
private String defaultValue;
private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName,
PROPERTY_CONTROL_TYPE controlType,SQL_WHERE defaultWhere) {
this.value = value;
this.code = code;
this.description = description;
this.classPath = classPath;
this.clzFullName = clzFullName;
this.controlType = controlType;
this.defaultWhere = defaultWhere;
}
private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName,
PROPERTY_CONTROL_TYPE controlType,SQL_WHERE defaultWhere,String defaultValue) {
this.value = value;
this.code = code;
this.description = description;
this.classPath = classPath;
this.clzFullName = clzFullName;
this.controlType = controlType;
this.defaultWhere = defaultWhere;
this.defaultValue = defaultValue;
this.defaultFormat = defaultFormat;
}
private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName,
PROPERTY_CONTROL_TYPE controlType,SQL_WHERE defaultWhere,String defaultValue,String defaultFormat) {
this.value = value;
this.code = code;
this.description = description;
this.classPath = classPath;
this.clzFullName = clzFullName;
this.controlType = controlType;
this.defaultWhere = defaultWhere;
this.defaultValue = defaultValue;
this.defaultFormat = defaultFormat;
}
public int getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
public String getClassPath() {
return classPath;
}
public Class getClzFullName() {
return clzFullName;
}
public PROPERTY_CONTROL_TYPE getControlType() {
return controlType;
}
public SQL_WHERE getDefaultWhere() {
return defaultWhere;
}
public String getDefaultFormat() {
return defaultFormat;
}
public String getDefaultValue() {
return defaultValue;
}
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 PROPERTY_TYPE valueOfClzFullName(int val) {
PROPERTY_TYPE tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i];
}
}
return tmp;
}
public static PROPERTY_CONTROL_TYPE valueOfControlType(int val) {
PROPERTY_CONTROL_TYPE tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].controlType;
}
}
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 int codeOfClzFullName(Class clzFullName) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].clzFullName.equals(clzFullName)) {
tmp = values()[i].value;
}
}
return tmp;
}
public static int codeOfClassPath(String classPath) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].classPath.equals(classPath)) {
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 PROPERTY_TYPE valueOfClassPath(String classPath) {
PROPERTY_TYPE tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].classPath.equals(classPath)) {
tmp = values()[i];
}
}
return tmp;
}
public static PROPERTY_TYPE 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 PROPERTY_TYPE indexOf(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (val.indexOf(values()[i].value) >= 0) {
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;
}
}
}

@ -55,7 +55,6 @@ public class BlockReportEnumUtil {
}
/**
*
* TABLE(1,"表格"),CHART(2,"图表");
@ -95,8 +94,6 @@ public class BlockReportEnumUtil {
}
}
/**
*
*/
@ -277,7 +274,6 @@ public class BlockReportEnumUtil {
}
}
/**
*
* 1
@ -290,7 +286,8 @@ public class BlockReportEnumUtil {
ECHARTS_PIE(10, "饼图", "实芯饼图"),
ECHARTS_BAR(20, "柱状图", "柱状图-向上具状图"),
ECHARTS_LINE(30, "折线图", "向右折线条图"),
ECHARTS_TREEMAP(40, "矩形图", "矩形图");
ECHARTS_TREEMAP(40, "矩形图", "矩形图"),
SELECT_SINGLE(50, "下拉单选", "下拉单选");
private int value;
private String name;
@ -439,36 +436,96 @@ public class BlockReportEnumUtil {
return tmp;
}
}
//
// /**
// * HQL WHERE 条件
// */
// @JsonFormat(shape = JsonFormat.Shape.OBJECT)
// public enum HQL_WHERE{
//
// GT(1, " > ", "大于"),
// GT_EQUAL(2, " >= ", "大于等于"),
// LT(3, " < ", "小于等于"),
// LT_EQUAL(4, " <= ", "小于等于"),
// LIKE(5, " LIKE ", "模糊"),
// LIKE_LEFT(6, " LIKE ", "左模糊"),
// LIKE_RIGHT(7, " LIKE ", "右模糊"),
// EQUAL(8, " = ", "等于"),
// EQUAL_NOT(9, " <> ", "不等于"),
//// AND(10, " AND ", "AND"),
//// OR(11, " OR ", "OR"),
//// NOT(12, " NOT ", "NOT"),
// IN(8, " IN ", "IN"),
// IS_NULL(13, " IS NULL ", "IS NULL"),
// IS_NOT_NULL(14, " IS NOT NULL ", "IS NOT NULL");
//
// private int value;
// private String name;
// private String description;
//
// HQL_WHERE() {
// }
//
// HQL_WHERE(int value, String name, String description) {
// this.value = value;
// this.name = name;
// this.description = description;
// }
//
// public int getValue() {
// return value;
// }
//
// public String getDescription() {
// return description;
// }
//
// public String getName() {
// return name;
// }
//
// public static HQL_WHERE valueOf(int val) {
// for (int i = 0; i < values().length; i++) {
// if (values()[i].value == val) {
// return values()[i];
// }
// }
// return null;
// }
//
// public static String valueOfDescription(int val) {
// for (int i = 0; i < values().length; i++) {
// if (values()[i].value == val) {
// return values()[i].getDescription();
// }
// }
// return null;
// }
//
// public static int descOf(String desc) {
// int tmp = 1;
// for (int i = 0; i < values().length; i++) {
// if (values()[i].name.equals(desc)) {
// tmp = values()[i].value;
// }
// }
// return tmp;
// }
// }
/**
* HQL WHERE
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum HQL_WHERE{
GT(1, ">", "大于"),
GT_EQUAL(2, ">=", "大于等于"),
LT(3, "<", "小于等于"),
LT_EQUAL(4, "<=", "小于等于"),
LIKE(5, "LIKE", "模糊"),
LIKE_LEFT(6, "LIKE", "左模糊"),
LIKE_RIGHT(7, "LIKE", "右模糊"),
EQUAL(8, "=", "等于"),
EQUAL_NOT(9, "<>", "不等于"),
// AND(10, "AND", "AND"),
// OR(11, "OR", "OR"),
// NOT(12, "NOT", "NOT"),
IS_NULL(13, "IS NULL", "IS NULL"),
IS_NOT_NULL(14, "IS NOT NULL", "IS NOT NULL");
public enum HQL_WHERE_REF{
AND(10, " AND ", "AND"),
OR(11, " OR ", "OR");
private int value;
private String name;
private String description;
HQL_WHERE() {
HQL_WHERE_REF() {
}
HQL_WHERE(int value, String name, String description) {
HQL_WHERE_REF(int value, String name, String description) {
this.value = value;
this.name = name;
this.description = description;
@ -486,7 +543,7 @@ public class BlockReportEnumUtil {
return name;
}
public static HQL_WHERE valueOf(int val) {
public static HQL_WHERE_REF valueOf(int val) {
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
return values()[i];
@ -495,6 +552,15 @@ public class BlockReportEnumUtil {
return null;
}
public static String valueOfDescription(int val) {
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
return values()[i].getDescription();
}
}
return null;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
@ -511,9 +577,9 @@ public class BlockReportEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum HQL_REF{
LEFT_JOIN(1, "left join", "左连接"),
RIGHT_JOIN(2, "right join", "右连接"),
INNER_JOIN(3, "inner join", "内连接");
LEFT_JOIN(1, " LEFT JOIN ", "左连接"),
RIGHT_JOIN(2, " RIGHT JOIN ", "右连接"),
INNER_JOIN(3, " INNER JOIN ", "内连接");
private int value;
private String name;
@ -550,6 +616,16 @@ public class BlockReportEnumUtil {
return null;
}
public static String valueOfDescription(int val) {
HQL_REF tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
return values()[i].getDescription();
}
}
return null;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
@ -567,11 +643,11 @@ public class BlockReportEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum HQL_AGGREGATION{
AVG(1, "avg", "平均值"),
MIN(2, "min", "最小值"),
MAX(3, "max", "最大值"),
SUM(4, "sum", "总和"),
COUNT(5, "count", "计数");
AVG(1, "AVG", "平均值"),
MIN(2, "MIN", "最小值"),
MAX(3, "MAX", "最大值"),
SUM(4, "SUM", "总和"),
COUNT(5, "COUNT", "计数");
private int value;
private String name;
@ -632,11 +708,11 @@ public class BlockReportEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum HQL_ATTR_DATA_TYPE{
SHOW(1, "show", "显示"),
WHERE(2, "where", "查询"),
GROUP(3, "group", "分组"),
AGGREGATION(4, "聚合", "聚合");
AGGREGATION(4, "聚合", "聚合"),
ORDER(5, "order", "排序");
private int value;
private String name;
@ -684,6 +760,17 @@ public class BlockReportEnumUtil {
return null;
}
public static String valueOfDescription(Integer val) {
if(val != null){
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val.intValue()) {
return values()[i].description;
}
}
}
return null;
}
public static int descOf(String desc) {
int tmp = 1;
@ -697,22 +784,62 @@ public class BlockReportEnumUtil {
}
/**
*
*
* ELEMENT(1,"元素"),TEMPLATE(2,"模板");
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum HQL_ORDER{
public enum REPORT_TYPESET_TYPE{
ELEMENT(1,"元素"),TEMPLATE(2,"模板");
ASC(1, "ASC", "升序"),
DESC(2, "DESC", "降序");
private int value;
private String description;
REPORT_TYPESET_TYPE() {
}
REPORT_TYPESET_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;
}
}
/**
* Echarts Pie
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum VIEW_ECHARTS_PIE_OPTION{
OPTION_NAME(1,"ECHARTS_PIE_NAME","显示名称"),
OPTION_VALUE(2,"ECHARTS_PIE_VALUE","显示内容");
private int value;
private String name;
private String description;
HQL_ORDER() {
VIEW_ECHARTS_PIE_OPTION() {
}
HQL_ORDER(int value, String name, String description) {
VIEW_ECHARTS_PIE_OPTION(int value,String name, String description) {
this.value = value;
this.name = name;
this.description = description;
@ -726,48 +853,119 @@ public class BlockReportEnumUtil {
return description;
}
public String getName() {
return name;
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 String valueOf(int val) {
}
/**
* Echarts Line
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum VIEW_ECHARTS_LINE_OPTION{
OPTION_NAME(1,"ECHARTS_LINE_NAME","显示名称"),
OPTION_VALUE(2,"ECHARTS_LINE_VALUE","显示内容"),
OPTION_X_AXIS(3,"ECHARTS_LINE_X_AXIS","显示内容xAxis");
private int value;
private String name;
private String description;
VIEW_ECHARTS_LINE_OPTION() {
}
VIEW_ECHARTS_LINE_OPTION(int value,String name, String description) {
this.value = value;
this.name = name;
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].getName();
tmp = values()[i].description;
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = 1;
}
/**
* Echarts Bar
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum VIEW_ECHARTS_BAR_OPTION{
OPTION_NAME(1,"ECHARTS_BAR_NAME","显示名称"),
OPTION_VALUE(2,"ECHARTS_BAR_VALUE","显示内容");
private int value;
private String name;
private String description;
VIEW_ECHARTS_BAR_OPTION() {
}
VIEW_ECHARTS_BAR_OPTION(int value,String name, String description) {
this.value = value;
this.name = name;
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].name.equals(desc)) {
tmp = values()[i].value;
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
* ELEMENT(1,"元素"),TEMPLATE(2,"模板");
* Echarts TreeMap
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum REPORT_TYPESET_TYPE{
ELEMENT(1,"元素"),TEMPLATE(2,"模板");
public enum VIEW_ECHARTS_TREEMAP_OPTION{
OPTION_NAME(1,"ECHARTS_TREEMAP_NAME","显示名称"),
OPTION_VALUE(2,"ECHARTS_TREEMAP_VALUE","显示内容");
private int value;
private String name;
private String description;
REPORT_TYPESET_TYPE() {
VIEW_ECHARTS_TREEMAP_OPTION() {
}
REPORT_TYPESET_TYPE(int value, String description) {
VIEW_ECHARTS_TREEMAP_OPTION(int value,String name, String description) {
this.value = value;
this.name = name;
this.description = description;
}

@ -615,7 +615,8 @@ public class BlockSoftSwitchEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DATABASE_OPERATE_TYPE{
READ(1,"读取"),
WRITE(2,"写入");
WRITE(2,"写入"),
BATCH_WRITE(3,"批量写入");
private int value;
private String description;

@ -3,6 +3,8 @@ package cn.estsh.i3plus.pojo.base.enumutil;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.StringUtils;
import java.math.BigDecimal;
/**
* @Description :
* @Reference :
@ -146,11 +148,12 @@ public class CommonEnumUtil {
}
return null;
}
public static int descriptionOfValue(String desc) {
public synchronized static int descriptionOfValue(String desc) {
int tmp = IMPP.value;
for (int i = 0; i < values().length; i++) {
if (values()[i].name().equals(desc)) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
break;
}
}
return tmp;
@ -221,6 +224,15 @@ public class CommonEnumUtil {
return desc == 0 ? TRUE_OR_FALSE.TRUE.getValue() : TRUE_OR_FALSE.FALSE.getValue();
}
public static TRUE_OR_FALSE valueOfEnum(int value){
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
return values()[i];
}
}
return null;
}
public static String valueOfDescription(int val) {return valueOf(val);}
public static int descriptionOfValue(String desc) {return descOf(desc);}
@ -1247,6 +1259,15 @@ public class CommonEnumUtil {
return tmp;
}
public static LOG_DETAIL_SHOW_TYPE valueOfEnum(int val) {
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
return values()[i];
}
}
return null;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
@ -1258,4 +1279,446 @@ public class CommonEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PROPERTY_CONTROL_TYPE {
RADIO(100, "RADIO", "单选"),
CHECKBOX(110, "CHECKBOX", "复选"),
TEXT(200, "TEXT", "文本"),
NUMBER(210, "NUMBER", "数字"),
PASSWORD(230, "PASSWORD", "密码"),
DATE_TIME(300, "DATE", "日期",SQL_WHERE.BETWEEN),
// DATE(300, "DATE", "日期(yyyy-MM-dd)"),
// DATE_TIME(310, "DATE_TIME", "时间(yyyy-MM-dd hh:mm:ss)"),
// ELEMENT(700, "DICT_SELECT", "元素"),
DICTIONARY(800, "DICT_SELECT", "字典"),
CASCADE(900, "CASCADE", "级联");
//FILE(400, "file", "文件"),
//IMAGE(410, "image", "image"),
//OFF(500, "color", "颜色"),
private int value;
private String code;
private String description;
/**
*
*/
private SQL_WHERE defaultWhere;
PROPERTY_CONTROL_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
PROPERTY_CONTROL_TYPE(int value, String code, String description, SQL_WHERE defaultWhere) {
this.value = value;
this.code = code;
this.description = description;
this.defaultWhere = defaultWhere;
}
public int getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
public SQL_WHERE getDefaultWhere() {
return defaultWhere;
}
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 PROPERTY_CONTROL_TYPE 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)
public enum SQL_WHERE {
EQUAL(1, " = ", "等于"),
NOT_EQUAL(2, " <> ", "不等于"),
MORE(3, " > ", "大于"),
LESS(4, " < ", "小于"),
MORE_OR_EQUAL(5, " >= ", "大于等于"),
LESS_OR_EQUAL (6, " <= ", "小于等于"),
LIKE(7, " LIKE ", "全模糊"),
START_LIKE(7, " LIKE ", "前模糊"),
END_LIKE(7, " LIKE ", "后模糊"),
IN(8, " IN ", " in "),
BETWEEN(9, " BETWEEN ", "区间查询(逗号区分)"),;
private int value;
private String code;
private String description;
private SQL_WHERE(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.toLowerCase())) {
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 SQL_WHERE valueOf(int val) {
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;
}
}
/**
* ()
* <per>
* <br/> Form
* <br/> Java
* <br/> Java
* </per>
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PROPERTY_TYPE {
STRING(10, "String", "字符串", "java.lang.String", String.class, PROPERTY_CONTROL_TYPE.TEXT, SQL_WHERE.LIKE, ""),
CHAR(11, "Character", "单字符", "java.lang.Character", Character.class, PROPERTY_CONTROL_TYPE.TEXT, SQL_WHERE.EQUAL, ""),
INTEGER(20, "Integer", "短整型", "java.lang.Integer", Integer.class, PROPERTY_CONTROL_TYPE.NUMBER, SQL_WHERE.EQUAL, "0"),
LONG(21, "Long", "长整型", "java.lang.Long", Long.class, PROPERTY_CONTROL_TYPE.NUMBER, SQL_WHERE.EQUAL, "0"),
DOUBLE(30, "Double", "大浮点型", "java.lang.Double", Double.class, PROPERTY_CONTROL_TYPE.NUMBER, SQL_WHERE.EQUAL, "0.0"),
FLOAT(31, "Float", "小浮点型", "java.lang.Float", Float.class, PROPERTY_CONTROL_TYPE.NUMBER, SQL_WHERE.EQUAL, "0.0"),
BIG_DECIMAL(32, "BigDecimal", "大浮点型", "java.math.BigDecimal", BigDecimal.class, PROPERTY_CONTROL_TYPE.NUMBER, SQL_WHERE.EQUAL, "0.0"),
BOOLEAN(40, "Boolean", "布尔值", "java.lang.Boolean", Boolean.class, PROPERTY_CONTROL_TYPE.RADIO, SQL_WHERE.EQUAL, null),
BYTE(50, "Byte", "字节", "java.lang.Byte", Byte.class, PROPERTY_CONTROL_TYPE.TEXT, SQL_WHERE.EQUAL, null),
DATE_TIME(12, "String", "日期时分秒", "java.sql.Timestamp", String.class, PROPERTY_CONTROL_TYPE.DATE_TIME, SQL_WHERE.BETWEEN, null, "yyyy-MM-dd hh:mm:ss");
/**
*
*/
private int value;
/**
*
*/
private String code;
/**
*
*/
private String description;
/**
* ClassPath
*/
private String classPath;
/**
* Class
*/
private Class clzFullName;
/**
*
*/
private PROPERTY_CONTROL_TYPE controlType;
/**
*
*/
private SQL_WHERE defaultWhere;
/**
*
*/
private String defaultFormat;
/**
*
*/
private String defaultValue;
private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName,
PROPERTY_CONTROL_TYPE controlType,SQL_WHERE defaultWhere) {
this.value = value;
this.code = code;
this.description = description;
this.classPath = classPath;
this.clzFullName = clzFullName;
this.controlType = controlType;
this.defaultWhere = defaultWhere;
}
private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName,
PROPERTY_CONTROL_TYPE controlType,SQL_WHERE defaultWhere,String defaultValue) {
this.value = value;
this.code = code;
this.description = description;
this.classPath = classPath;
this.clzFullName = clzFullName;
this.controlType = controlType;
this.defaultWhere = defaultWhere;
this.defaultValue = defaultValue;
this.defaultFormat = defaultFormat;
}
private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName,
PROPERTY_CONTROL_TYPE controlType,SQL_WHERE defaultWhere,String defaultValue,String defaultFormat) {
this.value = value;
this.code = code;
this.description = description;
this.classPath = classPath;
this.clzFullName = clzFullName;
this.controlType = controlType;
this.defaultWhere = defaultWhere;
this.defaultValue = defaultValue;
this.defaultFormat = defaultFormat;
}
public int getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
public String getClassPath() {
return classPath;
}
public Class getClzFullName() {
return clzFullName;
}
public PROPERTY_CONTROL_TYPE getControlType() {
return controlType;
}
public SQL_WHERE getDefaultWhere() {
return defaultWhere;
}
public String getDefaultFormat() {
return defaultFormat;
}
public String getDefaultValue() {
return defaultValue;
}
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 PROPERTY_TYPE valueOfClzFullName(int val) {
PROPERTY_TYPE tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i];
}
}
return tmp;
}
public static PROPERTY_CONTROL_TYPE valueOfControlType(int val) {
PROPERTY_CONTROL_TYPE tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].controlType;
}
}
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 int codeOfClzFullName(Class clzFullName) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].clzFullName.equals(clzFullName)) {
tmp = values()[i].value;
}
}
return tmp;
}
public static int codeOfClassPath(String classPath) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].classPath.equals(classPath)) {
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 PROPERTY_TYPE valueOfClassPath(String classPath) {
PROPERTY_TYPE tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].classPath.equals(classPath)) {
tmp = values()[i];
}
}
return tmp;
}
public static PROPERTY_TYPE 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 PROPERTY_TYPE indexOf(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (val.indexOf(values()[i].value) >= 0) {
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;
}
}
}

@ -1190,4 +1190,47 @@ public class ImppEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum LOG_STORAGE {
MONGO(1, "MongoDB"),
ELASTICSEARCH(2, "Elasticsearch");
private int value;
private String description;
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
private LOG_STORAGE(int value, String description) {
this.value = value;
this.description = description;
}
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 LOG_STORAGE valueOfEnum(int val) {
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
return values()[i];
}
}
return null;
}
}
}

@ -223,7 +223,8 @@ public class LacEnumUtil {
public enum PARAM_VALUE_TYPE{
INTEGER(1,"整数"),
STRING(2,"字符串"),
FLOAT(3,"浮点");
FLOAT(3,"浮点"),
ORGIN(99,"原始数据");
private int value;
private String description;
@ -347,15 +348,17 @@ public class LacEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum LOGICAL_OPERATOR{
OR(10,"或"),
AND(20,"与");
OR(10,"或","||"),
AND(20,"与","&&");
private int value;
private String description;
private String operator;
LOGICAL_OPERATOR(int value, String description) {
LOGICAL_OPERATOR(int value, String description, String operator) {
this.value = value;
this.description = description;
this.operator = operator;
}
public int getValue() {
@ -376,6 +379,16 @@ public class LacEnumUtil {
return tmp;
}
public static String valueOfOperator(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].operator;
}
}
return tmp;
}
}
/**
@ -383,19 +396,21 @@ public class LacEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RELATIONAL_OPERATOR{
GT(10,">"),
LT(20,"<"),
EQ(20,"=="),
NE(20,"!="),
GE(20,">="),
LE(20,"<=");
GT(10,"大于",">"),
LT(20,"小于","<"),
EQ(30,"等于","=="),
NE(40,"不等于","!="),
GE(50,"大于等于",">="),
LE(60,"小于等于","<=");
private int value;
private String description;
private String operator;
RELATIONAL_OPERATOR(int value, String description) {
RELATIONAL_OPERATOR(int value, String description,String operator) {
this.value = value;
this.description = description;
this.operator = operator;
}
public int getValue() {
@ -416,6 +431,16 @@ public class LacEnumUtil {
return tmp;
}
public static RELATIONAL_OPERATOR valueOf(int val) {
RELATIONAL_OPERATOR tmp = EQ;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i];
}
}
return tmp;
}
}
/**

@ -12,6 +12,144 @@ import com.fasterxml.jackson.annotation.JsonFormat;
public class MesEnumUtil {
/**
* -module
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_ACTION_MODULE {
WORK_ORDER_LANDED(10, "生产工单下达");
private int value;
private String description;
MES_ACTION_MODULE(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;
}
}
/**
* JIS
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_JIS_PATTERN_TYPE {
ONE_PROD(10, "单产品发运"),
MANY_PROD(20, "多产品发运");
private int value;
private String description;
MES_JIS_PATTERN_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;
}
}
/**
* JIS
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_JIS_SCAN_TYPE {
TRUE(10, "是"),
FALSE(20, "否");
private int value;
private String description;
MES_JIS_SCAN_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 PLC_IS_PARSE {
TRUE(1, "是"),
FALSE(2, "否");
private int value;
private String description;
PLC_IS_PARSE(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 CALENDAR_TYPE {
@ -83,15 +221,6 @@ public class MesEnumUtil {
return tmp;
}
public static String valueOfDescription2(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description.equals("已审批") ? "审批" : values()[i].description;
}
}
return tmp;
}
}
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -802,7 +931,7 @@ public class MesEnumUtil {
public static String valueOfDescription(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
if (values()[i].value.equals(val)) {
tmp = values()[i].description;
}
}
@ -2351,82 +2480,6 @@ public class MesEnumUtil {
}
/**
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_BUTTON_STATUS_JUDGE_FLAG {
EQUAL("=", "等于"),
NOT_EQUAL("!=", "不等于"),
GREATER_THAN(">", "大于"),
NOT_LESS_THAN(">=", "大于大于"),
LESS_THAN("<", "小于"),
NOT_GREATER_THAN("<=", "小于等于");
private String value;
private String description;
MES_BUTTON_STATUS_JUDGE_FLAG(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
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;
}
}
/**
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_BUTTON_STATUS_LOGIC_FLAG {
AND("&&", "逻辑与"),
OR("||", "逻辑或");
private String value;
private String description;
MES_BUTTON_STATUS_LOGIC_FLAG(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
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;
}
}
/**
* MesWorkOrderapprovalStatus
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -2592,6 +2645,7 @@ public class MesEnumUtil {
PUBLIC(10, "公用"),
JIT(20, "JIT生产"),
WORK_ORDER(30, "工单生产"),
JIS(40, "JIS发运"),
OTHER(99, "其他");
private int value;
@ -2860,7 +2914,7 @@ public class MesEnumUtil {
STANDARD_ORDER(10, "标准工单"),
BTS_ORDER(20, "BTS工单"),
ATTEMPT_ORDER(30, "试制工单"),
BH_ORDER(40, "B&H工单");;
BH_ORDER(40, "B&H工单");
private int value;
private String description;
@ -3565,8 +3619,8 @@ public class MesEnumUtil {
PCN_MENU(170, "PCN_MENU", ""),
PCN_MODULE(180, "PCN_MODULE", ""),
PCN_LOGOUT(190, "PCN_LOGOUT", ""),
UPDATE_LOCALE_RES(200, "SYNC_DATA_URL", "LOCALE_RES_URL");
UPDATE_LOCALE_RES(200, "SYNC_DATA_URL", "LOCALE_RES_URL"),
PCN_SYS_LOCALE_LANGUAGE(210, "PCN_SYS_LOCALE_LANGUAGE", "");
private int value;
private String code;
@ -3925,4 +3979,86 @@ public class MesEnumUtil {
}
}
/**
* MesMonitorTaskstatus
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MONITOR_TASK_STATUS {
NORMAL(10, "正常"),
CLOSE(20, "关闭");
private int value;
private String description;
MONITOR_TASK_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;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MONITOR_TASK_OBJECT_TYPE {
PLC(10, "PLC"),
DB(20, "DB"),
OTHER(30, "其他");
private int value;
private String description;
MONITOR_TASK_OBJECT_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;
}
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;
}
}
}

@ -13,6 +13,112 @@ import org.apache.commons.lang3.StringUtils;
public class MesPcnEnumUtil {
/**
* JIS
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_JIS_PATTERN_TYPE {
ONE_PROD(10, "单产品发运"),
MANY_PROD(20, "多产品发运");
private int value;
private String description;
MES_JIS_PATTERN_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;
}
}
/**
* JIS
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_JIS_SCAN_TYPE {
TRUE(10, "是"),
FALSE(20, "否");
private int value;
private String description;
MES_JIS_SCAN_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;
}
}
/**
* JIS
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_QUEUE_JIS_STATUS {
TRUE(10, "已发运"),
FALSE(20, "未发运");
private int value;
private String description;
MES_QUEUE_JIS_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;
}
}
/**
* MesMethodmethodType
* 10.
*/
@ -131,8 +237,10 @@ public class MesPcnEnumUtil {
PCN_MENU(170, "PCN_MENU", ""),
PCN_MODULE(180, "PCN_MODULE", ""),
PCN_LOGOUT(190, "PCN_LOGOUT", ""),
UPDATE_LOCALE_RES(200, "LOCALE_RES_URL", "LOCALE_RES_URL");
UPDATE_LOCALE_RES(200, "LOCALE_RES_URL", "LOCALE_RES_URL"),
PCN_SYS_LOCALE_LANGUAGE(210, "PCN_SYS_LOCALE_LANGUAGE", ""),
PCN_SYS_ALL_LANGUAGE(220,"PCN_SYS_ALL_LANGUAGE","PCN_SYS_ALL_LANGUAGE"),
PCN_SYS_RESOURCE_KEY_LANGUAGE(230,"PCN_SYS_RESOURCE_KEY_LANGUAGE","PCN_SYS_RESOURCE_KEY_LANGUAGE");
private int value;
private String code;
@ -1659,7 +1767,8 @@ public class MesPcnEnumUtil {
STANDARD_ORDER(10, "标准工单"),
BTS_ORDER(20, "BTS工单"),
ATTEMPT_ORDER(30, "试制工单"),
BH_ORDER(40, "B&H工单");
BH_ORDER(40, "B&H工单"),
JIT_ORDER(50, "JIT工单");
private int value;
private String description;
@ -2576,4 +2685,121 @@ public class MesPcnEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MONITOR_TASK_OBJECT_TYPE {
PLC(10, "PLC"),
DB(20, "DB"),
OTHER(30, "其他");
private int value;
private String description;
MONITOR_TASK_OBJECT_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;
}
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;
}
}
/**
* MesMonitorTaskstatus
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MONITOR_TASK_STATUS {
NORMAL(10, "正常"),
CLOSE(20, "关闭");
private int value;
private String description;
MONITOR_TASK_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;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PLC_IS_PARSE {
TRUE(1, "是"),
FALSE(2, "否");
private int value;
private String description;
PLC_IS_PARSE(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;
}
}
}

@ -239,7 +239,7 @@ public class WmsEnumUtil {
RECEIPT_FINISH(30, "RECEIPT_FINISH", "已完成"),
CLOSED(40, "CLOSED", "已关闭"),
CANCELLED(50, "CANCELLED", "已取消"),
FINISH_PRODUCT_SHIPING_PICKED(60, "FINISH_PRODUCT_SHIPING_PICKED", "配料完成");
BATCHING_FINISH(60, "BATCHING_FINISH", "配料完成");
private int value;
private String code;
@ -363,10 +363,10 @@ public class WmsEnumUtil {
}
/**
* PO
* PO/DOC_MOVE
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PO_SN_STATUS {
public enum ORDER_SN_STATUS {
CREATE(10, "N", "创建"),
RECEIPTED(20, "R", "已完成"),
CANCEL(30, "C", "行取消"),
@ -376,7 +376,7 @@ public class WmsEnumUtil {
private String code;
private String description;
PO_SN_STATUS(int value, String code, String description) {
ORDER_SN_STATUS(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
@ -501,7 +501,8 @@ public class WmsEnumUtil {
LINE_LOCATE(50, "L", "线边库"),
NC_LOCATE(60, "N", "NC库"),
SPILLAGE_LOCATE(70, "Y", "溢料库"),
TRANSIT_LOCATE(80, "T", "在途库");
TRANSIT_LOCATE(80, "T", "在途库"),
UTENSIL_LOCATE(90, "U", "器具库");
private int value;
private String code;
@ -700,7 +701,8 @@ public class WmsEnumUtil {
KT_PACK_RC(460, "KT_PACK_RC", "坤泰包装收货"),
FINISH_PRODUCT_SHPING(470, "FINISH_PRODUCT_SHPING", "成品发运"),
KT_PICK_RC(480,"KT_PICK_RC", "坤泰拣货"),
PRODUCE_INSTOCK(490,"PRODUCE_INSTOCK", "VDA生产入库");
PRODUCE_INSTOCK(490,"PRODUCE_INSTOCK", "VDA生产入库"),
UTENSIL_CONSUMING(500,"UTENSIL_CONSUMING","器具领用");
private int value;
private String code;
@ -884,7 +886,8 @@ public class WmsEnumUtil {
VDA_TRANSACTION_QUERY("VDA_TRANSACTION_QUERY", "VDA事务查询"),
VDA_STATIC_CS("VDA_STATIC_CS", "VDA静态盘点"),
VDA_PACKAGE_MANAGE("VDA_PACKAGE_MANAGE", "VDA编组管理"),
KT_PICK_RC("KT_PICK_RC", "坤泰拣货");
KT_PICK_RC("KT_PICK_RC", "坤泰拣货"),
UTENSIL_CONSUMING("UTENSIL_CONSUMING","器具领用");
private String value;
private String description;
@ -1076,7 +1079,7 @@ public class WmsEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum CARRIAGE_STATUS {
CREATE(10, "创建"),
PUBLISH(20, "发布"),
PUBLISH(20, "发布"),
RECEIVE(30, "承运商接收"),
ARRIVE(40, "车辆到达"),
INSTALL(50, "装车完成"),
@ -1349,7 +1352,8 @@ public class WmsEnumUtil {
INVENTORY(20, "已盘"),
FROZEN(30, "已冻结"),
THAWING(40, "已解冻"),
RETURN_GOODS(50, "取消冻结");
RETURN_GOODS(50, "取消冻结"),
UNSETTLED_NCUNFREEZE(60, "未盘解冻");
private int value;
private String description;
@ -2103,7 +2107,8 @@ public class WmsEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum COMMON_SN {
PO_SN("PO_SN", "PO条码"),
VDA_SN("VDA_SN", "VDA条码");
VDA_SN("VDA_SN", "VDA条码"),
SELF_SN("SELF_SN", "自制件条码");
private String code;
private String description;
@ -2986,7 +2991,8 @@ public class WmsEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WMS_PART_TYPE {
RAW_MATERIAL(10, "原材料"), PARTIALLY_PREPARED_PRODUCTS(20, "半成品"), FINISHED_PRODUCT(30, "成品"), CONTAINER_PRODUCT(40, "容器");
RAW_MATERIAL(10, "原材料"), PARTIALLY_PREPARED_PRODUCTS(20, "半成品"), FINISHED_PRODUCT(30, "成品"), CONTAINER_PRODUCT(40, "容器"),
UTENSIL(50, "器具");
private int value;
private String description;
@ -3027,8 +3033,8 @@ public class WmsEnumUtil {
public enum WMS_PART_TYPE_STR {
RAW_MATERIAL("10", "原材料"), PARTIALLY_PREPARED_PRODUCTS("20", "半成品"), FINISHED_PRODUCT("30", "成品"), CONTAINER_PRODUCT("40", "容器");
RAW_MATERIAL("10", "原材料"), PARTIALLY_PREPARED_PRODUCTS("20", "半成品"), FINISHED_PRODUCT("30", "成品"), CONTAINER_PRODUCT("40", "容器"),
UTENSIL("50", "器具");
private String value;
private String description;
@ -3054,6 +3060,16 @@ public class WmsEnumUtil {
}
return tmp;
}
public static String descriptionOfValue(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(val)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
@ -3470,7 +3486,7 @@ public class WmsEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WMS_STOCK_TYPE {
SOURCE(10, "实物条码"), TARGET(20, "虚拟条码");
SOURCE(10, "实物条码"), TARGET(20, "虚拟条码"),CUST_SN(30, "客户条码");
private int value;
private String description;
@ -4777,5 +4793,76 @@ public class WmsEnumUtil {
}
}
/**
* WEB
* 10-20-30-4050-
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum FIELD_TYPE {
TEXT(10, "text"), NUMBER(20, "number"),
SELECT(30, "select"), DATETIME(40, "datetime"),
LIST(50, "list");
private int value;
private String description;
FIELD_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;
}
}
/**
*
* 10
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PUSH_TYPE {
EMAIL(10, "邮件"), SMS(20, "短信");
private int value;
private String description;
PUSH_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;
}
}
}

@ -293,6 +293,15 @@ public class DdlPreparedPack {
* @param columnName
* @param packBean
*/
public static void getStringNotBlanklPack(String columnName, DdlPackBean packBean) {
packBean.addColumnQuery(null, " and (model." + columnName + " is not null and model." + columnName + " !='')", null);
}
/**
* Stringequal
*
* @param columnName
* @param packBean
*/
public static void getStringEqualPackOr(String val, String columnName, DdlPackBean packBean) {
if (val != null && val.trim().length() > 0) {
packBean.addColumnQuery(columnName, " or model." + columnName + " = :m_" + columnName, val);
@ -312,6 +321,15 @@ public class DdlPreparedPack {
}
/**
*
*
* @param firstColumnName
* @param packBean
*/
public static void getNotEqueals(String firstColumnName, String twoColumnName, DdlPackBean packBean) {
packBean.addColumnQuery(null, " and UPPER(model." + firstColumnName + ")!= UPPER(model." + twoColumnName+")", null);
}
/**
* longintequal
*
* @param columnName

@ -33,58 +33,4 @@ public class StringUtil {
}
return fieldNames;
}
/**
*
* @param clazz
* @return
*/
public static List<String> getFieldList(Class clazz) {
Field[] fields = clazz.getDeclaredFields();
Field[] superFields = clazz.getSuperclass().getDeclaredFields();
List<String> fieldNames = new ArrayList<>();
for(int i = 0;i < fields.length; i++){
fieldNames.add(fields[i].getName());
}
for(int i = 0;i < superFields.length; i++){
fieldNames.add(superFields[i].getName());
}
return fieldNames;
}
/**
*
* @param fieldName
* @param o
* @return
*/
public static Object getFieldValueByName(String fieldName, Object o) {
try {
String firstLetter = fieldName.substring(0, 1).toUpperCase();
String getter = "get" + firstLetter + fieldName.substring(1);
Method method = o.getClass().getMethod(getter, new Class[] {});
Object value = method.invoke(o, new Object[] {});
return value;
} catch (Exception e) {
return null;
}
}
private static Pattern linePattern = Pattern.compile("_(\\w)");
/** 驼峰转下划线 */
public static Map<String, Object> humpToLine(Map<String, Object> map) {
Map<String, Object> resultMap = new HashMap<>();
for (String str : map.keySet()) {
str = str.toLowerCase();
Matcher matcher = linePattern.matcher(str);
StringBuffer sb = new StringBuffer();
while (matcher.find()) {
matcher.appendReplacement(sb, matcher.group(1).toUpperCase());
}
matcher.appendTail(sb);
resultMap.put(sb.toString(), map.get(str));
}
return resultMap;
}
}

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

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

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

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

@ -1,6 +1,7 @@
package cn.estsh.i3plus.pojo.lac.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.LacEnumUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
@ -89,6 +90,10 @@ public class LacCommandStackRecord extends BaseBean {
@ApiParam(value ="执行状态")
private Integer stackStatus;
public String getStackStatusTxt(){
return LacEnumUtil.STACK_STATUS.valueOfDescription(stackStatus == null ? 0 : stackStatus);
}
@Column(name="EXECUTION_DESCRIPTION")
@ApiParam(value ="执行说明")
private String executionDescription;

@ -9,6 +9,7 @@ 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;
@ -84,6 +85,9 @@ public class LacCommandStackStep extends BaseBean {
@ApiParam(value ="步骤任务列表")
private List<LacCommandStackStepTask> stepTaskList;
@Transient
@ApiParam(value ="步骤任务检查")
private List<LacTaskCheck> taskCheckList;
public LacCommandStackStep() {
}

@ -85,10 +85,10 @@ public class LacCommandStackStepTask extends BaseBean {
// @Column(name="STEP_NAME_RDD")
// @ApiParam(value ="步骤名称")
// private String stepNameRdd;
//
// @Column(name="STEP_CODE_RDD")
// @ApiParam(value ="步骤代码")
// private String stepCodeRdd;
@Column(name="STEP_CODE_RDD")
@ApiParam(value ="步骤代码")
private String stepCodeRdd;
@Column(name="TASK_ID")
@ApiParam(value ="任务ID")
@ -99,7 +99,7 @@ public class LacCommandStackStepTask extends BaseBean {
@ApiParam(value ="步骤名称")
private String taskNameRdd;
@Column(name="STEP_CODE_RDD")
@Column(name="TASK_CODE_RDD")
@ApiParam(value ="任务代码")
private String taskCodeRdd;

@ -1,6 +1,7 @@
package cn.estsh.i3plus.pojo.lac.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.LacEnumUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
@ -120,6 +121,10 @@ public class LacLogTask extends BaseBean {
@ApiParam(value ="任务状态")
private Integer taskStatus;
public String getTaskStatusTxt(){
return LacEnumUtil.STACK_STATUS.valueOfDescription(taskStatus == null ? 0 : taskStatus);
}
@Column(name="EXECUTION_DESCRIPTION")
@ApiParam(value ="执行说明")
private String executionDescription;

@ -82,6 +82,7 @@ public class LacSuitTaskParam extends BaseBean {
@Column(name="PARAM_VALUE_TYPE")
@ApiParam(value ="参数值类型")
@AnnoOutputColumn(refClass = LacEnumUtil.PARAM_VALUE_TYPE.class)
private Integer paramValueType;
@Column(name="PARAM_DEFAULT_VALUE")

@ -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 :
@ -97,4 +98,11 @@ public class LacTaskCheck extends BaseBean {
@ApiParam(value ="目标步骤ID")
@JsonSerialize(using = ToStringSerializer.class)
private Long targetStepId;
@Column(name="TARGET_STEP_NAME_RDD")
@ApiParam(value ="目标步骤名称")
private String targetStepNameRdd;
@Transient
private String value;
}

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

@ -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 :
* @Reference :
* @Author : zcg
* @Date : 2020/1/8 0008 - 17:11
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_MONITOR_TASK")
@Api("监听任务")
public class MesMonitorTask extends BaseBean {
@Column(name = "TASK_NO")
@ApiParam("任务编号")
private String taskNo;
@Column(name = "TASK_NAME")
@ApiParam("任务名称")
private String taskName;
@Column(name = "TASK_OBJECT_TYPE")
@ApiParam("任务对象类型")
private Integer taskObjectType;
@Column(name = "TASK_STATUS")
@ApiParam("任务状态")
private Integer taskStatus;
@Column(name = "TASK_EXCEPTION_DESC")
@ApiParam("异常描述")
private String taskExceptionDesc;
}

@ -0,0 +1,46 @@
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 :
* @Reference :
* @Author : zcg
* @Date : 2020/1/8 0008 - 17:19
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_MONITOR_TASK_DETAIL")
@Api("监听任务明细")
public class MesMonitorTaskDetail extends BaseBean {
@Column(name = "TASK_NO")
@ApiParam("任务编号")
private String taskNo;
@Column(name = "DATA_OBJECT_NO")
@ApiParam("数据对象编号")
private String dataObjectNo;
// @Column(name = "STORE_OBJECT_CODE")
// @ApiParam("存储对象代码")
// private String storeObjectCode;
//
// @Column(name = "STORE_FIELD_CODE")
// @ApiParam("存储字段代码")
// private String storeFieldCode;
}

@ -69,9 +69,9 @@ public class MesPart extends BaseBean {
@ApiParam("默认工作中心")
private String defaultWorkCenter;
@Column(name = "PRODUCE_CATEGORY")
@ApiParam("产品类型")
private String produceCategory;
@Column(name = "PRODUCE_CTGY_CODE")
@ApiParam("产品类型代码")
private String produceCategoryCode;
@Column(name = "PROCESS_MATCH_TYPE")
@ApiParam("过程编码匹配类型")

@ -0,0 +1,66 @@
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.Lob;
import javax.persistence.Table;
/**
* @Description :JIS
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-12-25
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_PATTERN_JIS")
@Api("JIS发运模式")
public class MesPatternJis extends BaseBean {
@Column(name = "PATTERN_NO")
@ApiParam("模式编号")
private String patternNo;
@Column(name = "PATTERN_NAME")
@ApiParam("模式名称")
private String patternName;
@Lob
@Column(name = "RULE")
@ApiParam("规则")
private String rule;
@Column(name = "PATTERN_DESC")
@ApiParam("描述")
private String patternDesc;
@Column(name = "TOP_NO")
@ApiParam("一次显示TOP数")
private Integer topNo;
@Column(name = "HANDLE_NO")
@ApiParam("一次处理套数")
private Integer handleNo;
@Column(name = "PATTERN_TYPE")
@ApiParam("模式类型")
private Integer patternType;
@Column(name = "SCAN_TYPE")
@ApiParam("是否按主队列顺序扫描")
private Integer scanType;
}

@ -96,6 +96,10 @@ public class MesPlc extends BaseBean {
@ApiParam("反馈值")
private String feedValue;
@Column(name = "OBJECT_CODE")
@ApiParam("对象代码")
private String objectCode;
@Transient
@ApiParam("设备名称")
private String equipmentName;

@ -0,0 +1,51 @@
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;
import javax.persistence.Transient;
/**
* @Description :
* @Reference :
* @Author : jack.jia
* @CreateDate : 2019-04-02
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_PROD_CFG_DETAIL")
@Api("产品配置明细")
public class MesProdCfgDetail extends BaseBean {
@Column(name = "PROD_CFG_CODE")
@ApiParam("产品配置代码")
private String prodCfgCode;
@Column(name = "PART_NO")
@ApiParam("零件号")
private String partNo;
@Column(name = "IS_VIRTUAL")
@ApiParam("是否虚零件")
private Integer isVirtual;
@Transient
@ApiParam("零件名称")
private String partName;
public int getIsVirtualVal() {
return this.isVirtual == null ? 0 : this.isVirtual;
}
}

@ -0,0 +1,38 @@
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:
* @Reference:
* @Author: Crish
* @CreateDate:2019-04-26-10:25
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_PRODUCE_CATEGORY")
@Api("系统业务动作")
public class MesProduceCategory extends BaseBean {
@Column(name = "PRODUCE_CTGY_CODE")
@ApiParam("产品类型代码")
private String produceCategoryCode;
@Column(name = "PRODUCE_CTGY_NAME")
@ApiParam("产品类型名称")
private String produceCategoryName;
}

@ -9,10 +9,7 @@ import lombok.EqualsAndHashCode;
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.Table;
import javax.persistence.*;
/**
* @Description :
@ -102,4 +99,9 @@ public class MesProductData extends BaseBean {
@ApiParam("数据组号")
private String groupNo;
@Lob
@Column(name = "LINE_DATA")
@ApiParam("生产数据")
private String lineData;
}

@ -12,6 +12,7 @@ import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;
/**
* @Description:
@ -77,10 +78,19 @@ public class MesQcCheckStandard extends BaseBean {
@ApiParam("检测项类型")
private String checkItemType;
@Transient
@ApiParam("检测项类型名称")
private String checkItemTypeName;
@Transient
private List<MesQcCheckStandard> childQcList;
public MesQcCheckStandard() {
}
public MesQcCheckStandard(String partNo, String workCenterCode, String workCellCode, Integer checkType, String checkItem, String checkStandard, String checkGuide, String checkFrequency, String partName, String checkItemType) {
public MesQcCheckStandard(Long id, String partNo, String workCenterCode, String workCellCode, Integer checkType, String checkItem, String checkStandard
, String checkGuide, String checkFrequency, String partName, String checkItemType, String checkItemTypeName) {
this.id = id;
this.partNo = partNo;
this.workCenterCode = workCenterCode;
this.workCellCode = workCellCode;
@ -91,5 +101,6 @@ public class MesQcCheckStandard extends BaseBean {
this.checkFrequency = checkFrequency;
this.partName = partName;
this.checkItemType = checkItemType;
this.checkItemTypeName = checkItemTypeName;
}
}

@ -0,0 +1,64 @@
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 :JIS
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-12-24
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_QUEUE_JIS")
@Api("JIS发运队列")
public class MesQueueJis extends BaseBean {
@Column(name = "JIS_NO")
@ApiParam("主队列编号")
private String jisNo;
@Column(name = "PROD_CFG_CODE")
@ApiParam("产品配置代码")
private String prodCfgCode;
@Column(name = "VIN_CODE")
@ApiParam("vin")
private String vinCode;
@Column(name = "CAR_NO")
@ApiParam("车号")
private String carNo;
@Column(name = "SEQ")
@ApiParam("排序")
private Double seq;
@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;
}

@ -0,0 +1,56 @@
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 :JIS
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-12-24
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_QUEUE_JIS_DETAIL")
@Api("JIS发运队列明细")
public class MesQueueJisDetail extends BaseBean {
@Column(name = "JIS_NO")
@ApiParam("主队列编号")
private String jisNo;
@Column(name = "PROD_CFG_CODE")
@ApiParam("产品配置代码")
private String prodCfgCode;
@Column(name = "PART_NO")
@ApiParam("物料号")
private String partNo;
@Column(name = "PART_NAME_RDD")
@ApiParam("物料名称")
private String partNameRdd;
@Column(name = "STATUS")
@ApiParam("状态")
private Integer status;
@Column(name = "SERIAL_NUMBER")
@ApiParam("产品条码")
private String serialNumber;
}

@ -27,6 +27,11 @@ import javax.persistence.Table;
@Table(name = "MES_WORK_CELL_POINT")
@Api("工站队列")
public class MesWorkCellPoint extends BaseBean {
@Column(name = "WORK_CENTER_CODE")
@ApiParam("工作中心")
private String workCenterCode;
@Column(name = "WORK_CELL_CODE")
@ApiParam("工作单元代码")
private String workCellCode;

@ -0,0 +1,35 @@
package cn.estsh.i3plus.pojo.mes.pcn.model;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/1/10 0010 - 15:28
*/
@Data
@Api("数据采集Model")
public class DataAcquisitionModel {
@ApiParam("对象代码")
private String objectCode;
@ApiParam("对象名称")
private String objectName;
@ApiParam("字段代码")
private String fieldCode;
@ApiParam("字段名称")
private String fieldName;
@ApiParam("字段值")
private String fieldValue;
//
// @ApiParam("组号")
// private String groupNo;
}

@ -0,0 +1,80 @@
package cn.estsh.i3plus.pojo.mes.pcn.model;
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesQcCheckStandard;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.util.List;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2020\1\13 17:23
* @Modify:
**/
@Data
public class QcCheckStandardModel {
private Long id;
@ApiParam("物料编码")
private String partNo;
@ApiParam("工作中心代码")
private String workCenterCode;
@ApiParam("工作单元代码")
private String workCellCode;
@ApiParam("检测类型")
private Integer checkType;
@ApiParam("检测项")
private String checkItem;
@ApiParam("检测标准")
private String checkStandard;
@ApiParam("检测指导")
private String checkGuide;
@ApiParam("频率")
private String checkFrequency;
@ApiParam("物料名称")
private String partName;
@ApiParam("检测结果")
private String checkResult;
@ApiParam("检测值")
private String checkValue;
@ApiParam("检测项类型")
private String checkItemType;
@ApiParam("检测项类型名称")
private String checkItemTypeName;
private List<MesQcCheckStandard> childQcList;
public QcCheckStandardModel() {
}
public QcCheckStandardModel(Long id, String partNo, String workCenterCode, String workCellCode, Integer checkType, String checkItem, String checkStandard
, String checkGuide, String checkFrequency, String partName, String checkItemType, String checkItemTypeName) {
this.id = id;
this.partNo = partNo;
this.workCenterCode = workCenterCode;
this.workCellCode = workCellCode;
this.checkType = checkType;
this.checkItem = checkItem;
this.checkStandard = checkStandard;
this.checkGuide = checkGuide;
this.checkFrequency = checkFrequency;
this.partName = partName;
this.checkItemType = checkItemType;
this.checkItemTypeName = checkItemTypeName;
}
}

@ -0,0 +1,76 @@
package cn.estsh.i3plus.pojo.mes.pcn.model;
import cn.estsh.i3plus.pojo.base.enumutil.MesPcnEnumUtil;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
@Data
public class QueueJisModel implements Serializable {
@ApiParam("主队列编号")
private String jisNo;
@ApiParam("vin")
private String vinCode;
@ApiParam("车号")
private String carNo;
@ApiParam("排序")
private Double seq;
@ApiParam("状态")
private Integer status;
@ApiParam("产品配置代码")
private String prodCfgCode;
@ApiParam("物料号")
private String partNo;
@ApiParam("物料名称")
private String partNameRdd;
@ApiParam("产品类型代码")
private String produceCategoryCode;
@ApiParam("明细状态")
private Integer detailStatus;
@ApiParam("产品条码")
private String serialNumber;
@ApiParam("状态名称")
private String statusName;
@ApiParam("明细状态名称")
private String detailStatusName;
public String getStatusName() {
return MesPcnEnumUtil.MES_QUEUE_JIS_STATUS.valueOfDescription(this.status);
}
public String getDetailStatusName() {
return MesPcnEnumUtil.MES_QUEUE_JIS_STATUS.valueOfDescription(this.detailStatus);
}
public QueueJisModel() {
}
public QueueJisModel(String jisNo, String vinCode, String carNo, Double seq, Integer status, String prodCfgCode, String partNo, String partNameRdd, String produceCategoryCode, Integer detailStatus, String serialNumber) {
this.jisNo = jisNo;
this.vinCode = vinCode;
this.carNo = carNo;
this.seq = seq;
this.status = status;
this.prodCfgCode = prodCfgCode;
this.partNo = partNo;
this.partNameRdd = partNameRdd;
this.produceCategoryCode = produceCategoryCode;
this.detailStatus = detailStatus;
this.serialNumber = serialNumber;
}
}

@ -17,6 +17,7 @@ import java.io.Serializable;
@Data
@Api("JIT队列列表Model")
public class QueueOrderModel implements Serializable {
private Long id;
@ApiParam("队列序号")
public Double queueSeq;
@ApiParam("队列明细序号")
@ -40,12 +41,21 @@ public class QueueOrderModel implements Serializable {
@Transient
@ApiParam("显示颜色")
private String color;
@ApiParam("工厂代码")
private String organizeCode;
@ApiParam("展示行数")
private Integer prodNum;
@ApiParam("产线")
private String workCenterCode;
@ApiParam("工位")
private String workCellCode;
public QueueOrderModel() {
}
public QueueOrderModel(Double queueSeq, Double queDetailSeq, String custFlagNo, String prodCfgNameRdd, String categoryNameRdd,
public QueueOrderModel(Long id, Double queueSeq, Double queDetailSeq, String custFlagNo, String prodCfgNameRdd, String categoryNameRdd,
String serialNumber, String partNo, String partNameRdd, Integer snStatus, String workType) {
this.id = id;
this.queueSeq = queueSeq;
this.queDetailSeq = queDetailSeq;
this.custFlagNo = custFlagNo;

@ -0,0 +1,69 @@
package cn.estsh.i3plus.pojo.mes.pcn.model;
import io.swagger.annotations.Api;
import lombok.Data;
import java.util.Collection;
@Data
@Api("工步返回信息")
public class StepResult<T> {
private boolean isCompleted;
private T data;
private Collection<T> dataCollection;
private String msg;
public static StepResult getSuccessComplete() {
return new StepResult(true);
}
public static StepResult getNonComplete() {
return new StepResult(false);
}
public static StepResult getSuccessComplete(String msg) {
return new StepResult(true, msg);
}
public static StepResult getNonComplete(String msg) {
return new StepResult(false, msg);
}
public static <T> StepResult<T> getSuccessData(T data, String msg) {
return new StepResult<>(true, data, msg);
}
public static <T> StepResult<T> getSuccessData(Collection<T> data, String msg) {
return new StepResult<T>(true, data, msg);
}
private StepResult() {
}
private StepResult(boolean isCompleted) {
this.isCompleted = isCompleted;
}
private StepResult(boolean isCompleted, String msg) {
this.isCompleted = isCompleted;
this.msg = msg;
}
public StepResult(boolean isCompleted, T data, String msg) {
this.isCompleted = isCompleted;
this.data = data;
this.msg = msg;
}
public StepResult(boolean isCompleted, Collection<T> dataCollection, String msg) {
this.isCompleted = isCompleted;
this.dataCollection = dataCollection;
this.msg = msg;
}
}

@ -0,0 +1,15 @@
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.MesMonitorTaskDetail;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/1/8 0008 - 18:42
*/
@Repository
public interface MesMonitorTaskDetailRepository extends BaseRepository<MesMonitorTaskDetail, Long> {
}

@ -0,0 +1,15 @@
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.MesMonitorTask;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/1/8 0008 - 18:43
*/
@Repository
public interface MesMonitorTaskRepository extends BaseRepository<MesMonitorTask,Long> {
}

@ -0,0 +1,16 @@
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.MesPatternJis;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-12-25
* @Modify:
**/
@Repository
public interface MesPatternJisRepository extends BaseRepository<MesPatternJis, Long> {
}

@ -0,0 +1,16 @@
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.MesProdCfgDetail;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : jack.jia
* @CreateDate : 2019-04-02
* @Modify:
**/
@Repository
public interface MesProdCfgDetailRepository extends BaseRepository<MesProdCfgDetail, Long> {
}

@ -0,0 +1,16 @@
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.MesProduceCategory;
import org.springframework.stereotype.Repository;
/**
* @Description:
* @Reference:
* @Author: Crish
* @CreateDate:2019-04-26-10:28
* @Modify:
**/
@Repository
public interface MesProduceCategoryRepository extends BaseRepository<MesProduceCategory, Long> {
}

@ -0,0 +1,16 @@
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.MesQueueJisDetail;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-12-25
* @Modify:
**/
@Repository
public interface MesQueueJisDetailRepository extends BaseRepository<MesQueueJisDetail, Long> {
}

@ -0,0 +1,16 @@
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.MesQueueJis;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-12-25
* @Modify:
**/
@Repository
public interface MesQueueJisRepository extends BaseRepository<MesQueueJis, Long> {
}

@ -173,8 +173,6 @@ public class MesHqlPack {
mesWorkOrder.getCreateDateTimeEnd(),
"createDatetime", packBean, true);
}
DdlPreparedPack.getOrderDefault(mesWorkOrder);
DdlPreparedPack.getOrderByPack(new Object[]{"2"}, new String[]{mesWorkOrder.getOrderByParam()}, packBean);
return packBean;
}
@ -205,9 +203,6 @@ public class MesHqlPack {
if (!StringUtils.isEmpty(mesPart.getCategoryCode3())) {
DdlPreparedPack.getStringEqualPack(mesPart.getCategoryCode3(), "categoryCode3", packBean);
}
DdlPreparedPack.getOrderDefault(mesPart);
DdlPreparedPack.getOrderByPack(new Object[]{"2"}, new String[]{mesPart.getOrderByParam()}, packBean);
return packBean;
}

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

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.mes.annotation;
import java.lang.annotation.*;
/**
* @Author: Wynne.Lu
* @CreateDate: 2019/12/25 1:45
* @Description:
**/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Documented
public @interface ElasticSearch {
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.mes.annotation;
import java.lang.annotation.*;
/**
* @Author: Wynne.Lu
* @CreateDate: 2019/12/25 1:45
* @Description:
**/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
@Documented
public @interface Json4Es {
}

@ -37,21 +37,9 @@ public class MesButtonStatus extends BaseBean {
@ApiParam("实体类名称")
private String ClassName;
@Column(name = "STATUS_FIELD")
@ApiParam("状态字段")
private String statusField;
@Column(name = "JUDGE_FLAG")
@ApiParam("判断符合")
private String judgeFlag;
@Column(name = "STATUS_VALUE")
@ApiParam("状态值")
private String statusValue;
@Column(name = "LOGIC_FLAG")
@ApiParam("逻辑符合")
private String logicFlag;
@Column(name = "APPEND_HQL")
@ApiParam("拼接HQL")
private String appendHql;
@Column(name = "STATUS_DESC")
@ApiParam("描述")

@ -77,4 +77,12 @@ public class MesCustOrder extends BaseBean {
@Transient
@ApiParam(value = "订单日期查询用,查询结束日期", example = "2019-12-31 23:59:59")
public String orderTimeEnd;
@Transient
@ApiParam("订单类型名称")
private String orderTypeName;
@Transient
@ApiParam("状态名称")
private String statusName;
}

@ -12,6 +12,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
* @Author: Wynne.Lu
@ -66,4 +67,8 @@ public class MesDataObject extends BaseBean {
@Column(name = "SELF_ADDITION_VALUE")
@ApiParam("自增列值")
private Long selfAdditionValue;
@Transient
@ApiParam("操作类型名称")
private String operateTypeName;
}

@ -48,4 +48,8 @@ public class MesEquNotifyObjectCfg extends BaseBean {
@ApiParam("对象类型")
private Integer notifyObjectType;
@Transient
@ApiParam("对象类型名称")
private String notifyObjectTypeName;
}

@ -12,6 +12,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
* @Description :
@ -48,4 +49,16 @@ public class MesEquTaskNotifyCfg extends BaseBean {
@ApiParam("通知方式")
private Integer notifyPattern;
@Transient
@ApiParam("作业类型名称")
private String taskTypeName;
@Transient
@ApiParam("通知类型名称")
private String notifyTypeName;
@Transient
@ApiParam("通知方式名称")
private String notifyPatternName;
}

@ -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;
/**
* @Description:
@ -71,6 +72,10 @@ public class MesKpsnRule extends BaseBean {
@ApiParam("供应商代码")
private String supplierCode;
@Transient
@ApiParam("绑定规则名称")
private String bandRuleName;
public int getLengthVal() {
return this.length == null ? 0 : this.length;
}

@ -0,0 +1,50 @@
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;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/1/8 0008 - 17:11
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_MONITOR_TASK")
@Api("监听任务")
public class MesMonitorTask extends BaseBean {
@Column(name = "TASK_NO")
@ApiParam("任务编号")
private String taskNo;
@Column(name = "TASK_NAME")
@ApiParam("任务名称")
private String taskName;
@Column(name = "TASK_OBJECT_TYPE")
@ApiParam("任务对象类型")
private Integer taskObjectType;
@Column(name = "TASK_STATUS")
@ApiParam("任务状态")
private Integer taskStatus;
@Column(name = "TASK_EXCEPTION_DESC")
@ApiParam("异常描述")
private String taskExceptionDesc;
}

@ -0,0 +1,51 @@
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;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/1/8 0008 - 17:19
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_MONITOR_TASK_DETAIL")
@Api("监听任务明细")
public class MesMonitorTaskDetail extends BaseBean {
@Column(name = "TASK_NO")
@ApiParam("任务编号")
private String taskNo;
@Column(name = "DATA_OBJECT_NO")
@ApiParam("数据对象编号")
private String dataObjectNo;
// @Column(name = "STORE_OBJECT_CODE")
// @ApiParam("存储对象代码")
// private String storeObjectCode;
//
// @Column(name = "STORE_FIELD_CODE")
// @ApiParam("存储字段代码")
// private String storeFieldCode;
@Transient
@ApiParam("任务名称")
private String taskName;
}

@ -12,6 +12,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
* @Author: Wynne.Lu
@ -55,4 +56,8 @@ public class MesObjectCfg extends BaseBean {
@ApiParam("是否存储")
private Integer isSave;
@Transient
@ApiParam("是否存储")
private String isSaveName;
}

@ -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 :
@ -73,6 +74,22 @@ public class MesPackSpec extends BaseBean {
@ApiParam("是否混包4")
private Integer isMixed4;
@Transient
@ApiParam("是否混包名称")
private String isMixedName;
@Transient
@ApiParam("是否混包2名称")
private String isMixedName2;
@Transient
@ApiParam("是否混包3名称")
private String isMixedName3;
@Transient
@ApiParam("是否混包4名称")
private String isMixedName4;
public double getQtyVal() {
return this.qty == null ? 0.0d : this.qty;

@ -37,7 +37,7 @@ public class MesPackageDetail extends BaseBean {
private String serialNumber;
@Column(name = "PART_NO")
@ApiParam("产品条码")
@ApiParam("物料号")
private String partNo;
@Column(name = "PART_NAME_RDD")

@ -88,4 +88,16 @@ public class MesPart extends BaseBean {
@Column(name = "PRODUCT_MATCH_TYPE")
@ApiParam("产品编码匹配类型")
private Integer productMatchType;
@Transient
@ApiParam("过程编码匹配类型名称")
private String processMatchTypeName;
@Transient
@ApiParam("包装编码匹配类型")
private String packageMatchTypeName;
@Transient
@ApiParam("产品编码匹配类型")
private String productMatchTypeName;
}

@ -0,0 +1,66 @@
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.Lob;
import javax.persistence.Table;
/**
* @Description :JIS
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-12-25
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_PATTERN_JIS")
@Api("JIS发运模式")
public class MesPatternJis extends BaseBean {
@Column(name = "PATTERN_NO")
@ApiParam("模式编号")
private String patternNo;
@Column(name = "PATTERN_NAME")
@ApiParam("模式名称")
private String patternName;
@Lob
@Column(name = "RULE")
@ApiParam("规则")
private String rule;
@Column(name = "PATTERN_DESC")
@ApiParam("描述")
private String patternDesc;
@Column(name = "TOP_NO")
@ApiParam("一次显示TOP数")
private Integer topNo;
@Column(name = "HANDLE_NO")
@ApiParam("一次处理套数")
private Integer handleNo;
@Column(name = "PATTERN_TYPE")
@ApiParam("模式类型")
private Integer patternType;
@Column(name = "SCAN_TYPE")
@ApiParam("是否按主队列顺序扫描")
private Integer scanType;
}

@ -40,7 +40,7 @@ public class MesPcn extends BaseBean {
private String areaCode;
@Column(name = "AREA_NAME")
@ApiParam("区域")
@ApiParam("区域名称")
private String areaName;
@Column(name = "WORK_CENTER_CODE")
@ -48,7 +48,7 @@ public class MesPcn extends BaseBean {
private String workCenterCode;
@Column(name = "WORK_CENTER_NAME")
@ApiParam("工作中心")
@ApiParam("工作中心名称")
private String workCenterName;
@Column(name = "PCN_VERSION")

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save