yun-zuoyi
王杰 5 years ago
parent 669874cb9b
commit 8ace0c363d

@ -927,6 +927,9 @@ public class PtlPcnEnumUtil {
}
}
/**
* PTL_
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum AREA_SECTION_TASK_DETAIL_STATUS {
CREATE(10, "CREATE", "创建"),
@ -956,67 +959,11 @@ public class PtlPcnEnumUtil {
}
/**
* PTL_
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TASK_DETAIL_STATUS {
CREATE(10, "CREATE", "新建"),
RECEIPT_FINISH(20, "RECEIPT_FINISH", "已完成");
private int value;
private String code;
private String description;
TASK_DETAIL_STATUS(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 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 int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
}
/**
* PTL_
* PTL_
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum AREA_SECTION_TASK_STATUS {
CREATE(10, "CREATE", "新建"),
RECEIPT(20, "RECEIPT", "执行中"),
RECEIPT_FINISH(30, "RECEIPT_FINISH", "已完成");
private int value;
@ -1525,64 +1472,10 @@ public class PtlPcnEnumUtil {
return valueOf(val);
}
}
/**
* (ASN,PO,MOVE,QC)
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MASTER_ORDER_STATUS {
CREATE(10, "CREATE", "创建"),
RECEIPT(20, "IN_PROGRESS", "处理中"),
RECEIPT_FINISH(30, "COMPLETED", "已完成"),
CANCELLED(40, "CANCELLED", "已取消");
private int value;
private String code;
private String description;
MASTER_ORDER_STATUS(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 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 int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
}
/**
* (ASN,PO,MOVE,QC)
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum AREA_SECTION_TASK_TYPE {
@ -1636,14 +1529,14 @@ public class PtlPcnEnumUtil {
return valueOf(val);
}
}
/**
* (ASN,PO,MOVE,QC)
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum AREA_TASK_STATUS {
CREATE(10, "CREATE", "创建"),
RECEIPT(20, "IN_PROGRESS", "处理中"),
RECEIPT_FINISH(30, "COMPLETED", "已完成");
RECEIPT_FINISH(30, "COMPLETED", "完成");
private int value;
private String code;
@ -1693,7 +1586,7 @@ public class PtlPcnEnumUtil {
}
/**
* (ASN,PO,MOVE,QC)
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum AREA_TASK_TYPE {

@ -44,4 +44,7 @@ public class LightOnModel implements Serializable {
@ApiParam("是否熄灯")
private Integer lightFlag;
@ApiParam("状态")
private Integer status;
}

Loading…
Cancel
Save