【PTL_区段亮灯任务明细状态】

yun-zuoyi
陈思洁 5 years ago
parent e4ba6e21c8
commit 40094365ce

@ -482,6 +482,16 @@ public class PtlPcnEnumUtil {
this.description = 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 int getValue() {
return value;
}
@ -722,4 +732,115 @@ 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_
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum AREA_SECTION_TASKL_STATUS {
CREATE(10, "CREATE", "新建"),
RECEIPT(20, "RECEIPT", "执行中"),
RECEIPT_FINISH(30, "RECEIPT_FINISH", "已完成");
private int value;
private String code;
private String description;
AREA_SECTION_TASKL_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);
}
}
}

@ -60,7 +60,7 @@ public class PtlAreaSectionTaskDetail extends BaseBean implements Serializable {
@Column(name = "QTY")
@ApiParam("拣货数量")
private Integer qty;
private Integer qty = 0;
@Column(name = "LIGHT_MODE")
@ApiParam("亮灯方式")

@ -0,0 +1,17 @@
package cn.estsh.i3plus.pojo.ptl.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.ptl.bean.PtlAreaSectionTask;
import cn.estsh.i3plus.pojo.ptl.bean.PtlAreaTask;
/**
* @Description :
* @author : jessica.chen
* @date : 2020-02-26 13:49
* @desc
*/
public interface PtlAreaSectionTaskRepository extends BaseRepository<PtlAreaSectionTask, Long> {
}

@ -0,0 +1,17 @@
package cn.estsh.i3plus.pojo.ptl.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.ptl.bean.PtlActor;
import cn.estsh.i3plus.pojo.ptl.bean.PtlAreaTask;
/**
* @Description :
* @author : jessica.chen
* @date : 2020-02-26 13:49
* @desc
*/
public interface PtlAreaTaskRepository extends BaseRepository<PtlAreaTask, Long> {
}
Loading…
Cancel
Save