yun-zuoyi
jun 4 years ago
commit a7b6cd22d3

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

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

@ -26,4 +26,8 @@ public class CancelPlanRule extends BaseRule {
@Column(name="WORK_FILTERS") @Column(name="WORK_FILTERS")
@ApiParam(value ="工作筛选") @ApiParam(value ="工作筛选")
private String workFilters; private String workFilters;
@Column(name="RECORD_RIGHT_EDGE")
@ApiParam(value ="记录工作右边界")
private Boolean recordRightEdge;
} }

@ -7,6 +7,7 @@ import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import cn.estsh.i3plus.pojo.aps.validator.ImportGroup; import cn.estsh.i3plus.pojo.aps.validator.ImportGroup;
import cn.estsh.i3plus.pojo.aps.validator.InsertGroup; import cn.estsh.i3plus.pojo.aps.validator.InsertGroup;
import cn.estsh.i3plus.pojo.aps.validator.UpdateGroup; 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.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -46,4 +47,9 @@ public class DayShift extends BaseAPS {
@FieldAnnotation(notEmpty = true) @FieldAnnotation(notEmpty = true)
@ShiftTimeAnnotation(groups = {InsertGroup.class, UpdateGroup.class, ImportGroup.class}) @ShiftTimeAnnotation(groups = {InsertGroup.class, UpdateGroup.class, ImportGroup.class})
private String workTimes; private String workTimes;
@Column(name="COLOR")
@ApiParam(value ="颜色")
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.COLOR_PICKER)
private String color;
} }

@ -45,6 +45,10 @@ public class FurnacePlan extends BaseAPS {
@ApiParam(value ="最小加工批量") @ApiParam(value ="最小加工批量")
private Integer minProductBatch; private Integer minProductBatch;
@Column(name="FIX_PLAN")
@ApiParam(value ="固定组炉的计划")
private Boolean fixPlan;
@JsonBackReference @JsonBackReference
public List<WorkPlan> getWorkPlans() { return BeanRelation.list(this, EFurnacePlan.WorkPlans); } public List<WorkPlan> getWorkPlans() { return BeanRelation.list(this, EFurnacePlan.WorkPlans); }
} }

@ -31,6 +31,11 @@ public class HeuristicOptimize extends BaseRule {
@ApiParam(value ="工作筛选") @ApiParam(value ="工作筛选")
private String workFilter; private String workFilter;
@Lob
@Column(name="WORK_SORT")
@ApiParam(value ="工作排序")
private String workSort;
@Column(name="RES_FILTER") @Column(name="RES_FILTER")
@ApiParam(value ="资源筛选") @ApiParam(value ="资源筛选")
private String resFilter; private String resFilter;
@ -40,7 +45,19 @@ public class HeuristicOptimize extends BaseRule {
@ApiParam(value ="资源选择") @ApiParam(value ="资源选择")
private String resSelect; private String resSelect;
@Column(name="WAITING_TIME")
@ApiParam(value ="最大等待时间")
private String waitingTime;
@Column(name="OPTIMIZE_INTERVAL") @Column(name="OPTIMIZE_INTERVAL")
@ApiParam(value ="优化间隔") @ApiParam(value ="优化间隔")
private String optimizeInterval; private String optimizeInterval;
@Column(name="MAX_WAITING_LIMIT")
@ApiParam(value ="最大等待时间限制")
private Boolean maxWaitingLimit;
@Column(name="MAX_WAITING_ADJUST")
@ApiParam(value ="最大等待时间调整")
private Boolean maxWaitingAdjust;
} }

@ -57,8 +57,4 @@ public class HeuristicRule extends BaseRule {
@ApiParam(value ="组炉区间") @ApiParam(value ="组炉区间")
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.DURATION) @FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.DURATION)
private String batchPeriod; private String batchPeriod;
@Column(name="REVER_FLUSH_PLAN")
@ApiParam(value ="逆向刷新计划")
private Boolean reverFlushPlan = false;
} }

