excel导出优化--单据状态显示枚举描述

yun-zuoyi
刘敏 6 years ago
parent f0fba5e23a
commit 241a478f65

@ -228,6 +228,10 @@ public class WmsEnumUtil {
} }
return tmp; return tmp;
} }
public static String valueOfDescription(int val) {
return valueOf(val);
}
} }
/** /**
@ -514,6 +518,10 @@ public class WmsEnumUtil {
} }
return tmp; return tmp;
} }
public static String valueOfDescription(int val) {
return valueOf(val);
}
} }
/** /**
@ -589,13 +597,7 @@ public class WmsEnumUtil {
} }
public static String valueOfDescription(int val) { public static String valueOfDescription(int val) {
String tmp = null; return valueOf(val);
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
} }
} }
@ -873,13 +875,7 @@ public class WmsEnumUtil {
} }
public static String valueOfDescription(int val) { public static String valueOfDescription(int val) {
String tmp = null; return valueOf(val);
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
} }
} }
@ -925,13 +921,7 @@ public class WmsEnumUtil {
} }
public static String valueOfDescription(int val) { public static String valueOfDescription(int val) {
String tmp = null; return valueOf(val);
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) { public static int descOf(String desc) {
@ -985,13 +975,7 @@ public class WmsEnumUtil {
} }
public static String valueOfDescription(int val) { public static String valueOfDescription(int val) {
String tmp = null; return valueOf(val);
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) { public static int descOf(String desc) {
@ -1053,14 +1037,9 @@ public class WmsEnumUtil {
} }
return tmp; return tmp;
} }
public static String valueOfDescription(int val) { public static String valueOfDescription(int val) {
String tmp = null; return valueOf(val);
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
} }
} }
@ -1109,13 +1088,7 @@ public class WmsEnumUtil {
} }
public static String valueOfDescription(int val) { public static String valueOfDescription(int val) {
String tmp = null; return valueOf(val);
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
} }
} }
@ -1157,13 +1130,7 @@ public class WmsEnumUtil {
} }
public static String valueOfDescription(int val) { public static String valueOfDescription(int val) {
String tmp = null; return valueOf(val);
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
} }
} }
@ -1238,13 +1205,7 @@ public class WmsEnumUtil {
} }
public static String valueOfDescription(int val) { public static String valueOfDescription(int val) {
String tmp = null; return valueOf(val);
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
} }
} }
@ -1320,6 +1281,10 @@ public class WmsEnumUtil {
} }
return tmp; return tmp;
} }
public static String valueOfDescription(int val) {
return valueOf(val);
}
} }
/** /**
@ -2742,13 +2707,7 @@ public class WmsEnumUtil {
} }
public static String valueOfDescription(int val) { public static String valueOfDescription(int val) {
String tmp = null; return valueOf(val);
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
} }
} }
@ -3037,13 +2996,7 @@ public class WmsEnumUtil {
} }
public static String valueOfDescription(int val) { public static String valueOfDescription(int val) {
String tmp = null; return valueOf(val);
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
} }
} }
@ -3149,6 +3102,10 @@ public class WmsEnumUtil {
} }
return tmp; return tmp;
} }
public static String valueOfDescription(int val) {
return valueOf(val);
}
} }
/** /**
@ -3368,13 +3325,7 @@ public class WmsEnumUtil {
} }
public static String valueOfDescription(int val) { public static String valueOfDescription(int val) {
String tmp = null; return valueOf(val);
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) { public static int descOf(String desc) {

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.wms.bean; package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -102,6 +104,7 @@ public class WmsDocMovementDetails extends BaseBean {
*/ */
@Column(name = "ITEM_STATUS") @Column(name = "ITEM_STATUS")
@ApiParam(value = "状态", example = "1") @ApiParam(value = "状态", example = "1")
@AnnoOutputColumn(refClass = WmsEnumUtil.MASTER_ORDER_STATUS.class,refForeignKey = "value",value = "description")
private Integer itemStatus; private Integer itemStatus;
/** /**
@ -109,6 +112,7 @@ public class WmsDocMovementDetails extends BaseBean {
*/ */
@Column(name = "IS_FREE") @Column(name = "IS_FREE")
@ApiParam(value = "是否免费", example = "1") @ApiParam(value = "是否免费", example = "1")
@AnnoOutputColumn(refClass = WmsEnumUtil.TRUE_OR_FALSE.class,refForeignKey = "value",value = "description")
public Integer isFree; public Integer isFree;
@Column(name = "REMARK") @Column(name = "REMARK")
@ -185,10 +189,12 @@ public class WmsDocMovementDetails extends BaseBean {
@Transient @Transient
@ApiParam("任务状态") @ApiParam("任务状态")
@AnnoOutputColumn(refClass = WmsEnumUtil.IS_GENERAL_TASK.class,refForeignKey = "value",value = "description")
private Integer isTask; private Integer isTask;
@Transient @Transient
@ApiParam("主表单据状态") @ApiParam("主表单据状态")
@AnnoOutputColumn(refClass = WmsEnumUtil.MASTER_ORDER_STATUS.class,refForeignKey = "value",value = "description")
private Integer orderMasterStatus; private Integer orderMasterStatus;
public String getRecommondLot() { public String getRecommondLot() {
@ -218,6 +224,7 @@ public class WmsDocMovementDetails extends BaseBean {
@Transient @Transient
@ApiParam("业务类型") @ApiParam("业务类型")
@AnnoOutputColumn(refClass = WmsEnumUtil.OUT_MOVEMENT_BUSI_TYPE.class,refForeignKey = "value",value = "description")
public Integer busiType; public Integer busiType;
@Column(name = "IS_SN") @Column(name = "IS_SN")

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.wms.bean; package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -43,6 +45,7 @@ public class WmsDocMovementMaster extends BaseBean {
*/ */
@Column(name = "MOVE_TYPE") @Column(name = "MOVE_TYPE")
@ApiParam("移动类型") @ApiParam("移动类型")
@AnnoOutputColumn(refClass = WmsEnumUtil.OUT_MOVEMENT_MOVE_TYPE.class,refForeignKey = "value",value = "description")
public Integer moveType; public Integer moveType;
/** /**
* :RC=,QC=,IN=,ZI=,ZO=, * :RC=,QC=,IN=,ZI=,ZO=,
@ -51,6 +54,7 @@ public class WmsDocMovementMaster extends BaseBean {
*/ */
@Column(name = "BUSI_TYPE") @Column(name = "BUSI_TYPE")
@ApiParam("业务类型") @ApiParam("业务类型")
@AnnoOutputColumn(refClass = WmsEnumUtil.OUT_MOVEMENT_BUSI_TYPE.class,refForeignKey = "value",value = "description")
public Integer busiType; public Integer busiType;
/** /**
@ -59,6 +63,7 @@ public class WmsDocMovementMaster extends BaseBean {
*/ */
@Column(name = "ORDER_STATUS") @Column(name = "ORDER_STATUS")
@ApiParam(value = "状态", example = "1") @ApiParam(value = "状态", example = "1")
@AnnoOutputColumn(refClass = WmsEnumUtil.MASTER_ORDER_STATUS.class,refForeignKey = "value",value = "description")
public Integer orderStatus; public Integer orderStatus;
@Column(name = "CUST_NO") @Column(name = "CUST_NO")
@ -90,6 +95,7 @@ public class WmsDocMovementMaster extends BaseBean {
@Column(name = "IS_TASK") @Column(name = "IS_TASK")
@ApiParam(value = "是否生产任务", example = "1") @ApiParam(value = "是否生产任务", example = "1")
@AnnoOutputColumn(refClass = WmsEnumUtil.IS_GENERAL_TASK.class,refForeignKey = "value",value = "description")
public Integer isTask; public Integer isTask;
@Column(name = "PRIORITY") @Column(name = "PRIORITY")
@ -117,6 +123,7 @@ public class WmsDocMovementMaster extends BaseBean {
@Column(name = "IS_PART") @Column(name = "IS_PART")
@ApiParam(value = "是否散件", example = "1") @ApiParam(value = "是否散件", example = "1")
@AnnoOutputColumn(refClass = WmsEnumUtil.TRUE_OR_FALSE.class,refForeignKey = "value",value = "description")
private Integer isPart; private Integer isPart;
@Column(name = "SRC_WH_NO") @Column(name = "SRC_WH_NO")

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.wms.bean; package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -65,6 +67,7 @@ public class WmsDocMovementSn extends BaseBean {
*/ */
@Column(name="SN_STATUS") @Column(name="SN_STATUS")
@ApiParam(value = "操作状态", example = "10") @ApiParam(value = "操作状态", example = "10")
@AnnoOutputColumn(refClass = WmsEnumUtil.STOCK_SN_STATUS.class,refForeignKey = "value",value = "description")
public Integer snStatus; public Integer snStatus;
@Column(name="SN") @Column(name="SN")

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.wms.bean; package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -40,6 +42,7 @@ public class WmsQCMaster extends BaseBean {
*/ */
@Column(name = "ORDER_TYPE") @Column(name = "ORDER_TYPE")
@ApiParam(value = "业务类型", example = "0") @ApiParam(value = "业务类型", example = "0")
@AnnoOutputColumn(refClass = WmsEnumUtil.QC_INFO_TYPE.class,refForeignKey = "value",value = "description")
public Integer orderType; public Integer orderType;
/** /**
@ -47,6 +50,7 @@ public class WmsQCMaster extends BaseBean {
*/ */
@Column(name = "ORDER_STATUS") @Column(name = "ORDER_STATUS")
@ApiParam(value = "状态", example = "1") @ApiParam(value = "状态", example = "1")
@AnnoOutputColumn(refClass = WmsEnumUtil.MASTER_ORDER_STATUS.class,refForeignKey = "value",value = "description")
public Integer orderStatus; public Integer orderStatus;
@Column(name = "REMARK") @Column(name = "REMARK")
@ -83,9 +87,11 @@ public class WmsQCMaster extends BaseBean {
@Column(name = "IS_TASK") @Column(name = "IS_TASK")
@ApiParam(value = "是否生产任务", example = "1") @ApiParam(value = "是否生产任务", example = "1")
@AnnoOutputColumn(refClass = WmsEnumUtil.IS_GENERAL_TASK.class,refForeignKey = "value",value = "description")
public Integer isTask; public Integer isTask;
@Column(name="IS_PART") @Column(name="IS_PART")
@ApiParam(value = "是否散件", example = "2") @ApiParam(value = "是否散件", example = "2")
@AnnoOutputColumn(refClass = WmsEnumUtil.TRUE_OR_FALSE.class,refForeignKey = "value",value = "description")
public Integer isPart; public Integer isPart;
} }

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.wms.bean; package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -116,18 +118,21 @@ public class WmsStockSn extends BaseBean {
*/ */
@Column(name = "QC_STATUS") @Column(name = "QC_STATUS")
@ApiParam(value = "质检状态", example = "0") @ApiParam(value = "质检状态", example = "0")
@AnnoOutputColumn(refClass = WmsEnumUtil.STOCK_SN_QC_STATUS.class,refForeignKey = "value",value = "description")
private Integer qcStatus; private Integer qcStatus;
/** /**
* 1=10=20=30=40=50=60=70= * 1=10=20=30=40=50=60=70=
*/ */
@Column(name = "SN_STATUS") @Column(name = "SN_STATUS")
@ApiParam(value = "条码状态", example = "0") @ApiParam(value = "条码状态", example = "0")
@AnnoOutputColumn(refClass = WmsEnumUtil.STOCK_SN_STATUS.class,refForeignKey = "value",value = "description")
private Integer snStatus; private Integer snStatus;
/** /**
* 1:2 * 1:2
*/ */
@Column(name = "PRINTED") @Column(name = "PRINTED")
@ApiParam(value = "是否打印", example = "0") @ApiParam(value = "是否打印", example = "0")
@AnnoOutputColumn(refClass = WmsEnumUtil.TRUE_OR_FALSE.class,refForeignKey = "value",value = "description")
private Integer printed; private Integer printed;
@Column(name = "PDATE") @Column(name = "PDATE")
@ -155,6 +160,7 @@ public class WmsStockSn extends BaseBean {
@Column(name = "SN_TYPE") @Column(name = "SN_TYPE")
@ApiParam(value = "条码类型", example = "10") @ApiParam(value = "条码类型", example = "10")
@AnnoOutputColumn(refClass = WmsEnumUtil.WMS_STOCK_TYPE.class,refForeignKey = "value",value = "description")
private Integer snType = 10; private Integer snType = 10;
@ApiParam(value = "仓库名称") @ApiParam(value = "仓库名称")

Loading…
Cancel
Save