Finish Task #2094 Cost:16h

yun-zuoyi
宋军超 5 years ago
parent 7982cefc1e
commit d18beff50c

@ -4147,4 +4147,50 @@ public class MesPcnEnumUtil {
return tmp; return tmp;
} }
} }
/**
* plc
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_PLC_STATUS {
UN_CONNECT(0, "断开"),
CONNECT(1, "连接");
private int value;
private String description;
MES_PLC_STATUS(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
public static 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;
}
}
} }

@ -0,0 +1,64 @@
package cn.estsh.i3plus.pojo.mes.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
@Data
public class PlcEquStatusModel implements Serializable {
// 主站/从站
@ApiParam("站位")
private String stationPosition;
// 站位IP
@ApiParam("IP地址")
private String ipAddress;
// IP状态 -- 连接/断开
@ApiParam("IP状态")
private Integer ipStatus;
// 电检设备名称
@ApiParam("电检设备名称")
private String electricalEqu;
// 电检设备状态哦 -- 连接/断开
@ApiParam("电检设备状态")
private Integer electricalEquStatus;
// 产线状态
@ApiParam("产线状态")
private Integer workCenterStatus;
@ApiParam("停机类型")
private Integer stopType;
@ApiParam("产品条码")
private String productSn;
@ApiParam("过程条码")
private String serialNumber;
@ApiParam("物料号")
private String partNo;
@ApiParam("物料名称")
private String partName;
@ApiParam("工作中心代码")
private String workCenterCode;
@ApiParam("工作单元代码")
private String workCellCode;
@ApiParam("停机开始时间")
private String stopStartTime;
@ApiParam("停机结束时间")
private String stopEndTime;
@ApiParam("停机原因")
private String stopReason;
}

@ -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.MesEquipment;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : jack.jia
* @CreateDate : 2019-04-02
* @Modify:
**/
@Repository
public interface EquOperationStatusMonitorRepository extends BaseRepository<MesEquipment, Long> {
}
Loading…
Cancel
Save