Merge branch 'test'
commit
c4d7a2380c
@ -0,0 +1,82 @@
|
||||
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.aps.common.BeanRelation;
|
||||
import cn.estsh.i3plus.pojo.aps.holders.EShippingTime;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @Description :运输时间
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2019-09-17
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "APS_SHIPPING_TIME")
|
||||
@Api("运输时间")
|
||||
public class ShippingTime extends BaseAPS {
|
||||
@Column(name="TIME")
|
||||
@ApiParam(value ="运输时间")
|
||||
private String time;
|
||||
|
||||
@Column(name="PRIORITY")
|
||||
@ApiParam(value ="优先级")
|
||||
private Integer priority;
|
||||
|
||||
@Column(name="PREV_RES_CODE")
|
||||
@ApiParam(value ="前资源对象Id")
|
||||
@FieldAnnotation(property = false)
|
||||
private Long prevResId;
|
||||
|
||||
@Column(name="POST_RES_CODE")
|
||||
@ApiParam(value ="后资源对象Id")
|
||||
@FieldAnnotation(property = false)
|
||||
private Long postResId;
|
||||
|
||||
@Column(name="PREV_STAND_CODE")
|
||||
@ApiParam(value ="前标准工序对象Id")
|
||||
@FieldAnnotation(property = false)
|
||||
private Long prevStandId;
|
||||
|
||||
@Column(name="POST_STAND_CODE")
|
||||
@ApiParam(value ="后标准工序对象Id")
|
||||
@FieldAnnotation(property = false)
|
||||
private Long postStandId;
|
||||
|
||||
public Resource getPrevRes() {return BeanRelation.get(this, EShippingTime.PrevRes); }
|
||||
|
||||
public void setPrevRes(Resource res) {
|
||||
this.prevResId = res != null ? res.getId() : 0l;
|
||||
BeanRelation.set(this, EShippingTime.PrevRes, res);
|
||||
}
|
||||
|
||||
public Resource getPostRes() { return BeanRelation.get(this, EShippingTime.PostRes); }
|
||||
|
||||
public void setPostRes(Resource res) {
|
||||
this.postResId = res != null ? res.getId() : 0l;
|
||||
BeanRelation.set(this, EShippingTime.PostRes, res);
|
||||
}
|
||||
|
||||
public StandOperation getPrevStand() { return BeanRelation.get(this, EShippingTime.PrevStand);}
|
||||
|
||||
public void setPrevStand(StandOperation stand) {
|
||||
this.prevStandId = stand != null ? stand.getId() : 0l;
|
||||
BeanRelation.set(this, EShippingTime.PrevStand, stand);
|
||||
}
|
||||
|
||||
public StandOperation getPostStand() { return BeanRelation.get(this, EShippingTime.PostStand); }
|
||||
|
||||
public void setPostStand(StandOperation stand) {
|
||||
this.postStandId = stand != null ? stand.getId() : 0l;
|
||||
BeanRelation.set(this, EShippingTime.PostStand, stand);
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.aps.enums;
|
||||
|
||||
/**
|
||||
* @Description :工艺路径有效性判断类型
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2019-10-29
|
||||
* @Modify:
|
||||
**/
|
||||
public enum ROUTING_VALID_TYPE {
|
||||
ORDER_CALC_LET, // 与订单的最晚结束时刻计算值做比较
|
||||
CALC_LET_LT, // 与最晚结束时刻计算值-提前期做比较
|
||||
BASE_TIME // 与基准时刻做比较
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package cn.estsh.i3plus.pojo.aps.enums;
|
||||
|
||||
public enum WORK_PLAN_TYPE {
|
||||
MAIN_PLAN, // 主资源计划
|
||||
ASS_PLAN, // 副资源计划
|
||||
BATCH_PLAN // 炉资源计划
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
package cn.estsh.i3plus.pojo.aps.holders;
|
||||
|
||||
public enum EResource {
|
||||
WorkPlans
|
||||
}
|
||||
|
@ -0,0 +1,8 @@
|
||||
package cn.estsh.i3plus.pojo.aps.holders;
|
||||
|
||||
public enum EShippingTime {
|
||||
PrevRes, // 前资源
|
||||
PostRes, // 后资源
|
||||
PrevStand, // 前标准工序
|
||||
PostStand // 后标准工序
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package cn.estsh.i3plus.pojo.aps.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class GanttCalendarModel {
|
||||
@Data
|
||||
public static class Block {
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date beginTime;
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date endTime;
|
||||
private Boolean onDuty;
|
||||
}
|
||||
private Long resourceId;
|
||||
private List<Block> timeBlocks = new ArrayList<>();
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package cn.estsh.i3plus.pojo.aps.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.aps.bean.ShippingTime;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface ShippingTimeRepository extends CrudRepository<ShippingTime, Long> {
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Class name="Resource">
|
||||
<Relation field="WorkPlans" name="WorkPlan" reverse="Resource" type="ONE_TO_MULTI" owner="true">
|
||||
</Relation>
|
||||
</Class>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Class name="WorkPlan">
|
||||
<Relation field="PrevRes" name="Resource" type="MULTI_TO_ONE" owner="false">
|
||||
</Relation>
|
||||
<Relation field="PostRes" name="Resource" type="MULTI_TO_ONE" owner="false">
|
||||
</Relation>
|
||||
<Relation field="PrevStand" name="StandOperation" type="MULTI_TO_ONE" owner="false">
|
||||
</Relation>
|
||||
<Relation field="PostStand" name="StandOperation" type="MULTI_TO_ONE" owner="false">
|
||||
</Relation>
|
||||
</Class>
|
@ -0,0 +1,183 @@
|
||||
package cn.estsh.i3plus.pojo.base.enumutil;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2019-10-29 13:37
|
||||
* @Modify:
|
||||
**/
|
||||
public class LacEnumUtil {
|
||||
|
||||
/**
|
||||
* 适配器类型
|
||||
*/
|
||||
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
||||
public enum SUIT_CASE_TYPE {
|
||||
SOFTWARE(10, "软件"),
|
||||
HARDWARE(20, "硬件");
|
||||
|
||||
private int value;
|
||||
private String description;
|
||||
|
||||
private SUIT_CASE_TYPE (int value, String description) {
|
||||
this.value = value;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public static String valueOfDescription(int val) {
|
||||
String tmp = null;
|
||||
for (int i = 0; i < values().length; i++) {
|
||||
if (values()[i].value == val) {
|
||||
tmp = values()[i].description;
|
||||
}
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
|
||||
public static LacEnumUtil.SUIT_CASE_TYPE valueOf(int val) {
|
||||
String tmp = null;
|
||||
for (int i = 0; i < values().length; i++) {
|
||||
if (values()[i].value == val) {
|
||||
return values()[i];
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 硬件类型
|
||||
*/
|
||||
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
||||
public enum HARDWARE_TYPE {
|
||||
OPC_READ(10, "读OPC"),
|
||||
OPC_WRITE(20, "写OPC");
|
||||
|
||||
private int value;
|
||||
private String description;
|
||||
|
||||
private HARDWARE_TYPE (int value, String description) {
|
||||
this.value = value;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public static String valueOfDescription(int val) {
|
||||
String tmp = null;
|
||||
for (int i = 0; i < values().length; i++) {
|
||||
if (values()[i].value == val) {
|
||||
tmp = values()[i].description;
|
||||
}
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
|
||||
public static LacEnumUtil.HARDWARE_TYPE valueOf(int val) {
|
||||
String tmp = null;
|
||||
for (int i = 0; i < values().length; i++) {
|
||||
if (values()[i].value == val) {
|
||||
return values()[i];
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 参数类型
|
||||
*/
|
||||
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
||||
public enum PARAM_TYPE{
|
||||
OUT_PARAM(1,"出参"),
|
||||
IN_PARAM(2,"入参");
|
||||
|
||||
private int value;
|
||||
private String description;
|
||||
|
||||
PARAM_TYPE(int value, String description) {
|
||||
this.value = value;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public static String valueOfDescription(int val) {
|
||||
String tmp = null;
|
||||
for (int i = 0; i < values().length; i++) {
|
||||
if (values()[i].value == val) {
|
||||
tmp = values()[i].description;
|
||||
}
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 指令集状态
|
||||
*/
|
||||
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
||||
public enum STACK_STATUS{
|
||||
INIT(10,"初始化"),
|
||||
WAIT(20,"等待中"),
|
||||
RUNNING(30,"运行中"),
|
||||
PAUSE(40,"手动暂停"),
|
||||
FINISH(100,"执行完成"),
|
||||
RUN_ERROR(101,"运行异常"),
|
||||
RUN_STOP(102,"手动结束");
|
||||
|
||||
private int value;
|
||||
private String description;
|
||||
|
||||
STACK_STATUS(int value, String description) {
|
||||
this.value = value;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public static String valueOfDescription(int val) {
|
||||
String tmp = null;
|
||||
for (int i = 0; i < values().length; i++) {
|
||||
if (values()[i].value == val) {
|
||||
tmp = values()[i].description;
|
||||
}
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
|
||||
public static boolean isRunning(int val) {
|
||||
return RUNNING.getValue() == val;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package cn.estsh.i3plus.pojo.lac.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* <per>
|
||||
* <br/> create table LacInstructionSetStep(
|
||||
* <br/> templateId bigint null,
|
||||
* <br/> templateNameRdd varchar(50) null,
|
||||
* <br/> templateCode varchar(50) null,
|
||||
* <br/> stepName varchar(50) null,
|
||||
* <br/> stepSort int null,
|
||||
* <br/> stepExecCond double null,
|
||||
* <br/> stepDescription varchar(255) null
|
||||
* <br/> );
|
||||
*
|
||||
* <br/> comment on table LacInstructionSetStep is'指令集模板步骤';
|
||||
* <br/> comment on column LacInstructionSetStep.templateId is'模板id';
|
||||
* <br/> comment on column LacInstructionSetStep.templateNameRdd is'模板名称';
|
||||
* <br/> comment on column LacInstructionSetStep.templateCode is'模板代码';
|
||||
* <br/> comment on column LacInstructionSetStep.stepName is'步骤名称';
|
||||
* <br/> comment on column LacInstructionSetStep.stepSort is'步骤顺序';
|
||||
* <br/> comment on column LacInstructionSetStep.stepExecCond is'步骤执行条件';
|
||||
* <br/> comment on column LacInstructionSetStep.stepDescription is'步骤描述';
|
||||
* </per>
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-10-25 下午5:53
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="LAC_COMMAND_STACK_STEP")
|
||||
@Api(value="指令集步骤",description = "指令集步骤")
|
||||
public class LacCommandStackStep extends BaseBean {
|
||||
|
||||
@Column(name="TEMPLATE_ID")
|
||||
@ApiParam(value ="模板ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long templateId;
|
||||
|
||||
@Column(name="STEP_NAME")
|
||||
@ApiParam(value ="模板名称")
|
||||
private String stepName;
|
||||
|
||||
@Column(name="STEP_CODE")
|
||||
@ApiParam(value ="模板代码")
|
||||
private String stepCode;
|
||||
|
||||
@Column(name="STEP_SORT")
|
||||
@ApiParam(value ="步骤顺序")
|
||||
private Integer stepSort;
|
||||
|
||||
@Column(name="STEP_EXEC_COND")
|
||||
@ApiParam(value ="步骤执行条件")
|
||||
private Double stepExecCond;
|
||||
|
||||
@Column(name="STEP_DESCRIPTION")
|
||||
@ApiParam(value ="步骤执行条件")
|
||||
private String stepDescription;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value ="步骤任务列表")
|
||||
private List<LacCommandStackStepTask> stepTaskList;
|
||||
|
||||
|
||||
public LacCommandStackStep() {
|
||||
}
|
||||
|
||||
public LacCommandStackStep(Long templateId) {
|
||||
this.templateId = templateId;
|
||||
}
|
||||
}
|
@ -0,0 +1,124 @@
|
||||
package cn.estsh.i3plus.pojo.lac.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* <per>
|
||||
* <br/> create table LacInstructionSetStepTask(
|
||||
* <br/> templateId bigint null,
|
||||
* <br/> templateNameRdd varchar(50) null,
|
||||
* <br/> templateCode varchar(50) null,
|
||||
* <br/> stepId bigint null,
|
||||
* <br/> stepNameRdd varchar(50) null,
|
||||
* <br/> taskId bigint null,
|
||||
* <br/> taskNameRdd varchar(50) null,
|
||||
* <br/> taskCode varchar(50) null,
|
||||
* <br/> isCrux int null
|
||||
* <br/> );
|
||||
*
|
||||
* <br/> comment on table LacInstructionSetStepTask is'指令集模板步骤任务';
|
||||
* <br/> comment on column LacInstructionSetStepTask.templateId is'模板id';
|
||||
* <br/> comment on column LacInstructionSetStepTask.templateNameRdd is'模板名称';
|
||||
* <br/> comment on column LacInstructionSetStepTask.templateCode is'模板代码';
|
||||
* <br/> comment on column LacInstructionSetStepTask.stepId is'步骤id';
|
||||
* <br/> comment on column LacInstructionSetStepTask.stepNameRdd is'步骤名称';
|
||||
* <br/> comment on column LacInstructionSetStepTask.taskId is'任务id';
|
||||
* <br/> comment on column LacInstructionSetStepTask.taskNameRdd is'任务名称';
|
||||
* <br/> comment on column LacInstructionSetStepTask.taskCode is'任务代码';
|
||||
* <br/> comment on column LacInstructionSetStepTask.isCrux is'是否关键';
|
||||
* </per>
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-10-25 下午6:01
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="LAC_COMMAND_STACK_STEP_TASK")
|
||||
@Api(value="步骤任务",description = "步骤任务信息")
|
||||
public class LacCommandStackStepTask extends BaseBean {
|
||||
|
||||
@Column(name="TEMPLATE_ID")
|
||||
@ApiParam(value ="模板ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long templateId;
|
||||
|
||||
// @Column(name="TEMPLATE_NAME_RDD")
|
||||
// @ApiParam(value ="模板名称")
|
||||
// private String templateNameRdd;
|
||||
//
|
||||
// @Column(name="TEMPLATE_CODE_RDD")
|
||||
// @ApiParam(value ="模板代码")
|
||||
// private String templateCodeRdd;
|
||||
|
||||
@Column(name="STEP_ID")
|
||||
@ApiParam(value ="步骤ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long stepId;
|
||||
|
||||
/**
|
||||
* 不建议使用
|
||||
*/
|
||||
@Deprecated
|
||||
@Column(name="TASK_INSTANCE_ID")
|
||||
@ApiParam(value ="任务实例ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long taskInstanceId;
|
||||
//
|
||||
// @Column(name="STEP_NAME_RDD")
|
||||
// @ApiParam(value ="步骤名称")
|
||||
// private String stepNameRdd;
|
||||
//
|
||||
// @Column(name="STEP_CODE_RDD")
|
||||
// @ApiParam(value ="步骤代码")
|
||||
// private String stepCodeRdd;
|
||||
|
||||
@Column(name="TASK_ID")
|
||||
@ApiParam(value ="任务ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long taskId;
|
||||
|
||||
@Column(name="STEP_NAME_RDD")
|
||||
@ApiParam(value ="步骤名称")
|
||||
private String taskNameRdd;
|
||||
|
||||
@Column(name="STEP_CODE_RDD")
|
||||
@ApiParam(value ="任务代码")
|
||||
private String taskCodeRdd;
|
||||
|
||||
@Column(name="IS_CRUX")
|
||||
@ApiParam(value ="是否关键")
|
||||
private Integer isCrux;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value ="适配任务")
|
||||
private LacSuitTask lacSuitTask;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value ="适配任务记录")
|
||||
private LacLogTask logTask;
|
||||
|
||||
public LacCommandStackStepTask() {
|
||||
}
|
||||
|
||||
public LacCommandStackStepTask(Long templateId) {
|
||||
this.templateId = templateId;
|
||||
}
|
||||
}
|
@ -0,0 +1,84 @@
|
||||
package cn.estsh.i3plus.pojo.lac.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* <per>
|
||||
* <br/> create table instructionSetTemplate(
|
||||
* <br/> templateName varchar(50) null,
|
||||
* <br/> templateCode varchar(50) null,
|
||||
* <br/> templateTypeId bigint null,
|
||||
* <br/> templateTypeNameRdd varchar(50) null,
|
||||
* <br/> templateDescription varchar(50) null,
|
||||
* <br/> templateStepNum int null
|
||||
* <br/> );
|
||||
*
|
||||
* <br/> comment on table instructionSetTemplate is'指令集模板';
|
||||
* <br/> comment on column instructionSetTemplate.templateName is'模板名称';
|
||||
* <br/> comment on column instructionSetTemplate.templateCode is'模板代码';
|
||||
* <br/> comment on column instructionSetTemplate.templateTypeId is'模板大类id';
|
||||
* <br/> comment on column instructionSetTemplate.templateTypeNameRdd is'模板大类名称';
|
||||
* <br/> comment on column instructionSetTemplate.templateDescription is'模板描述';
|
||||
* <br/> comment on column instructionSetTemplate.templateStepNum is'模板步骤';
|
||||
* </per>
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-10-25 下午5:45
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="LAC_COMMAND_STACK_TEMPLATE")
|
||||
@Api(value="指令集模板",description = "指令集模板信息")
|
||||
public class LacCommandStackTemplate extends BaseBean {
|
||||
|
||||
@Column(name="TEMPLATE_NAME")
|
||||
@ApiParam(value ="模板名称")
|
||||
private String templateName;
|
||||
|
||||
@Column(name="TEMPLATE_CODE")
|
||||
@ApiParam(value ="模板代码")
|
||||
private String templateCode;
|
||||
|
||||
@Column(name="STACK_TYPE_ID")
|
||||
@ApiParam(value ="指令集类型")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long stackTypeId;
|
||||
|
||||
@Column(name="STACK_TYPE_NAME_RDD")
|
||||
@ApiParam(value ="类型名称")
|
||||
private String stackTypeNameRdd;
|
||||
|
||||
@Column(name="TYPE_DESCRIPTION")
|
||||
@ApiParam(value ="模板大类名称")
|
||||
private String typeDescription;
|
||||
|
||||
@Column(name="TEMPLATE_NUM")
|
||||
@ApiParam(value ="适配器使用数量")
|
||||
private Integer templateNum;
|
||||
|
||||
@Column(name="TEMPLATE_DESCRIPTION")
|
||||
@ApiParam(value ="模板描述")
|
||||
private String templateDescription;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value ="步骤列表")
|
||||
private List<LacCommandStackStep> stepList;
|
||||
}
|
@ -0,0 +1,159 @@
|
||||
package cn.estsh.i3plus.pojo.lac.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* <per>
|
||||
* <br/> create table LacSuitTask(
|
||||
* <br/> taskName varchar(50) null,
|
||||
* <br/> taskCode varchar(50) null,
|
||||
* <br/> taskTypeId bigint null,
|
||||
* <br/> taskTypeNameRdd varchar(50) null,
|
||||
* <br/> suitCaseId bigint null,
|
||||
* <br/> suitCaseCode varchar(50) null,
|
||||
* <br/> suitCaseNameRdd varchar(50) null,
|
||||
* <br/> successNum int null,
|
||||
* <br/> failNum int null,
|
||||
* <br/> countNum int null,
|
||||
* <br/> taskDescription varchar(255) null
|
||||
* <br/> );
|
||||
* <br/> comment on table LacSuitTask is'适配任务';
|
||||
* <br/> comment on column LacSuitTask.taskName is'任务名称';
|
||||
* <br/> comment on column LacSuitTask.taskCode is'任务代码';
|
||||
* <br/> comment on column LacSuitTask.taskTypeId is'任务大类id';
|
||||
* <br/> comment on column LacSuitTask.taskTypeNameRdd is'任务大类名称';
|
||||
* <br/> comment on column LacSuitTask.suitCaseId is'适配器id';
|
||||
* <br/> comment on column LacSuitTask.suitCaseCode is'适配器代码';
|
||||
* <br/> comment on column LacSuitTask.suitCaseNameRdd is'适配器名称';
|
||||
* <br/> comment on column LacSuitTask.successNum is'成功次数';
|
||||
* <br/> comment on column LacSuitTask.failNum is'适配次数';
|
||||
* <br/> comment on column LacSuitTask.countNum is'总次数';
|
||||
* <br/> comment on column LacSuitTask.taskDescription is'任务描述';
|
||||
* <br/> comment on column LacSuitCase.timeout is'超时时间'; -> 移至 任务当中
|
||||
* <br/> comment on column LacSuitCase.retryNum is'重试次数'; -> 移至 任务当中
|
||||
* </per>
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-10-25 下午6:47
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="LAC_SUIT_TASK")
|
||||
@Api(value="调度任务",description = "调度任务信息")
|
||||
public class LacSuitTask extends BaseBean {
|
||||
|
||||
@Column(name="TASK_NAME")
|
||||
@ApiParam(value ="适配器名称")
|
||||
private String taskName;
|
||||
|
||||
@Column(name="TASK_CODE")
|
||||
@ApiParam(value ="适配器代码")
|
||||
private String taskCode;
|
||||
|
||||
@Column(name="TASK_TIMEOUT")
|
||||
@ApiParam(value ="超时时间")
|
||||
private Integer taskTimeout;
|
||||
|
||||
public int getTaskTimeoutVal(){
|
||||
return taskTimeout == null ? -1 : taskTimeout.intValue();
|
||||
}
|
||||
|
||||
@Column(name="TASK_RETRY_NUM")
|
||||
@ApiParam(value ="重试次数")
|
||||
private Integer taskRetryNum;
|
||||
|
||||
@Column(name="TASK_TYPE_ID")
|
||||
@ApiParam(value ="任务类型")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long taskTypeId;
|
||||
|
||||
@Column(name="TASK_TYPE_NAME_RDD")
|
||||
@ApiParam(value ="任务类型名称")
|
||||
private String taskTypeNameRdd;
|
||||
|
||||
@Column(name="SUIT_CASE_ID")
|
||||
@ApiParam(value ="适配器ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long suitCaseId;
|
||||
|
||||
@Column(name="SUTI_CASE_NAME_RDD")
|
||||
@ApiParam(value ="适配器名称")
|
||||
private String suitCaseNameRdd;
|
||||
|
||||
@Column(name="SUIT_CASE_CODE_RDD")
|
||||
@ApiParam(value ="适配器代码")
|
||||
private String suitCaseCodeRdd;
|
||||
|
||||
@Column(name="NUM_SUCCESS")
|
||||
@ApiParam(value ="执行成功次数")
|
||||
private Integer numSuccess = 0;
|
||||
|
||||
@Column(name="NUM_FAIL")
|
||||
@ApiParam(value ="执行失败次数")
|
||||
private Integer numFail = 0;
|
||||
|
||||
@Column(name="NUM_COUNT")
|
||||
@ApiParam(value ="执行次数")
|
||||
private Integer numCount = 0;
|
||||
|
||||
@Column(name="TASK_DESCRIPTION")
|
||||
@ApiParam(value ="任务描述")
|
||||
private String taskDescription;
|
||||
|
||||
/********************************** 虚拟字段 **********************************/
|
||||
|
||||
@Transient
|
||||
@ApiParam(value ="适配套件")
|
||||
private LacSuitCase lacSuitCase;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value ="任务实例id")
|
||||
private Long taskInstanceId;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value ="适配原始参数")
|
||||
private Object orginParam;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value ="适配转换后参数")
|
||||
private Object transParam;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value ="原始报文")
|
||||
private Object orginMessage;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value ="转换后报文")
|
||||
private Object transMessage;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value ="适配参数")
|
||||
private List<LacSuitTaskParam> lacSuitTaskParamList;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value ="入参适配")
|
||||
private List<LacSuitTaskParamAdapter> inputParamAdapterList;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value ="出参适配")
|
||||
private List<LacSuitTaskParamAdapter> outputParamAdapterList;
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package cn.estsh.i3plus.pojo.lac.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* <per>
|
||||
* <br/> create table LacSuitTaskParam(
|
||||
* <br/> suitTaskId bigint null,
|
||||
* <br/> suitTaskName varchar(50) null,
|
||||
* <br/> suitTaskCode varchar(50) null,
|
||||
* <br/> paramName varchar(50) null,
|
||||
* <br/> paramType int null,
|
||||
* <br/> paramValueType int null,
|
||||
* <br/> defaultValue varchar(50) null,
|
||||
* <br/> paramDescrition varchar(255) null
|
||||
* <br/> );
|
||||
* <br/> comment on table LacSuitTaskParam is'适配任务参数';
|
||||
* <br/> comment on column LacSuitTaskParam.suitTaskId is'适配任务id';
|
||||
* <br/> comment on column LacSuitTaskParam.suitTaskName is'适配任务名称';
|
||||
* <br/> comment on column LacSuitTaskParam.suitTaskCode is'适配任务代码';
|
||||
* <br/> comment on column LacSuitTaskParam.paramName is'参数名称';
|
||||
* <br/> comment on column LacSuitTaskParam.paramType is'参数类型(枚举)';
|
||||
* <br/> comment on column LacSuitTaskParam.paramValueType is'参数值类型(枚举)';
|
||||
* <br/> comment on column LacSuitTaskParam.defaultValue is'默认值';
|
||||
* <br/> comment on column LacSuitTaskParam.paramDescrition is'参数描述';
|
||||
* </per>
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-10-25 下午6:49
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="LAC_SUIT_TASK_PARAM")
|
||||
@Api(value="调度任务参数",description = "调度任务参数信息")
|
||||
public class LacSuitTaskParam extends BaseBean {
|
||||
|
||||
@Column(name="TASK_ID")
|
||||
@ApiParam(value ="任务ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long taskId;
|
||||
|
||||
@Column(name="TASK_NAME_RDD")
|
||||
@ApiParam(value ="任务名称")
|
||||
private String taskNameRdd;
|
||||
|
||||
@Column(name="TASK_CODE_RDD")
|
||||
@ApiParam(value ="任务代码")
|
||||
private String taskCodeRdd;
|
||||
|
||||
@Column(name="PARAM_NAME")
|
||||
@ApiParam(value ="参数名称")
|
||||
private String paramName;
|
||||
|
||||
@Column(name="PARAM_CODE")
|
||||
@ApiParam(value ="参数编码")
|
||||
private String paramCode;
|
||||
|
||||
@Column(name="PARAM_TYPE")
|
||||
@ApiParam(value ="参数类型")
|
||||
private Integer paramType;
|
||||
|
||||
@Column(name="PARAM_VALUE_TYPE")
|
||||
@ApiParam(value ="参数值类型")
|
||||
private Integer paramValueType;
|
||||
|
||||
@Column(name="PARAM_DEFAULT_VALUE")
|
||||
@ApiParam(value ="参数默认值")
|
||||
private String paramDefaultValue;
|
||||
|
||||
@Column(name="PARAM_DESCRIPTION")
|
||||
@ApiParam(value ="参数描述")
|
||||
private String paramDescription;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value ="参数值")
|
||||
private Object value;
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
package cn.estsh.i3plus.pojo.lac.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* <per>
|
||||
* <br/> create table LacSuitTaskParamAdapter(
|
||||
* <br/> sutiTaskId bigint null,
|
||||
* <br/> suitTaskCode varchar(50) null,
|
||||
* <br/> suitTaskNameRdd varchar(50) null,
|
||||
* <br/> paramId bigint null,
|
||||
* <br/> paramName varchar(50) null,
|
||||
* <br/> paramType int null,
|
||||
* <br/> paramValueType int null,
|
||||
* <br/> defaultValue varchar(50) null,
|
||||
* <br/> transferParamName varchar(50) null,
|
||||
* <br/> transferParamValueType int null
|
||||
* <br/> );
|
||||
* <br/> comment on table LacSuitTaskParamAdapter is'适配任务参数转换';
|
||||
* <br/> comment on column LacSuitTaskParamAdapter.sutiTaskId is'适配任务id';
|
||||
* <br/> comment on column LacSuitTaskParamAdapter.suitTaskCode is'适配任务代码';
|
||||
* <br/> comment on column LacSuitTaskParamAdapter.suitTaskNameRdd is'适配任务名称';
|
||||
* <br/> comment on column LacSuitTaskParamAdapter.paramId is'参数id';
|
||||
* <br/> comment on column LacSuitTaskParamAdapter.paramName is'参数名称';
|
||||
* <br/> comment on column LacSuitTaskParamAdapter.paramType is'参数类型(枚举)';
|
||||
* <br/> comment on column LacSuitTaskParamAdapter.paramValueType is'参数值类型(枚举)';
|
||||
* <br/> comment on column LacSuitTaskParamAdapter.defaultValue is'默认值';
|
||||
* <br/> comment on column LacSuitTaskParamAdapter.transferParamName is'转换后参数名称';
|
||||
* <br/> comment on column LacSuitTaskParamAdapter.transferParamValueType is'转换后参数值类型';
|
||||
* </per>
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-10-25 下午1:45
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="LAC_SUIT_TASK_PARAM_ADAPTER")
|
||||
@Api(value="调度任务参数转换",description = "调度任务参数转换信息")
|
||||
public class LacSuitTaskParamAdapter extends BaseBean {
|
||||
|
||||
@Column(name="TASK_ID")
|
||||
@ApiParam(value ="任务ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long taskId;
|
||||
|
||||
@Column(name="TASK_NAME_RDD")
|
||||
@ApiParam(value ="任务名称")
|
||||
private String taskNameRdd;
|
||||
|
||||
@Column(name="TASK_CODE_RDD")
|
||||
@ApiParam(value ="任务代码")
|
||||
private String taskCodeRdd;
|
||||
|
||||
@Column(name="PARAM_ID")
|
||||
@ApiParam(value ="参数ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long paramId;
|
||||
|
||||
@Column(name="PARAM_NAME")
|
||||
@ApiParam(value ="参数名称")
|
||||
private String paramName;
|
||||
|
||||
@Column(name="PARAM_TYPE")
|
||||
@ApiParam(value ="参数类型")
|
||||
private Integer paramType;
|
||||
|
||||
@Column(name="PARAM_VALUE_TYPE")
|
||||
@ApiParam(value ="参数值类型")
|
||||
private Integer paramValueType;
|
||||
|
||||
@Column(name="TRANSFER_PARAM_NAME")
|
||||
@ApiParam(value ="转换后参数名称")
|
||||
private String transferParamName;
|
||||
|
||||
@Column(name="TRANSFER_PARAM_VALUE_TYPE")
|
||||
@ApiParam(value ="转换后参数值类型")
|
||||
private String transferParamValueType;
|
||||
|
||||
@Column(name="DEFAULT_VALUE")
|
||||
@ApiParam(value ="参数默认值")
|
||||
private String defaultValue;
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.lac.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.lac.bean.LacCommandStackStep;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-10-28 下午2:55
|
||||
* @Modify:
|
||||
**/
|
||||
public interface LacCommandStackStepRepository extends BaseRepository<LacCommandStackStep, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.lac.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.lac.bean.LacCommandStackStepTask;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-10-28 下午2:55
|
||||
* @Modify:
|
||||
**/
|
||||
public interface LacCommandStackStepTaskRepository extends BaseRepository<LacCommandStackStepTask, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.lac.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.lac.bean.LacCommandStackTemplate;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-10-28 下午2:56
|
||||
* @Modify:
|
||||
**/
|
||||
public interface LacCommandStackTemplateRepository extends BaseRepository<LacCommandStackTemplate, Long> {
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package cn.estsh.i3plus.pojo.lac.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.lac.bean.LacSuitCase;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-10-28 下午2:56
|
||||
* @Modify:
|
||||
**/
|
||||
public interface LacSuitCaseRepository extends BaseRepository<LacSuitCase, Long> {
|
||||
}
|
||||
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.lac.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.lac.bean.LacSuitTaskParamAdapter;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-10-28 下午3:19
|
||||
* @Modify:
|
||||
**/
|
||||
public interface LacSuitTaskParamAdapterRepository extends BaseRepository<LacSuitTaskParamAdapter, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.lac.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.lac.bean.LacSuitTaskParam;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-10-28 下午3:19
|
||||
* @Modify:
|
||||
**/
|
||||
public interface LacSuitTaskParamRepository extends BaseRepository<LacSuitTaskParam, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.lac.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.lac.bean.LacSuitTask;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wei.peng
|
||||
* @CreateDate : 19-10-28 下午3:19
|
||||
* @Modify:
|
||||
**/
|
||||
public interface LacSuitTaskRepository extends BaseRepository<LacSuitTask, Long> {
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesFiCfg;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wangjie
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface MesFiCfgRepository extends BaseRepository<MesFiCfg, Long> {
|
||||
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\11\6 11:45
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_CUST_ORDER")
|
||||
@Api("客户信息")
|
||||
public class MesCustOrder extends BaseBean {
|
||||
|
||||
@Column(name = "ORDER_NO")
|
||||
@ApiParam("订单号")
|
||||
private String orderNo;
|
||||
|
||||
@Column(name = "ORDER_TYPE")
|
||||
@ApiParam("订单类型")
|
||||
private Integer orderType;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ApiParam("数量")
|
||||
private Integer qty;
|
||||
|
||||
@Column(name = "STATUS")
|
||||
@ApiParam("状态")
|
||||
private Integer status;
|
||||
|
||||
@Column(name = "ORDER_DATE")
|
||||
@ApiParam("订单日期")
|
||||
private String orderDate;
|
||||
|
||||
@Column(name = "CUST_CODE")
|
||||
@ApiParam("客户代码")
|
||||
private String custCode;
|
||||
|
||||
@Column(name = "CUST_ORDER_NO")
|
||||
@ApiParam("客户订单号")
|
||||
private String custOrderNo;
|
||||
|
||||
@Column(name = "SOURCE")
|
||||
@ApiParam("计划来源")
|
||||
private String source;
|
||||
|
||||
@Column(name = "MEMO")
|
||||
@ApiParam("备注")
|
||||
private String memo;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value = "订单日期查询用,查询开始日期", example = "2019-01-31 23:59:59")
|
||||
public String orderTimeStart;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value = "订单日期查询用,查询结束日期", example = "2019-12-31 23:59:59")
|
||||
public String orderTimeEnd;
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue