设备自动报警
parent
814d22fe09
commit
c117515b69
@ -0,0 +1,43 @@
|
||||
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.Index;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/10/16 2:42 PM
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_EQU_ALARM_LOG", indexes = {
|
||||
@Index(columnList = "CREATE_DATE_TIME"),
|
||||
@Index(columnList = "WORK_CENTER_CODE")
|
||||
})
|
||||
@Api("设备自动报警日志")
|
||||
public class MesEquAlarmLog extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -494552645021304934L;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "MESSAGE")
|
||||
@ApiParam("异常信息")
|
||||
private String message;
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
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 java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/9/29 17:25
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_LINE_OPERATION")
|
||||
@Api(value = "产线 开线或停线")
|
||||
public class MesLineOperation extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -710375930652577157L;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工位")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "OBJECT_TYPE")
|
||||
@ApiParam("对象类型")
|
||||
private Integer objectType;
|
||||
|
||||
/**
|
||||
* MesDataSource dsCode 或者plcCode
|
||||
*/
|
||||
@Column(name = "OBJECT_CODE")
|
||||
@ApiParam("对象代码")
|
||||
private String objectCode;
|
||||
|
||||
@Column(name = "OP_TYPE")
|
||||
@ApiParam("操作类型 开线、停线")
|
||||
private Integer opType;
|
||||
|
||||
/**
|
||||
* 仅db jdbc 进行行更新 example:update a set b=:b
|
||||
*/
|
||||
@Column(name = "DB_OP_CMD")
|
||||
@ApiParam("db操作指令")
|
||||
private String dbOpCmd;
|
||||
|
||||
/**
|
||||
* 反写plc的值
|
||||
*/
|
||||
@Column(name = "PLC_OP_VALUE")
|
||||
@ApiParam("plc更新值")
|
||||
private String plcOpValue;
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
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.Index;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/10/16 2:42 PM
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_WORK_CENTER_MONITOR_LOG", indexes = {
|
||||
@Index(columnList = "CREATE_DATE_TIME"),
|
||||
@Index(columnList = "WORK_CENTER_CODE")
|
||||
})
|
||||
@Api("工位监控异常信息")
|
||||
public class MesWorkCenterMonitorLog extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 1432794181428753903L;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "WORK_ORDER_NO")
|
||||
@ApiParam("工单")
|
||||
private String workOrderNo;
|
||||
|
||||
@Column(name = "PROCESS_CODE")
|
||||
@ApiParam("工序")
|
||||
private String processCode;
|
||||
|
||||
@Column(name = "ROUTE_CODE")
|
||||
@ApiParam("流程")
|
||||
private String routeCode;
|
||||
|
||||
@Column(name = "MESSAGE")
|
||||
@ApiParam("异常信息")
|
||||
private String message;
|
||||
|
||||
@Column(name = "BUSI_TYPE")
|
||||
@ApiParam("业务类型")
|
||||
private Integer busiType;
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.MesPcnEnumUtil;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/9/29 11:42
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
public class EquAutoAlarmModel implements Serializable {
|
||||
private static final long serialVersionUID = -8671950864141698966L;
|
||||
|
||||
private String org;
|
||||
|
||||
private String workCenterCode;
|
||||
|
||||
private Integer takt;
|
||||
|
||||
private String plcTagAddr;
|
||||
|
||||
private String levelCode;
|
||||
|
||||
private String startTime;
|
||||
|
||||
private String endTime;
|
||||
|
||||
private Integer isFinished = MesPcnEnumUtil.EQU_AUTO_ALARM_TYPE.NORMAL.getValue();
|
||||
|
||||
}
|
@ -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.MesLineOperation;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface MesLineOperationRepository extends BaseRepository<MesLineOperation, Long> {
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkCenterMonitorLog;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/9/27 1:58 PM
|
||||
* @Description:
|
||||
**/
|
||||
public interface MesWorkCenterMonitorLogRepository extends BaseRepository<MesWorkCenterMonitorLog, Long> {
|
||||
}
|
Loading…
Reference in New Issue