Merge branches 'dev' and 'test' of http://git.estsh.com/i3-IMPP/i3plus-pojo into test

yun-zuoyi
许心洁 6 years ago
commit 003ed70f98

@ -0,0 +1,46 @@
package cn.estsh.i3plus.pojo.andon.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
/**
* @Description: model
* @Reference:
* @Author: Crish
* @CreateDate:2019-11-12-10:21
* @Modify:
**/
@Data
public class AndonBoardModel {
@ApiParam("安灯类型")
private String alarmCode;
@ApiParam("安灯类型名称")
private String alarmName;
@ApiParam("安灯正常处理的次数")
private Integer inTime;
@ApiParam("安灯超时次数")
private Integer overTime;
@ApiParam("安灯总次数")
private Integer totalTime;
public int getTotalTimeVal() {
return totalTime == null ? 0 : totalTime;
}
public int getOverTimeVal() {
return overTime == null ? 0 : overTime;
}
public int getInTime() {
return inTime == null ? 0 : inTime;
}
}

@ -2055,4 +2055,38 @@ public class MesPcnEnumUtil {
}
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PRODUCT_PATTERN_PARAMS {
MATCH_WORK_ORDER(10, "匹配工单"),
API_WORK_ORDER(20, "读取接口工单"),
SN_WORK_ORDER(30, "获取条码对应工单");
private int value;
private String description;
PRODUCT_PATTERN_PARAMS(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;
}
}
}

Loading…
Cancel
Save