|
|
|
@ -10,6 +10,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
|
* @Modify:
|
|
|
|
|
**/
|
|
|
|
|
public class WmsEnumUtil {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 拆分规则
|
|
|
|
|
*/
|
|
|
|
@ -1883,4 +1884,44 @@ public class WmsEnumUtil {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 库存交易记录生成标记
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum TRANS_QUAN_GENERAL_TAG {
|
|
|
|
|
MINUS(-1, "MINUS", "一条:负"), ZERO(0, "ZERO", "一条:0"), PLUS(1, "PLUS", "一条:正"), TWO(2, "TWO", "两条:一正一负");
|
|
|
|
|
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
int value;
|
|
|
|
|
|
|
|
|
|
TRANS_QUAN_GENERAL_TAG(int value, String code, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static TRANS_QUAN_GENERAL_TAG codeOf(String code) {
|
|
|
|
|
int tmp = 1;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].code.equals(code)) {
|
|
|
|
|
return values()[i];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|