|
|
|
@ -10,6 +10,40 @@ import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
|
* @Modify:
|
|
|
|
|
**/
|
|
|
|
|
public class WmsEnumUtil {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 交易状态
|
|
|
|
|
*/
|
|
|
|
|
public enum TRANS_STATUS {
|
|
|
|
|
CREATE(1, "创建"), FINISH(2, "完成"),FAIL(3,"失败");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
private TRANS_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: success_queue
|
|
|
|
|