@ -48,6 +48,10 @@ public class InsertedOrder extends BaseOrder {
@ApiParam(value ="完工数") @ApiParam(value ="完工数")
private Double finishCount; private Double finishCount;
@Column(name="QUALIFIED_COUNT")
@ApiParam(value ="检验合格数量")
private Double qualifiedCount;
@Column(name="REMARK") @Column(name="REMARK")
@ApiParam(value ="备注") @ApiParam(value ="备注")
private String remark; private String remark;

@ -46,10 +46,10 @@ public class Inventory extends BaseOrder {
@FieldAnnotation(modify = false) @FieldAnnotation(modify = false)
private Double assignCount; private Double assignCount;
@Column(name="EXCESS_COUNT", columnDefinition = "decimal(18,8)") // @Column(name="EXCESS_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="多余量") // @ApiParam(value ="多余量")
@FieldAnnotation(modify = false) // @FieldAnnotation(modify = false)
private Double excessCount; // private Double excessCount;
@Column(name="SINGLE_SUPPLY_COUNT", columnDefinition = "decimal(18,8)") @Column(name="SINGLE_SUPPLY_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="单次补充数量") @ApiParam(value ="单次补充数量")
@ -65,6 +65,7 @@ public class Inventory extends BaseOrder {
@Column(name="LAST_SUPPLY") @Column(name="LAST_SUPPLY")
@ApiParam(value ="最后补充时间") @ApiParam(value ="最后补充时间")
@FieldAnnotation(modify = false)
private Date lastSupply; private Date lastSupply;
@JsonIgnore @JsonIgnore

@ -29,10 +29,6 @@ public class MatCalcRule extends BaseRule {
@ApiParam(value ="物料筛选") @ApiParam(value ="物料筛选")
private String materialFilter; private String materialFilter;
@Column(name="ROUTING_FILTER")
@ApiParam(value ="工艺路线筛选")
private String routingFilter;
@Column(name="INPUT_FILTER") @Column(name="INPUT_FILTER")
@ApiParam(value ="输入筛选") @ApiParam(value ="输入筛选")
private String inputFilter; private String inputFilter;

@ -34,6 +34,10 @@ public class OrderFeedback extends BaseAPS {
@FieldAnnotation(relation = "Order", modify = false) @FieldAnnotation(relation = "Order", modify = false)
private Long orderId; private Long orderId;
@Column(name="ORDER_COUNT")
@ApiParam(value ="订单数量")
private Double orderCount;
@Column(name="DELIVER_RATE") @Column(name="DELIVER_RATE")
@ApiParam(value ="发货百分比") @ApiParam(value ="发货百分比")
private Double deliverRate; private Double deliverRate;
@ -42,14 +46,6 @@ public class OrderFeedback extends BaseAPS {
@ApiParam(value ="成品合格百分比") @ApiParam(value ="成品合格百分比")
private Double qualifiedRate; private Double qualifiedRate;
@Column(name="INVENTORY_COUNT")
@ApiParam(value ="库存扣减数量")
private Double inventoryCount;
@Column(name="LAST_OPERATION_COUNT")
@ApiParam(value ="硫化报工数量")
private Double lastOperationCount;
@Column(name="UNQUALIFIED_COUNT") @Column(name="UNQUALIFIED_COUNT")
@ApiParam(value ="不良数量") @ApiParam(value ="不良数量")
private Double unqualifiedCount; private Double unqualifiedCount;

@ -83,11 +83,6 @@ public class ProductOrder extends BaseOrder {
@FieldAnnotation(modify = false) @FieldAnnotation(modify = false)
private String calcLeadTime; private String calcLeadTime;
@Column(name="EXCESS_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="多余量")
@FieldAnnotation(modify = false)
private Double excessCount;
@Column(name="LACK_COUNT", columnDefinition = "decimal(18,8)") @Column(name="LACK_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="缺少量") @ApiParam(value ="缺少量")
@FieldAnnotation(modify = false) @FieldAnnotation(modify = false)
@ -102,6 +97,10 @@ public class ProductOrder extends BaseOrder {
@ApiParam(value ="完工数") @ApiParam(value ="完工数")
private Double finishCount; private Double finishCount;
@Column(name="QUALIFIED_COUNT")
@ApiParam(value ="检验合格数量")
private Double qualifiedCount;
@Column(name="PRODUCT_ROUTING_ID") @Column(name="PRODUCT_ROUTING_ID")
@ApiParam(value ="工艺路线") @ApiParam(value ="工艺路线")
@FieldAnnotation(property = false) @FieldAnnotation(property = false)

@ -50,10 +50,10 @@ public class PurchaseOrder extends BaseOrder {
@FieldAnnotation(modify = false) @FieldAnnotation(modify = false)
private String calcLeadTime; private String calcLeadTime;
@Column(name="EXCESS_COUNT", columnDefinition = "decimal(18,8)") // @Column(name="EXCESS_COUNT", columnDefinition = "decimal(18,8)")
@ApiParam(value ="多余量") // @ApiParam(value ="多余量")
@FieldAnnotation(modify = false) // @FieldAnnotation(modify = false)
private Double excessCount; // private Double excessCount;
@Column(name="AUTO_SUPPLY") @Column(name="AUTO_SUPPLY")
@ApiParam(value ="物料计算时自动补充") @ApiParam(value ="物料计算时自动补充")

@ -0,0 +1,55 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import cn.estsh.i3plus.pojo.base.enumutil.ApsEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2021-07-27
* @Modify:
**/
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "APS_RES_GANTT_TABLE")
@Api("资源甘特图资源表格")
public class ResGanttTable extends BaseAPS {
private static final long serialVersionUID = -8818717728985340196L;
@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="DISPLAY")
@ApiParam(value ="是否在界面显示")
@FieldAnnotation(defaultValue = "true")
private Boolean display = true;
@Column(name="ORDER_NUMBER")
@ApiParam(value ="序号")
private Integer orderNumber;
private transient ApsEnumUtil.FIELD_TYPE type;
private transient ApsEnumUtil.EDIT_TYPE editType;
@ApiParam(value ="枚举项内容")
private transient Enum<?>[] enumItems;
}

@ -18,6 +18,7 @@ import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Table; import javax.persistence.Table;
import javax.persistence.Transient; import javax.persistence.Transient;
import java.util.Date;
import java.util.List; import java.util.List;
/** /**
@ -127,6 +128,8 @@ public class Resource extends BaseAPS {
@Transient @Transient
private boolean hasConflict; private boolean hasConflict;
private transient Date rightLimit;
public WorkShop getWorkShop() { return BeanRelation.get(this, EResource.WorkShop); } public WorkShop getWorkShop() { return BeanRelation.get(this, EResource.WorkShop); }
public void setWorkShop(WorkShop workShop) { public void setWorkShop(WorkShop workShop) {

@ -45,6 +45,10 @@ public class SafeStockOrder extends BaseOrder {
@ApiParam(value ="完工数") @ApiParam(value ="完工数")
private Double finishCount; private Double finishCount;
@Column(name="QUALIFIED_COUNT")
@ApiParam(value ="检验合格数量")
private Double qualifiedCount;
@JsonIgnore @JsonIgnore
public Work getWork() { public Work getWork() {
return BeanRelation.get(this, EBaseOrder.Works); return BeanRelation.get(this, EBaseOrder.Works);

@ -61,14 +61,35 @@ public class SalesOrder extends BaseOrder {
@FieldAnnotation(defaultValue = "WAITING") @FieldAnnotation(defaultValue = "WAITING")
private ApsEnumUtil.SALES_ORDER_STATUS orderStatus; private ApsEnumUtil.SALES_ORDER_STATUS orderStatus;
@Column(name="ORDER_SPLIT")
@ApiParam(value ="拆分下发")
@FieldAnnotation(defaultValue = "NONE", modify = false)
private ApsEnumUtil.SALES_ORDER_SPLIT_STATUS orderSplit = ApsEnumUtil.SALES_ORDER_SPLIT_STATUS.NONE;
@Column(name="CAN_MAT_CALC")
@ApiParam(value ="是否参与物料运算")
@FieldAnnotation(defaultValue = "1")
private Boolean canMatCalc = true;
@Column(name="DELIVER_RATE") @Column(name="DELIVER_RATE")
@ApiParam(value ="发货百分比") @ApiParam(value ="发货百分比")
private Double deliverRate; private Double deliverRate;
@Column(name="FINISH_COUNT") @Column(name="FINISH_COUNT")
@ApiParam(value ="完工数") @ApiParam(value ="完工数")
@FieldAnnotation(modify = false)
private Double finishCount; private Double finishCount;
@Column(name="QUALIFIED_COUNT")
@ApiParam(value ="检验合格数量")
@FieldAnnotation(modify = false)
private Double qualifiedCount;
@Column(name="SERIAL_NUMBER")
@ApiParam(value ="拆分订单流水号")
@FieldAnnotation(property = false)
private Integer serialNumber = 0;
@JsonIgnore @JsonIgnore
public Work getWork() { public Work getWork() {
return BeanRelation.get(this, EBaseOrder.Works); return BeanRelation.get(this, EBaseOrder.Works);

@ -68,6 +68,11 @@ public class StandOperation extends BaseAPS {
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.DURATION) @FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.DURATION)
private String minSpaceTime; private String minSpaceTime;
@Column(name="MAX_SPACE_TIME")
@ApiParam(value ="最大时间间隔")
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.DURATION)
private String maxSpaceTime;
@Column(name="COMB_TYPE") @Column(name="COMB_TYPE")
@ApiParam(value ="生产组合方式") @ApiParam(value ="生产组合方式")
@FieldAnnotation(defaultValue = "MAX_ALL_RESOURCE") @FieldAnnotation(defaultValue = "MAX_ALL_RESOURCE")

@ -52,5 +52,21 @@ public class SysParam extends BaseAPS {
@Column(name="RECORD_RESULT") @Column(name="RECORD_RESULT")
@ApiParam(value ="记录资源评估结果") @ApiParam(value ="记录资源评估结果")
private Boolean recordResult; private Boolean recordResult = false;
@Column(name="SCHEDULE_RESULT")
@ApiParam(value ="记录排程结果")
private Boolean scheduleResult = false;
@Column(name="SPLIT_BY_SHIFT")
@ApiParam(value ="按班次分割下发的工作")
private Boolean splitByShift = true;
@Column(name="RES_GANTT_LABEL")
@ApiParam(value ="资源甘特图工作块显示标签")
private String resGanttLabel;
@Column(name="FOUR_FIRST_SUPPLY")
@ApiParam(value ="是否牵纱补满模")
private Boolean fourFirstSupply = false;
} }

@ -152,6 +152,11 @@ public class Work extends BaseAPS {
@FieldAnnotation(property = false) @FieldAnnotation(property = false)
private Long operationId; private Long operationId;
@Column(name="ORIGIN_OPERATION_ID")
@ApiParam(value ="原始工序")
@FieldAnnotation(property = false)
private Long originOperationId;
@Column(name="PARENT_WORK_ID") @Column(name="PARENT_WORK_ID")
@ApiParam(value ="父工作") @ApiParam(value ="父工作")
@FieldAnnotation(property = false) @FieldAnnotation(property = false)
@ -166,13 +171,25 @@ public class Work extends BaseAPS {
@ApiParam(value ="动态拆分工作ID") @ApiParam(value ="动态拆分工作ID")
private Long originWorkId; private Long originWorkId;
@Column(name="SUPPLY_WORK_CODE")
@ApiParam(value ="补满模工作编码")
private String supplyWorkCode;
@ApiParam(value ="工作左边界")
private Date leftEdge;
@ApiParam(value ="工作右边界")
private Date rightEdge;
@ApiParam(value ="工作排序顺序") @ApiParam(value ="工作排序顺序")
private Integer workSeqNumber; private Integer workSeqNumber;
// 排程时,找插入位置的评估值 // 排程时,找插入位置的评估值
private transient double evaluateValue = 0; private transient double evaluateValue = 0;
private transient boolean supplyCount = false;
private transient boolean hasOptimized = false; // 排程时确定工作是正向排程还是逆向排程。
private transient boolean positive = true;
public BaseOrder getOrder() { public BaseOrder getOrder() {
return BeanRelation.get(this, EWork.Order); return BeanRelation.get(this, EWork.Order);
@ -192,6 +209,15 @@ public class Work extends BaseAPS {
BeanRelation.set(this, EWork.Operation, oper); BeanRelation.set(this, EWork.Operation, oper);
} }
public Operation getOriginOperation() {
return BeanRelation.get(this, EWork.OriginOperation);
}
public void setOriginOperation(Operation oper) {
this.originOperationId = oper != null ? oper.getId() : 0l;
BeanRelation.set(this, EWork.OriginOperation, oper);
}
public ParentWork getParentWork() { public ParentWork getParentWork() {
return BeanRelation.get(this, EWork.ParentWork); return BeanRelation.get(this, EWork.ParentWork);
} }

@ -72,14 +72,14 @@ public class WorkPlan extends BaseAPS {
@ApiParam(value ="生产开始时间") @ApiParam(value ="生产开始时间")
@FieldAnnotation(modify = false) @FieldAnnotation(modify = false)
@RippleAnnotation(dependence = {"MainWork.PrevRelations.PrevWork.MainPlan.produceBegin", @RippleAnnotation(dependence = {"MainWork.PrevRelations.PrevWork.MainPlan.produceBegin",
"PrevPlan.produceBegin"}, method = "calcPositive") "PrevPlan.produceBegin", "PrevFurnace.produceBegin"}, method = "calcPositive")
private Date produceBegin; private Date produceBegin;
@Column(name="PRODUCE_END") @Column(name="PRODUCE_END")
@ApiParam(value ="生产结束时间") @ApiParam(value ="生产结束时间")
@FieldAnnotation(modify = false) @FieldAnnotation(modify = false)
@RippleAnnotation(dependence = {"MainWork.PostRelations.PostWork.MainPlan.produceEnd", @RippleAnnotation(dependence = {"MainWork.PostRelations.PostWork.MainPlan.produceEnd",
"PostPlan.produceEnd"}, method = "calcReverse") "PostPlan.produceEnd", "PostFurnace.produceEnd"}, method = "calcReverse")
private Date produceEnd; private Date produceEnd;
@Column(name="PRODUCE_TIME") @Column(name="PRODUCE_TIME")
@ -120,15 +120,21 @@ public class WorkPlan extends BaseAPS {
@ApiParam(value ="打印时间") @ApiParam(value ="打印时间")
private Date printTime; private Date printTime;
@ApiParam(value ="生产结束时间") @Column(name="HAS_COMINBED")
@ApiParam(value ="是否组炉")
private Boolean hasCominbed = false;
@ApiParam(value ="资源生产开始")
@FieldAnnotation(display = false) @FieldAnnotation(display = false)
@Transient @Transient
@RippleAnnotation(dependence = {"PostPlan.resProduceEnd"}, method = "calcReverse") @RippleAnnotation(dependence = {"PrevPlan.resProduceBegin"}, method = "calcPositive")
private Date resProduceEnd; private Date resProduceBegin;
@ApiParam(value ="资源生产结束")
@FieldAnnotation(display = false)
@Transient @Transient
@FieldAnnotation(property = false) @RippleAnnotation(dependence = {"PostPlan.resProduceEnd"}, method = "calcReverse")
private boolean hasCominbed = false; private Date resProduceEnd;
public Work getWork() { return BeanRelation.get(this, EWorkPlan.Work); } public Work getWork() { return BeanRelation.get(this, EWorkPlan.Work); }

@ -70,6 +70,20 @@ public abstract class BaseAPS extends BaseBean {
return null; return null;
} }
public Double getCustomDouble(String code) {
Object value = customFields.get(code);
if (value == null) {
return null;
}
if (value.getClass() == String.class) {
return Double.valueOf((String) value);
} else if(value.getClass() == Double.class) {
return (Double)value;
}
return null;
}
public Boolean getCustomBoolean(String code) { public Boolean getCustomBoolean(String code) {
Object value = customFields.get(code); Object value = customFields.get(code);
if (value == null) { if (value == null) {

@ -204,10 +204,17 @@ public class BeanRelation {
public static <T extends BaseBean> List<T> lastList(BaseBean bean, Enum<?>... holders) { public static <T extends BaseBean> List<T> lastList(BaseBean bean, Enum<?>... holders) {
List<T> result = new ArrayList<>(); List<T> result = new ArrayList<>();
lastListImpl(result, bean, bean, holders, 0); lastListImpl(result, bean, bean, null, holders, 0);
return result; return result;
} }
private final static <T extends BaseBean> boolean lastListImpl(List<T> result, BaseBean bean, BaseBean self,
public static <T extends BaseBean> List<T> lastList(BaseBean bean, Predicate<T> pred, Enum<?>... holders) {
List<T> result = new ArrayList<>();
lastListImpl(result, bean, bean, pred, holders, 0);
return result;
}
private final static <T extends BaseBean> boolean lastListImpl(List<T> result, BaseBean bean, BaseBean self, Predicate<T> pred,
Enum<?>[] holders, int index) { Enum<?>[] holders, int index) {
if (index >= holders.length) { if (index >= holders.length) {
if (self == bean) { if (self == bean) {
@ -215,15 +222,18 @@ public class BeanRelation {
} }
index = 0; index = 0;
self = bean; self = bean;
if (pred != null && pred.test((T)bean)) {
return true;
}
} }
boolean bNotLast = true; boolean bNotLast = true;
List<BaseBean> nextBeans = list(bean, holders[index]); List<BaseBean> nextBeans = list(bean, holders[index]);
for (BaseBean nextBean : nextBeans) { for (BaseBean nextBean : nextBeans) {
if (lastListImpl(result, nextBean, self, holders, index + 1)) { if (lastListImpl(result, nextBean, self, pred, holders, index + 1)) {
result.add((T)nextBean); result.add((T)nextBean);
bNotLast = false;
} }
bNotLast = false;
} }
return index == 0 && bNotLast; return index == 0 && bNotLast;
} }
@ -394,7 +404,6 @@ public class BeanRelation {
* @param index * @param index
* @param <T> * @param <T>
*/ */
@SuppressWarnings("unchecked")
private final static <T extends BaseBean> void recursionImpl(BaseBean bean, Predicate<T> fun, private final static <T extends BaseBean> void recursionImpl(BaseBean bean, Predicate<T> fun,
Enum<?>[] holders, int index) { Enum<?>[] holders, int index) {
if (index >= holders.length) { if (index >= holders.length) {
@ -411,38 +420,4 @@ public class BeanRelation {
} }
} }
} }
/**
* targetbeanholders
* @param bean
* @param target
* @param holders
* @return
*/
public static boolean recursionContains(BaseBean bean, BaseBean target, Enum<?>... holders) {
if (holders.length == 0) {
return false;
}
return recursionContainsImpl(bean, target, holders, 0);
}
private final static boolean recursionContainsImpl(BaseBean bean, BaseBean target,
Enum<?>[] holders, int index) {
if (index >= holders.length) {
if (target == bean) {
return true;
}
index = 0;
}
List<BaseBean> relaBeans = list(bean, holders[index]);
for (BaseBean relaBean : relaBeans) {
if (recursionContainsImpl(relaBean, target, holders, index + 1)) {
return true;
}
}
return false;
}
} }

@ -9,6 +9,7 @@ public enum EWork {
PrevRelations, // 前关联 PrevRelations, // 前关联
PostRelations, // 后关联 PostRelations, // 后关联
Operation, // 工序 Operation, // 工序
OriginOperation, // 原始工序
PlanFeedback, // 工作计划反馈 PlanFeedback, // 工作计划反馈
MainPlan, // 关联的为主资源的计划 MainPlan, // 关联的为主资源的计划
WorkPlans, // 关联的工作计划 WorkPlans, // 关联的工作计划

@ -7,5 +7,7 @@ public enum EWorkPlan {
WorkResource, WorkResource,
PrevPlan, PrevPlan,
PostPlan, PostPlan,
PrevFurnace,
PostFurnace,
FurnacePlan, FurnacePlan,
} }

@ -10,7 +10,7 @@ import java.util.Date;
@Data @Data
public class GanttCalendarModel { public class GanttCalendarModel {
private Long resourceId; private String resourceId;
@JsonSerialize(using = CustomDateSerializer.class) @JsonSerialize(using = CustomDateSerializer.class)
@JsonDeserialize(using = CustomDateDeserializer.class) @JsonDeserialize(using = CustomDateDeserializer.class)
private Date startDate; private Date startDate;
@ -21,4 +21,6 @@ public class GanttCalendarModel {
//private String timeRangeColor; //private String timeRangeColor;
private String eventColor; private String eventColor;
private String name; private String name;
private Double percentDone;//完成百分比
} }

@ -21,7 +21,7 @@ import java.util.List;
@Data @Data
@Api("甘特图分页查询参数") @Api("甘特图分页查询参数")
public class GanttEventRequest { public class GanttEventRequest {
private Long[] resourceIds; private String[] resourceIds;
@JsonSerialize(using = CustomDateSerializer.class) @JsonSerialize(using = CustomDateSerializer.class)
@JsonDeserialize(using = CustomDateDeserializer.class) @JsonDeserialize(using = CustomDateDeserializer.class)
private Date begin; private Date begin;

@ -1,14 +1,34 @@
package cn.estsh.i3plus.pojo.aps.model; 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 lombok.Data;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date;
import java.util.List; import java.util.List;
@Data @Data
public class GanttOrderModel { public class GanttOrderModel {
private Long id; private String id;
private String code; private String code;
private String name; private String name;
private String operationName;
@JsonSerialize(using = CustomDateSerializer.class)
@JsonDeserialize(using = CustomDateDeserializer.class)
private Date startDate;
@JsonSerialize(using = CustomDateSerializer.class)
@JsonDeserialize(using = CustomDateDeserializer.class)
private Date endDate;
private String color;
private Double percentDone;//完成百分比
private Boolean expanded;//是否展开树
private Boolean rollup;//自动把数据相加 在children的上层 当前
private String duration;//持续时间 天/小时/分钟
// private String durationUnit;
private Boolean manuallyScheduled;
private List<GanttOrderModel> children = new ArrayList<>(); private List<GanttOrderModel> children = new ArrayList<>();
private List<GanttLineModel> lineModels = new ArrayList<>();
} }

@ -24,4 +24,5 @@ public class GanttPlanModel {
private Long workId; private Long workId;
private List<Long> resIds; private List<Long> resIds;
private Boolean draggable; private Boolean draggable;
private Boolean furnacePlan = false;
} }

@ -0,0 +1,23 @@
package cn.estsh.i3plus.pojo.aps.model;
import cn.estsh.i3plus.pojo.aps.bean.SalesOrder;
import lombok.*;
import java.util.ArrayList;
import java.util.List;
/**
* @Description : GanttTopOrderModel
* @Author :gsz
* @Date 2021/8/9 15:39
* @Modify
**/
@Data
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class GanttTopOrderModel {
private String topOrder;
private List<SalesOrder> salesOrders = new ArrayList<>();
}

@ -22,4 +22,8 @@ public class KPIModel {
private String settingTimes; private String settingTimes;
private Integer overdueSalesCount; private Integer overdueSalesCount;
private Integer avaliableResCount;
private Integer stopResCount;
} }

@ -0,0 +1,28 @@
package cn.estsh.i3plus.pojo.aps.model;
import cn.estsh.i3plus.pojo.aps.bean.Work;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-06-22
* @Modify:
**/
@Data
public class ScheduleResultModel {
@ApiParam(value ="排程开始时间")
private Date beginTime;
@ApiParam(value ="排程结束时间")
private Date endTime;
@ApiParam(value ="参与排程的工作")
private Set<Work> works = new HashSet<>();
}

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

@ -4,4 +4,15 @@ public class APSDoubleTool {
public static boolean isZero(Double value) { public static boolean isZero(Double value) {
return (value == null) || (value > -0.0000001 && value < 0.0000001); return (value == null) || (value > -0.0000001 && value < 0.0000001);
} }
/**
*
* @param value
* @param pric
* @return
*/
public static double ceilPric(double value, int pric) {
final double digits = Math.pow(10.0, pric);
return Math.ceil(value*digits) / digits;
}
} }

@ -12,6 +12,8 @@
</Relation> </Relation>
<Relation field="Operation" name="Operation" type="MULTI_TO_ONE" owner="false"> <Relation field="Operation" name="Operation" type="MULTI_TO_ONE" owner="false">
</Relation> </Relation>
<Relation field="OriginOperation" name="Operation" type="MULTI_TO_ONE" owner="false">
</Relation>
<Relation field="MainPlan" name="WorkPlan" reverse="MainWork" type="ONE_TO_ONE"> <Relation field="MainPlan" name="WorkPlan" reverse="MainWork" type="ONE_TO_ONE">
</Relation> </Relation>
<Relation field="WorkPlans" name="WorkPlan" reverse="Work" type="ONE_TO_MULTI" owner="true"> <Relation field="WorkPlans" name="WorkPlan" reverse="Work" type="ONE_TO_MULTI" owner="true">

@ -4,4 +4,6 @@
</Relation> </Relation>
<Relation field="PrevPlan" name="WorkPlan" reverse="PostPlan" type="MULTI_TO_MULTI" owner="false"> <Relation field="PrevPlan" name="WorkPlan" reverse="PostPlan" type="MULTI_TO_MULTI" owner="false">
</Relation> </Relation>
<Relation field="PrevFurnace" name="WorkPlan" reverse="PostFurnace" type="MULTI_TO_MULTI" owner="false">
</Relation>
</Class> </Class>

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

@ -334,7 +334,7 @@ public class ApsEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RESOURCE_CLASS { public enum RESOURCE_CLASS {
LIMITLESS("LIMITLESS", "无限能力"), LIMITLESS("LIMITLESS", "无限能力"),
SINGLE("SINGLE", "单能力"), SINGLE("SINGLE", "单资源"),
BATCH("BATCH", "炉资源"); BATCH("BATCH", "炉资源");
private String value; private String value;
@ -770,7 +770,7 @@ public class ApsEnumUtil {
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WORK_TYPE { public enum WORK_TYPE {
// 工作不参与排程 // 工作不参与排程,比如销售订单的工作
FICTITIOUS("FICTITIOUS", "虚拟工作"), FICTITIOUS("FICTITIOUS", "虚拟工作"),
// 动态虚拟工作为不计算生产时间。 // 动态虚拟工作为不计算生产时间。
DYNAMIC_FICTITIOUS("DYNAMIC_FICTITIOUS", "动态虚拟工作"), DYNAMIC_FICTITIOUS("DYNAMIC_FICTITIOUS", "动态虚拟工作"),
@ -1037,7 +1037,8 @@ public class ApsEnumUtil {
OBJECT("OBJECT", "关联对象下来选择关联对象的Code值"), OBJECT("OBJECT", "关联对象下来选择关联对象的Code值"),
LIST("LIST", "对象集合,不可编辑。"), LIST("LIST", "对象集合,不可编辑。"),
MULTI_OBJECT("MULTI_OBJECT", "多选对象,弹出框选择,可以选择全部对象,以*表示选择全部"), MULTI_OBJECT("MULTI_OBJECT", "多选对象,弹出框选择,可以选择全部对象,以*表示选择全部"),
QUERY_LIST("QUERY_LIST", "通过接口获取下拉选项"); QUERY_LIST("QUERY_LIST", "通过接口获取下拉选项"),
COLOR_PICKER("COLOR_PICKER", "颜色选择框");
private String value; private String value;
private String description; private String description;
@ -1182,6 +1183,32 @@ public class ApsEnumUtil {
} }
/** /**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SALES_ORDER_SPLIT_STATUS {
NONE("NONE", "不拆分下发"),
SPLIT_MAIN("SPLIT_MAIN", "拆分下发(主)"),
SPLIT_CHILD("SPLIT_CHILD", "拆分下发(子)");
private String value;
private String description;
SALES_ORDER_SPLIT_STATUS(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
}
/**
* *
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -1261,18 +1288,20 @@ public class ApsEnumUtil {
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum APS_ORDER_TYPE { public enum APS_ORDER_TYPE {
SALES_ORDER("S", "销售订单"), SALES_ORDER("SALES_ORDER", "S", "销售订单"),
PRODUCT_ORDER("M", "生产订单"), PRODUCT_ORDER("PRODUCT_ORDER", "M", "生产订单"),
PURCHASE_ORDER("P", "采购订单"), PURCHASE_ORDER("PURCHASE_ORDER", "P", "采购订单"),
INVENTORY("W", "库存订单"), INVENTORY("INVENTORY", "W", "库存订单"),
SAFE_STOCK_ORDER("Q", "安全库存订单"), SAFE_STOCK_ORDER("SAFE_STOCK_ORDER", "Q", "安全库存订单"),
INSERTED_ORDER("I", "插单"); INSERTED_ORDER("INSERTED_ORDER", "I", "插单");
private String value; private String value;
private String prefix;
private String description; private String description;
APS_ORDER_TYPE(String value, String description) { APS_ORDER_TYPE(String value, String prefix, String description) {
this.value = value; this.value = value;
this.prefix = prefix;
this.description = description; this.description = description;
} }
@ -1280,6 +1309,8 @@ public class ApsEnumUtil {
return value; return value;
} }
public String getPrefix() { return prefix; }
public String getDescription() { public String getDescription() {
return description; return description;
} }
@ -1294,7 +1325,11 @@ public class ApsEnumUtil {
FOUR_SULFIDATION("FOUR_SULFIDATION", "四车间硫化"), FOUR_SULFIDATION("FOUR_SULFIDATION", "四车间硫化"),
FOUR_TRAINBEARER("FOUR_TRAINBEARER", "四车间牵纱"), FOUR_TRAINBEARER("FOUR_TRAINBEARER", "四车间牵纱"),
FOUR_COATING("FOUR_COATING", "四车间覆胶"), FOUR_COATING("FOUR_COATING", "四车间覆胶"),
FOUR_WRAPPING("FOUR_WRAPPING", "四车间包布"); FOUR_WRAPPING("FOUR_WRAPPING", "四车间包布"),
TWO_SULFIDATION("TWO_SULFIDATION", "二车间硫化"),
TWO_TRAINBEARER("TWO_TRAINBEARER", "二车间牵纱"),
TWO_COATING("TWO_COATING", "二车间覆胶"),
TWO_WRAPPING("TWO_WRAPPING", "二车间包布");
private String value; private String value;
private String description; private String description;

@ -1862,8 +1862,8 @@ public class CommonEnumUtil {
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DATA_SOURCE_TYPE { public enum DATA_SOURCE_TYPE {
SOURCE_MARIA_DB(100, "MariaDB", "MariaDB 10.1", "com.mysql.jdbc.Driver", 3306, null), SOURCE_MARIA_DB(100, "SOURCE_MARIA_DB", "MariaDB 10.1", "com.mysql.jdbc.Driver", 3306, null),
SOURCE_SQL_SERVER(200, "SQL Server", "SQL Server 2017", "com.microsoft.sqlserver.jdbc.SQLServerDriver", 1433, "dbo"), SOURCE_SQL_SERVER(200, "SOURCE_SQL_SERVER", "SQL Server 2017", "com.microsoft.sqlserver.jdbc.SQLServerDriver", 1433, "dbo"),
SOURCE_ORACLE(300, "Oracle", "Oralce 12C", "oracle.jdbc.driver.OracleDriver", 1521, null), SOURCE_ORACLE(300, "Oracle", "Oralce 12C", "oracle.jdbc.driver.OracleDriver", 1521, null),
SOURCE_POSTGRE_SQL(400, "PostgreSql", "PostgreSql 10.5", "org.postgresql.Driver", 5432, "public"), SOURCE_POSTGRE_SQL(400, "PostgreSql", "PostgreSql 10.5", "org.postgresql.Driver", 5432, "public"),
SOURCE_SAP_HANA(500, "SapHana", "SapHana", "com.sap.db.jdbc.Driver", 39015, null); SOURCE_SAP_HANA(500, "SapHana", "SapHana", "com.sap.db.jdbc.Driver", 39015, null);

@ -1851,7 +1851,9 @@ public class WmsEnumUtil {
CLOSE(40, "已关闭"), CLOSE(40, "已关闭"),
CANCEL(50, "已取消"), CANCEL(50, "已取消"),
REJECT(60, "全部退货"), REJECT(60, "全部退货"),
SPECIAL(70, "全部特采"); SPECIAL(70, "全部特采"),
SECOND_JUDGMENT(80, "二次判定"),
XUANBIE_JUDGMENT(90, "全部选别");
private int value; private int value;
private String description; private String description;
@ -1887,7 +1889,8 @@ public class WmsEnumUtil {
public enum QC_ITEM_STATUS { public enum QC_ITEM_STATUS {
NORMAL(10, "正常"), NORMAL(10, "正常"),
CANCELLATION(20, "已处理"), CANCELLATION(20, "已处理"),
SPECIAL(30, "部分特采"); SPECIAL(30, "部分特采"),
XUANBIE(40, "选别");
private int value; private int value;
private String description; private String description;

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

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

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

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

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

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

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

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

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

@ -28,7 +28,7 @@ import java.io.Serializable;
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "IF_EDI_INITIAL_DATA", indexes = { @Table(name = "IF_EDI_INITIAL_DATA", indexes = {
@Index(columnList = "PROGRAM_DATA"), @Index(columnList = "PROGRAM_DATA"),
@Index(columnList = "CONTENT"), // @Index(columnList = "CONTENT"),
@Index(columnList = "SYNC_STATUS") @Index(columnList = "SYNC_STATUS")
}) })
@Api("EDI_初始数据表") @Api("EDI_初始数据表")

@ -7,16 +7,13 @@ import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
@ -33,7 +30,9 @@ import java.util.List;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_AREA") @Table(name = "MES_AREA", indexes = {
@Index(columnList = "AREA_CODE")
})
@Api("生产区域") @Api("生产区域")
public class MesArea extends BaseBean implements Serializable { public class MesArea extends BaseBean implements Serializable {
private static final long serialVersionUID = 4320604250440221043L; private static final long serialVersionUID = 4320604250440221043L;

@ -5,15 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -29,7 +27,10 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_CONFIG") @Table(name = "MES_CONFIG", indexes = {
@Index(columnList = "CFG_CODE"),
@Index(columnList = "CFG_CODE, CFG_KEY")
})
@Api("mes配置表") @Api("mes配置表")
public class MesConfig extends BaseBean implements Serializable { public class MesConfig extends BaseBean implements Serializable {
private static final long serialVersionUID = 2462824203686013806L; private static final long serialVersionUID = 2462824203686013806L;

@ -23,7 +23,9 @@ import javax.persistence.*;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_CONTAINER") @Table(name = "MES_CONTAINER", indexes = {
@Index(columnList = "CT_NO")
})
@Api("MES_容器类型") @Api("MES_容器类型")
public class MesContainer extends BaseBean { public class MesContainer extends BaseBean {
private static final long serialVersionUID = -3843389042411645111L; private static final long serialVersionUID = -3843389042411645111L;

@ -5,15 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -29,7 +27,9 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_CUSTOMER") @Table(name = "MES_CUSTOMER", indexes = {
@Index(columnList = "CUSTOMER_CODE")
})
@Api("客户信息") @Api("客户信息")
public class MesCustomer extends BaseBean implements Serializable { public class MesCustomer extends BaseBean implements Serializable {
private static final long serialVersionUID = 6049359006918853570L; private static final long serialVersionUID = 6049359006918853570L;

@ -26,7 +26,11 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_CUSTOMER_PART") @Table(name = "MES_CUSTOMER_PART", indexes = {
@Index(columnList = "CUSTOMER_CODE"),
@Index(columnList = "PART_NO"),
@Index(columnList = "CUSTOMER_PART_NO")
})
@Api("客户零件关系") @Api("客户零件关系")
public class MesCustomerPart extends BaseBean implements Serializable { public class MesCustomerPart extends BaseBean implements Serializable {
private static final long serialVersionUID = 2600442373171403668L; private static final long serialVersionUID = 2600442373171403668L;

@ -5,16 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -28,7 +25,9 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_DATA_OBJECT") @Table(name = "MES_DATA_OBJECT", indexes = {
@Index(columnList = "OBJECT_CODE")
})
@Api("数据对象") @Api("数据对象")
public class MesDataObject extends BaseBean implements Serializable { public class MesDataObject extends BaseBean implements Serializable {

@ -4,16 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
@ -30,7 +27,9 @@ import java.util.List;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_DEFECT") @Table(name = "MES_DEFECT", indexes = {
@Index(columnList = "DEFECT_CODE")
})
@Api("缺陷表") @Api("缺陷表")
public class MesDefect extends BaseBean implements Serializable { public class MesDefect extends BaseBean implements Serializable {

@ -58,6 +58,10 @@ public class MesEquTaskPlan extends BaseBean implements Serializable {
@ApiParam("备注") @ApiParam("备注")
private String memo; private String memo;
@Column(name = "DESIGNATED_PERSON")
@ApiParam("指派人")
private String designatedPerson;
@Transient @Transient
@ApiParam(value = "生产线") @ApiParam(value = "生产线")
private String workCenterCode; private String workCenterCode;

@ -5,16 +5,11 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column; import javax.persistence.*;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -55,4 +50,7 @@ public class MesEquTaskPlanCfg extends BaseBean implements Serializable {
@ApiParam("显示文字") @ApiParam("显示文字")
private String displayText; private String displayText;
@Column(name = "DESIGNATED_PERSON")
@ApiParam("指派人")
private String designatedPerson;
} }

@ -4,16 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -29,7 +26,9 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_KPSN_RULE") @Table(name = "MES_KPSN_RULE", indexes = {
@Index(columnList = "PART_NO")
})
@Api("关键件条码校验规则") @Api("关键件条码校验规则")
public class MesKpsnRule extends BaseBean implements Serializable { public class MesKpsnRule extends BaseBean implements Serializable {
private static final long serialVersionUID = 2592621267902381297L; private static final long serialVersionUID = 2592621267902381297L;

@ -27,7 +27,9 @@ import java.util.List;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_LABEL_TEMPLATE") @Table(name = "MES_LABEL_TEMPLATE", indexes = {
@Index(columnList = "TEMPLATE_CODE")
})
@Api(value = "打印模板", description = "打印模板") @Api(value = "打印模板", description = "打印模板")
public class MesLabelTemplate extends BaseBean implements Serializable { public class MesLabelTemplate extends BaseBean implements Serializable {

@ -28,7 +28,9 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_LABEL_TEMPLATE_PARAM") @Table(name = "MES_LABEL_TEMPLATE_PARAM", indexes = {
@Index(columnList = "TEMPLATE_CODE")
})
@Api(value = "打印模板参数", description = "打印模板参数") @Api(value = "打印模板参数", description = "打印模板参数")
public class MesLabelTemplateParam extends BaseBean implements Serializable { public class MesLabelTemplateParam extends BaseBean implements Serializable {

@ -5,15 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -29,7 +27,9 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_METHOD") @Table(name = "MES_METHOD", indexes = {
@Index(columnList = "METHOD_CODE")
})
@Api("系统业务方法") @Api("系统业务方法")
public class MesMethod extends BaseBean implements Serializable { public class MesMethod extends BaseBean implements Serializable {
private static final long serialVersionUID = -3254086662292709833L; private static final long serialVersionUID = -3254086662292709833L;

@ -5,15 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -27,7 +25,9 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_NUMBER_RULE") @Table(name = "MES_NUMBER_RULE", indexes = {
@Index(columnList = "RULE_CODE")
})
@Api("条码生成规则") @Api("条码生成规则")
public class MesNumberRule extends BaseBean implements Serializable { public class MesNumberRule extends BaseBean implements Serializable {
private static final long serialVersionUID = -7547623897602721464L; private static final long serialVersionUID = -7547623897602721464L;

@ -5,16 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Version;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -28,7 +25,9 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_NUMBER_SERIALNO") @Table(name = "MES_NUMBER_SERIALNO", indexes = {
@Index(columnList = "CURRENT_NUMBER_PREFIX")
})
@Api("编码序号") @Api("编码序号")
public class MesNumberSerialno extends BaseBean implements Serializable { public class MesNumberSerialno extends BaseBean implements Serializable {
private static final long serialVersionUID = -6004402998083665263L; private static final long serialVersionUID = -6004402998083665263L;

@ -5,16 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -28,7 +25,9 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_OBJECT_CFG") @Table(name = "MES_OBJECT_CFG", indexes = {
@Index(columnList = "OBJECT_CODE")
})
@Api("对象结构") @Api("对象结构")
public class MesObjectCfg extends BaseBean implements Serializable { public class MesObjectCfg extends BaseBean implements Serializable {
private static final long serialVersionUID = 55753384888695913L; private static final long serialVersionUID = 55753384888695913L;

@ -5,15 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -29,7 +27,9 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_OBJECT_DAO") @Table(name = "MES_OBJECT_DAO", indexes = {
@Index(columnList = "OBJECT_CODE")
})
@Api("MES_对象与dao对应关系") @Api("MES_对象与dao对应关系")
public class MesObjectDao extends BaseBean implements Serializable { public class MesObjectDao extends BaseBean implements Serializable {
private static final long serialVersionUID = 2286752362359060L; private static final long serialVersionUID = 2286752362359060L;

@ -43,6 +43,11 @@ import java.util.List;
public class MesPackage extends BaseBean implements Serializable { public class MesPackage extends BaseBean implements Serializable {
private static final long serialVersionUID = 5275923991324889995L; private static final long serialVersionUID = 5275923991324889995L;
@Column(name = "SYSTEM_SYNC_STATUS")
@ColumnDefault("2")
@ApiParam(value = "系统同步标志")
public Integer systemSyncStatus = 2;
@Column(name = "PACKAGE_NO", nullable = false) @Column(name = "PACKAGE_NO", nullable = false)
@ApiParam("包装编号") @ApiParam("包装编号")
private String packageNo; private String packageNo;

@ -8,6 +8,7 @@ import lombok.Data;
import javax.persistence.Inheritance; import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.InheritanceType;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
@ -37,6 +38,11 @@ import java.io.Serializable;
public class MesPackageDetail extends BaseBean implements Serializable { public class MesPackageDetail extends BaseBean implements Serializable {
private static final long serialVersionUID = 6980459490465566975L; private static final long serialVersionUID = 6980459490465566975L;
@Column(name = "SYSTEM_SYNC_STATUS")
@ColumnDefault("2")
@ApiParam(value = "系统同步标志")
public Integer systemSyncStatus = 2;
@Column(name = "PACKAGE_NO", nullable = false) @Column(name = "PACKAGE_NO", nullable = false)
@ApiParam("包装编码") @ApiParam("包装编码")
private String packageNo; private String packageNo;

@ -4,15 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -28,7 +26,9 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_PCN") @Table(name = "MES_PCN", indexes = {
@Index(columnList = "PCN_CODE")
})
@Api("PCN节点") @Api("PCN节点")
public class MesPcn extends BaseBean implements Serializable { public class MesPcn extends BaseBean implements Serializable {
private static final long serialVersionUID = -9150091413555406397L; private static final long serialVersionUID = -9150091413555406397L;

@ -5,16 +5,13 @@ import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -30,7 +27,9 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_PCN_SYNC_CFG") @Table(name = "MES_PCN_SYNC_CFG", indexes = {
@Index(columnList = "PCN_CODE, SYNC_TYPE")
})
@Api("MES_PCN_同步配置") @Api("MES_PCN_同步配置")
public class MesPcnSyncCfg extends BaseBean implements Serializable { public class MesPcnSyncCfg extends BaseBean implements Serializable {
private static final long serialVersionUID = 7270930330576127126L; private static final long serialVersionUID = 7270930330576127126L;

@ -6,16 +6,13 @@ import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -31,7 +28,9 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_PCN_SYS_USER_OFFLINE") @Table(name = "MES_PCN_SYS_USER_OFFLINE", indexes = {
@Index(columnList = "LOGIN_NAME")
})
@Api(value = "账号离线登陆表", description = "账号离线登陆表。") @Api(value = "账号离线登陆表", description = "账号离线登陆表。")
public class MesPcnSysUserOffline extends BaseBean implements Serializable { public class MesPcnSysUserOffline extends BaseBean implements Serializable {
private static final long serialVersionUID = -7483799830588482021L; private static final long serialVersionUID = -7483799830588482021L;

@ -4,16 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -29,7 +26,9 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_PROCESS") @Table(name = "MES_PROCESS", indexes = {
@Index(columnList = "PROCESS_CODE")
})
@Api("工序") @Api("工序")
public class MesProcess extends BaseBean implements Serializable { public class MesProcess extends BaseBean implements Serializable {
private static final long serialVersionUID = -615476712907856558L; private static final long serialVersionUID = -615476712907856558L;

@ -5,15 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -27,7 +25,9 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_PROD_PACK") @Table(name = "MES_PROD_PACK", indexes = {
@Index(columnList = "PART_NO")
})
@Api("产品包装关系") @Api("产品包装关系")
public class MesProdPack extends BaseBean implements Serializable { public class MesProdPack extends BaseBean implements Serializable {
private static final long serialVersionUID = -5748484568201154400L; private static final long serialVersionUID = -5748484568201154400L;

@ -4,15 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -28,7 +26,12 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_PROD_ROUTE_CFG") @Table(name = "MES_PROD_ROUTE_CFG", indexes = {
@Index(columnList = "ROUTE_CODE"),
@Index(columnList = "WORK_CENTER_CODE"),
@Index(columnList = "ROUTE_CODE, WORK_CENTER_CODE"),
@Index(columnList = "WORK_CENTER_CODE, ROUTE_TYPE")
})
@Api("产品类流程配置表") @Api("产品类流程配置表")
public class MesProdRouteCfg extends BaseBean implements Serializable { public class MesProdRouteCfg extends BaseBean implements Serializable {
private static final long serialVersionUID = -3903152693262813917L; private static final long serialVersionUID = -3903152693262813917L;

@ -29,7 +29,8 @@ import java.io.Serializable;
@Table(name = "MES_PROD_ROUTE_OPT_PARAM", indexes = { @Table(name = "MES_PROD_ROUTE_OPT_PARAM", indexes = {
@Index(columnList = "ROUTE_CODE"), @Index(columnList = "ROUTE_CODE"),
@Index(columnList = "PROCESS_CODE"), @Index(columnList = "PROCESS_CODE"),
@Index(columnList = "STEP_CODE") @Index(columnList = "STEP_CODE"),
@Index(columnList = "PROD_ROUTE_CFG_ID")
}) })
@Api("产品流程配置操作参数表") @Api("产品流程配置操作参数表")
public class MesProdRouteOptParam extends BaseBean implements Serializable { public class MesProdRouteOptParam extends BaseBean implements Serializable {

@ -38,6 +38,11 @@ import java.io.Serializable;
public class MesProduceSn extends BaseBean implements Serializable { public class MesProduceSn extends BaseBean implements Serializable {
private static final long serialVersionUID = -1630924042562178494L; private static final long serialVersionUID = -1630924042562178494L;
@Column(name = "SYSTEM_SYNC_STATUS")
@ColumnDefault("2")
@ApiParam(value = "系统同步标志")
public Integer systemSyncStatus = 2;
@Column(name = "SERIAL_NUMBER", nullable = false) @Column(name = "SERIAL_NUMBER", nullable = false)
@ApiParam("过程条码") @ApiParam("过程条码")
private String serialNumber; private String serialNumber;

@ -36,6 +36,11 @@ import java.io.Serializable;
public class MesProduceSnTravel extends BaseBean implements Serializable { public class MesProduceSnTravel extends BaseBean implements Serializable {
private static final long serialVersionUID = -1807953720033107108L; private static final long serialVersionUID = -1807953720033107108L;
@Column(name = "SYSTEM_SYNC_STATUS")
@ColumnDefault("2")
@ApiParam(value = "系统同步标志")
public Integer systemSyncStatus = 2;
@Column(name = "SERIAL_NUMBER") @Column(name = "SERIAL_NUMBER")
@ApiParam("过程条码") @ApiParam("过程条码")
private String serialNumber; private String serialNumber;

@ -10,6 +10,7 @@ import lombok.Data;
import javax.persistence.Inheritance; import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.InheritanceType;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
@ -39,6 +40,12 @@ import java.io.Serializable;
@Api("生产数据") @Api("生产数据")
public class MesProductData extends BaseBean implements Serializable { public class MesProductData extends BaseBean implements Serializable {
private static final long serialVersionUID = 4514407617515827040L; private static final long serialVersionUID = 4514407617515827040L;
@Column(name = "SYSTEM_SYNC_STATUS")
@ColumnDefault("2")
@ApiParam(value = "系统同步标志")
public Integer systemSyncStatus = 2;
@Column(name = "WORK_CENTER_CODE") @Column(name = "WORK_CENTER_CODE")
@ApiParam("工作中心") @ApiParam("工作中心")
private String workCenterCode; private String workCenterCode;

@ -26,7 +26,10 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_ROUTE") @Table(name = "MES_ROUTE", indexes = {
@Index(columnList = "ROUTE_CODE"),
@Index(columnList = "ROUTE_TYPE")
})
@Api("流程表") @Api("流程表")
public class MesRoute extends BaseBean implements Serializable { public class MesRoute extends BaseBean implements Serializable {
private static final long serialVersionUID = -3616935751787295145L; private static final long serialVersionUID = -3616935751787295145L;

@ -4,15 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -28,7 +26,10 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_ROUTE_PROCESS") @Table(name = "MES_ROUTE_PROCESS", indexes = {
@Index(columnList = "ROUTE_CODE"),
@Index(columnList = "ROUTE_CODE, PROCESS_CODE")
})
@Api("流程工序关系") @Api("流程工序关系")
public class MesRouteProcess extends BaseBean implements Serializable { public class MesRouteProcess extends BaseBean implements Serializable {
private static final long serialVersionUID = -1248219638779313299L; private static final long serialVersionUID = -1248219638779313299L;

@ -4,16 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -29,7 +26,12 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_ROUTE_PROCESS_CELL") @Table(name = "MES_ROUTE_PROCESS_CELL", indexes = {
@Index(columnList = "ROUTE_CODE"),
@Index(columnList = "ROUTE_CODE, WORK_CELL_CODE"),
@Index(columnList = "WORK_CENTER_CODE, WORK_CELL_CODE"),
@Index(columnList = "ROUTE_CODE, WORK_CENTER_CODE, WORK_CELL_CODE")
})
@Api("工序工作单元对照") @Api("工序工作单元对照")
public class MesRouteProcessCell extends BaseBean implements Serializable { public class MesRouteProcessCell extends BaseBean implements Serializable {
private static final long serialVersionUID = 4823057491756814599L; private static final long serialVersionUID = 4823057491756814599L;

@ -5,17 +5,15 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -31,7 +29,10 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_SHIFT") @Table(name = "MES_SHIFT", indexes = {
@Index(columnList = "SHIFT_CODE"),
@Index(columnList = "AREA_CODE, WORK_CENTER_CODE, SHIFT_CODE")
})
@Api("班次信息") @Api("班次信息")
public class MesShift extends BaseBean implements Serializable { public class MesShift extends BaseBean implements Serializable {
private static final long serialVersionUID = 4001070186534674096L; private static final long serialVersionUID = 4001070186534674096L;

@ -4,16 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -27,7 +24,9 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_STATE_MACHINE") @Table(name = "MES_STATE_MACHINE", indexes = {
@Index(columnList = "SM_CODE")
})
@Api("MES状态机") @Api("MES状态机")
public class MesStateMachine extends BaseBean implements Serializable { public class MesStateMachine extends BaseBean implements Serializable {

@ -22,7 +22,9 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_STATE_MACHINE_STATUS") @Table(name = "MES_STATE_MACHINE_STATUS", indexes = {
@Index(columnList = "SM_CODE")
})
@Api("MES状态机步骤") @Api("MES状态机步骤")
public class MesStateMachineStatus extends BaseBean implements Serializable { public class MesStateMachineStatus extends BaseBean implements Serializable {
private static final long serialVersionUID = 6093522587973076640L; private static final long serialVersionUID = 6093522587973076640L;

@ -10,6 +10,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table; import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
@ -25,7 +26,9 @@ import java.io.Serializable;
@DynamicInsert @DynamicInsert
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Table(name = "MES_STATE_MACHINE_STEP") @Table(name = "MES_STATE_MACHINE_STEP", indexes = {
@Index(columnList = "SM_CODE")
})
@Api("状态机工步参数配置表") @Api("状态机工步参数配置表")
public class MesStateMachineStep extends BaseBean implements Serializable { public class MesStateMachineStep extends BaseBean implements Serializable {

@ -4,16 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -29,7 +26,9 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_STEP") @Table(name = "MES_STEP", indexes = {
@Index(columnList = "STEP_CODE")
})
@Api("工步") @Api("工步")
public class MesStep extends BaseBean implements Serializable { public class MesStep extends BaseBean implements Serializable {
private static final long serialVersionUID = -1106608189453496947L; private static final long serialVersionUID = -1106608189453496947L;

@ -4,15 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -26,7 +24,11 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_STEP_GROUP") @Table(name = "MES_STEP_GROUP", indexes = {
@Index(columnList = "STEP_CODE"),
@Index(columnList = "AMG_ID"),
@Index(columnList = "STEP_CODE, AMG_ID")
})
@Api("工步集") @Api("工步集")
public class MesStepGroup extends BaseBean implements Serializable { public class MesStepGroup extends BaseBean implements Serializable {
private static final long serialVersionUID = 1876053661752102998L; private static final long serialVersionUID = 1876053661752102998L;

@ -4,16 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -31,7 +28,10 @@ import java.util.Map;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_STEP_PARAM") @Table(name = "MES_STEP_PARAM", indexes = {
@Index(columnList = "STEP_CODE"),
@Index(columnList = "STEP_CODE, PARAM_CODE")
})
@Api("工步参数") @Api("工步参数")
public class MesStepParam extends BaseBean implements Serializable { public class MesStepParam extends BaseBean implements Serializable {
private static final long serialVersionUID = 6709455994477993263L; private static final long serialVersionUID = 6709455994477993263L;

@ -0,0 +1,45 @@
package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
import java.io.Serializable;
/**
* @Description :
* @Reference :
* @Author : dominic
* @CreateDate : 2021-10-08
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_UNLOCK_PASSWORD")
@Api("mes解锁密码表")
public class MesUnlockPassword extends BaseBean implements Serializable {
private static final long serialVersionUID = -3534232746289126115L;
@Column(name = "EMPLOYEE_NUMBER")
@ApiParam("员工编号")
private String employeeNumber;
@Column(name = "EMPLOYEE_NAME")
@ApiParam("员工姓名")
private String employeeName;
@Column(name = "UNLOCK_PASSWORD")
@ApiParam("解锁密码")
private String unlockPassword;
}

@ -6,17 +6,14 @@ import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
@ -33,7 +30,10 @@ import java.util.List;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_WORK_CELL") @Table(name = "MES_WORK_CELL", indexes = {
@Index(columnList = "WORK_CENTER_CODE"),
@Index(columnList = "WORK_CENTER_CODE, WORK_CELL_CODE")
})
@Api("工作单元") @Api("工作单元")
public class MesWorkCell extends BaseBean implements Serializable { public class MesWorkCell extends BaseBean implements Serializable {
private static final long serialVersionUID = 8552890090536989486L; private static final long serialVersionUID = 8552890090536989486L;

@ -6,16 +6,13 @@ import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType; import javax.persistence.*;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
@ -32,7 +29,10 @@ import java.util.List;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_WORK_CENTER") @Table(name = "MES_WORK_CENTER", indexes = {
@Index(columnList = "WORK_CENTER_CODE"),
@Index(columnList = "AREA_CODE")
})
@Api("工作中心") @Api("工作中心")
public class MesWorkCenter extends BaseBean implements Serializable { public class MesWorkCenter extends BaseBean implements Serializable {
private static final long serialVersionUID = 5583253625290231595L; private static final long serialVersionUID = 5583253625290231595L;

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesUnlockPassword;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-10-11
* @Modify:
**/
@Repository
public interface MesUnlockPasswordRepository extends BaseRepository<MesUnlockPassword, Long> {
}

@ -1462,7 +1462,7 @@ public class MesHqlPack {
if (!StringUtils.isEmpty(mesPlc.getWorkCenterCode())) { if (!StringUtils.isEmpty(mesPlc.getWorkCenterCode())) {
DdlPreparedPack.getStringEqualPack(mesPlc.getWorkCenterCode(), "workCenterCode", packBean); DdlPreparedPack.getStringEqualPack(mesPlc.getWorkCenterCode(), "workCenterCode", packBean);
} }
if (!StringUtils.isEmpty(mesPlc.getPlcCode())) { if (!StringUtils.isEmpty(mesPlc.getWorkCellCode())) {
DdlPreparedPack.getStringEqualPack(mesPlc.getWorkCellCode(), "workCellCode", packBean); DdlPreparedPack.getStringEqualPack(mesPlc.getWorkCellCode(), "workCellCode", packBean);
} }
if (!StringUtils.isEmpty(mesPlc.getEquipmentCode())) { if (!StringUtils.isEmpty(mesPlc.getEquipmentCode())) {

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

@ -56,6 +56,9 @@ public class WmsActionResponseBean<Obj> implements Serializable {
@ApiParam("可选项") @ApiParam("可选项")
public List<WmsOptionModel> options; public List<WmsOptionModel> options;
@ApiParam("任务编号")
public String taskNo;
public List<WmsOptionModel> getOptions() { public List<WmsOptionModel> getOptions() {
if (options == null) { if (options == null) {
options = new ArrayList<>(); options = new ArrayList<>();
@ -128,8 +131,6 @@ public class WmsActionResponseBean<Obj> implements Serializable {
@ApiParam(value = "是否重置") @ApiParam(value = "是否重置")
private Integer isReset; private Integer isReset;
@ApiParam(value = "任务编号")
private String taskNo;
public WmsActionResponseBean(Boolean codeStatus, String message) { public WmsActionResponseBean(Boolean codeStatus, String message) {
this.codeStatus = codeStatus; this.codeStatus = codeStatus;

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

@ -0,0 +1,13 @@
package cn.estsh.i3plus.pojo.platform.job.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.platform.platbean.SysLogTaskTime;
import org.springframework.stereotype.Repository;
/**
* @author ns
* @create 2021/10/12 0012 16:21
*/
@Repository
public interface SysLogTaskTimeRepository extends BaseRepository<SysLogTaskTime,Long> {
}

@ -13,6 +13,9 @@ import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
/** /**
* @Description : * @Description :
@ -22,10 +25,12 @@ import javax.persistence.Column;
* @Modify : * @Modify :
**/ **/
@Data @Data
@DynamicInsert //@DynamicInsert
@DynamicUpdate //@DynamicUpdate
@Entity
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Api(value="定时任务执行日志",description = "定时任务执行记录") @Api(value="定时任务执行日志",description = "定时任务执行记录")
@Table(name = "SYS_LOG_TASK_TIME")
public class SysLogTaskTime extends BaseBean { public class SysLogTaskTime extends BaseBean {
private static final long serialVersionUID = -841008177433745529L; private static final long serialVersionUID = -841008177433745529L;
@ -76,6 +81,36 @@ public class SysLogTaskTime extends BaseBean {
return taskStatus == null ? CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue() : taskStatus; return taskStatus == null ? CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue() : taskStatus;
} }
@Lob
@ApiParam(value ="任务异常日志") @ApiParam(value ="任务异常日志")
private String taskLogError; private String taskLogError;
@ApiParam(value ="job类名")
private String jobClass;
@ApiParam(value ="触发器名称")
private String triggerName;
@ApiParam(value ="描述")
private String description;
@ApiParam(value ="触发时间")
private String fireTime;
@ApiParam(value ="下次触发时间")
private String nextFireTime;
@ApiParam(value ="上次触发时间")
private String prevFireTime;
@ApiParam(value ="上次触发时间")
private String scheduleName;
@ApiParam(value ="执行开始时间")
private String executeStartTime;
@ApiParam(value ="执行结束时间")
private String executeEndTime;
} }

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

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

Loading…
Cancel
Save