Merge branch 'test' into ext-dev
commit
7cd40e35da
@ -0,0 +1,92 @@
|
||||
package cn.estsh.i3plus.pojo.andon.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;
|
||||
|
||||
/**
|
||||
* @author wangjie
|
||||
* @date 2020/2/12 17:41
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@Table(name = "ANDON_MANAGE_ROUTE_ERROR_RECORD", indexes = {
|
||||
@Index(columnList = "WORK_CENTER_CODE"),
|
||||
@Index(columnList = "WORK_CELL_CODE"),
|
||||
@Index(columnList = "WORK_CENTER_CODE, WORK_CELL_CODE"),
|
||||
@Index(columnList = "ANDON_ORDER_NO"),
|
||||
@Index(columnList = "MSG_TYPE"),
|
||||
@Index(columnList = "WORK_CENTER_CODE, WORK_CELL_CODE, ANDON_ORDER_NO"),
|
||||
@Index(columnList = "WORK_CENTER_CODE, WORK_CELL_CODE, HANDLE_STATUS")
|
||||
})
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Inheritance(strategy = InheritanceType.JOINED)
|
||||
@Api("安灯作业流程异常记录")
|
||||
public class AndonManageRouteErrorRecord extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 2037562788825472674L;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam(value = "工作中心")
|
||||
public String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam(value = "工作单元")
|
||||
public String workCellCode;
|
||||
|
||||
@Column(name = "ALARM_CODE")
|
||||
@ApiParam(value = "安灯类型")
|
||||
public String alarmCode;
|
||||
|
||||
@Column(name = "ALARM_DETAIL_CODE")
|
||||
@ApiParam(value = "安灯子类型编码")
|
||||
private String alarmDetailCode;
|
||||
|
||||
@Column(name = "SOURCE_TYPE")
|
||||
@ApiParam(value = "安灯来源类型")
|
||||
private String sourceType;
|
||||
|
||||
@Column(name = "ALARM_STATUS")
|
||||
@ApiParam(value = "安灯事件")
|
||||
public String alarmStatus;
|
||||
|
||||
@Column(name = "ALARM_STATUS_NAME")
|
||||
@ApiParam(value = "安灯事件名称")
|
||||
public String alarmStatusName;
|
||||
|
||||
@Lob
|
||||
@Column(name = "ERROR_DESC")
|
||||
@ApiParam(value = "异常描述")
|
||||
public String errorDesc;
|
||||
|
||||
@Column(name = "MSG_TYPE")
|
||||
@ApiParam(value = "信息类型")
|
||||
private String msgType;
|
||||
|
||||
@Column(name = "ANDON_ORDER_NO")
|
||||
@ApiParam(value = "安灯队列编号")
|
||||
public String andonOrderNo;
|
||||
|
||||
@Column(name = "FSM_CACHED_KEY")
|
||||
@ApiParam(value = "缓存KEY")
|
||||
private String fsmCachedKey;
|
||||
|
||||
@Column(name = "HANDLE_STATUS")
|
||||
@ApiParam(value = "处理状态")
|
||||
private Integer handleStatus;
|
||||
|
||||
@Column(name = "ALARM_ERROR_TIME")
|
||||
@ApiParam("安灯异常时间")
|
||||
public String alarmErrorTime;
|
||||
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package cn.estsh.i3plus.pojo.andon.model;
|
||||
|
||||
import cn.estsh.i3plus.pojo.andon.bean.AndonManageRouteErrorRecord;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author wangjie
|
||||
* @date 2020/2/12 17:41
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@ApiModel("安灯作业流程异常记录model")
|
||||
public class AndonManageRouteErrorRecordModel extends AndonManageRouteErrorRecord implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -3351535059161071801L;
|
||||
|
||||
@ApiParam("安灯类型名称")
|
||||
private String alarmName;
|
||||
|
||||
@ApiParam(value = "安灯子类型名称")
|
||||
private String alarmDetailName;
|
||||
|
||||
@ApiParam(value = "安灯来源类型")
|
||||
private String sourceTypeName;
|
||||
|
||||
@ApiParam(value = "信息类型")
|
||||
private String msgTypeName;
|
||||
|
||||
@ApiParam(value = "处理状态")
|
||||
private String handleStatusName;
|
||||
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package cn.estsh.i3plus.pojo.andon.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author wangjie
|
||||
* @date 2020/2/12 17:41
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@ApiModel("安灯事件界面配置MODEL")
|
||||
public class AndonStatusInterfaceCfgModel implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -4504617079257753276L;
|
||||
|
||||
@ApiParam("界面代码")
|
||||
private String value;
|
||||
|
||||
@ApiParam("界面名称")
|
||||
private String description;
|
||||
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package cn.estsh.i3plus.pojo.andon.model;
|
||||
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description : 工位请求bean
|
||||
* @Reference :
|
||||
* @Author : wangjie
|
||||
* @CreateDate : 2019-04-19
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
public class StationRequestBean extends StationRequestBeanAb implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -3122891627710528829L;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "StationRequestBean{" +
|
||||
"actorReceiveStrategyClass='" + get(actorReceiveStrategyClass) + '\'' +
|
||||
", stationRequestBeanAbClass='" + get(stationRequestBeanAbClass) + '\'' +
|
||||
", fsmCachedKey='" + get(fsmCachedKey) + '\'' +
|
||||
", organizeCode='" + get(organizeCode) + '\'' +
|
||||
", userInfo='" + get(userInfo) + '\'' +
|
||||
", msgType='" + get(msgType) + '\'' +
|
||||
", areaCode='" + get(areaCode) + '\'' +
|
||||
", workCenterCode='" + get(workCenterCode) + '\'' +
|
||||
", workCellCode='" + get(workCellCode) + '\'' +
|
||||
", alarmCode='" + get(alarmCode) + '\'' +
|
||||
", sourceType='" + get(sourceType) + '\'' +
|
||||
", alarmDetailCode='" + get(alarmDetailCode) + '\'' +
|
||||
", andonOrderNo='" + get(andonOrderNo) + '\'' +
|
||||
", msgData=" + get(msgData) +
|
||||
", fsmList=" + get(fsmList) +
|
||||
", curFsm=" + get(curFsm) +
|
||||
", triggerEvent='" + get(triggerEvent) + '\'' +
|
||||
", alarmErrorTime='" + get(alarmErrorTime) + '\'' +
|
||||
'}';
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,91 @@
|
||||
package cn.estsh.i3plus.pojo.andon.model;
|
||||
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description : 工位请求bean
|
||||
* @Reference :
|
||||
* @Author : wangjie
|
||||
* @CreateDate : 2019-04-19
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
public abstract class StationRequestBeanAb implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -8537547029096794087L;
|
||||
|
||||
@ApiParam("ACTOR接收策略类名")
|
||||
public String actorReceiveStrategyClass;
|
||||
|
||||
@ApiParam("工位请求bean子类")
|
||||
public String stationRequestBeanAbClass;
|
||||
|
||||
@ApiParam("缓存数据KEY")
|
||||
public String fsmCachedKey;
|
||||
|
||||
@ApiParam("组织代码")
|
||||
public String organizeCode;
|
||||
|
||||
@ApiParam("用户信息")
|
||||
public String userInfo;
|
||||
|
||||
@ApiParam("消息类型")
|
||||
public String msgType;
|
||||
|
||||
@ApiParam("区域代码")
|
||||
public String areaCode;
|
||||
|
||||
@ApiParam("工作中心代码")
|
||||
public String workCenterCode;
|
||||
|
||||
@ApiParam("工作单元代码")
|
||||
public String workCellCode;
|
||||
|
||||
@ApiParam(value = "安灯类型")
|
||||
public String alarmCode;
|
||||
|
||||
@ApiParam(value = "安灯来源类型")
|
||||
public String sourceType;
|
||||
|
||||
@ApiParam(value = "安灯子类型编码")
|
||||
public String alarmDetailCode;
|
||||
|
||||
@ApiParam(value = "安灯队列编号")
|
||||
public String andonOrderNo;
|
||||
|
||||
@ApiParam(value = "安灯事件")
|
||||
public String alarmStatus;
|
||||
|
||||
@ApiParam(value = "安灯事件名称(呼叫 响应 解决 撤销 等)")
|
||||
public String alarmStatusName;
|
||||
|
||||
@ApiParam("消息数据")
|
||||
public Map<String, Object> msgData = new HashMap<>();
|
||||
|
||||
@ApiParam("流程状态集合")
|
||||
public List<FsmModel> fsmList;
|
||||
|
||||
@ApiParam("当前流程状态")
|
||||
public FsmModel curFsm;
|
||||
|
||||
@ApiParam("当前触发事件")
|
||||
public String triggerEvent;
|
||||
|
||||
@ApiParam("安灯异常时间")
|
||||
public String alarmErrorTime;
|
||||
|
||||
public String get(Object obj) {
|
||||
if (null == obj) {
|
||||
return "";
|
||||
} else {
|
||||
return obj.toString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.pojo.andon.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.andon.bean.AndonManageRouteErrorRecord;
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wangjie
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface IAndonManageRouteErrorRecordRepository extends BaseRepository<AndonManageRouteErrorRecord, Long> {
|
||||
}
|
Loading…
Reference in New Issue