yun-zuoyi
Jack.lv 6 years ago
commit 1e6db01537

@ -35,9 +35,9 @@ public class SnowflakeIdMaker {
private long twepoch = 1288834974657L;
private long workerIdBits = 10L;
private long workerIdBits = 5L;
private long datacenterIdBits = 5L;
private long maxWorkerId = -1L ^ (-1L << workerIdBits); //1023
private long maxWorkerId = -1L ^ (-1L << workerIdBits); //30
private long maxDatacenterId = -1L ^ (-1L << datacenterIdBits); //30
private long sequenceBits = 12L;

@ -958,40 +958,6 @@ public class WmsEnumUtil {
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SN_QUALITY_STATUS {
NORMAL(10, "合格"), ABNORMAL(20, "不合格"), ISOLATED(30, "隔离");
private int value;
private String description;
SN_QUALITY_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;
}
}
/**
*
* 1=10=20=30=40=50=60=70=
*/

Loading…
Cancel
Save