Merge branch 'dev' of i3-IMPP/i3plus-pojo into test

yun-zuoyi
刘辉 6 years ago committed by nancy.li
commit 83a7a9e988

@ -285,6 +285,26 @@ public class WmsEnumUtil {
} }
return tmp; return tmp;
} }
public static String valueOfDescription(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 String codeOfDescription(String code) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i].description;
}
}
return tmp;
}
} }
/** /**

@ -114,7 +114,7 @@ public class WmsPOMasterDetails extends BaseBean {
*/ */
@Column(name = "ITEM_STATUS") @Column(name = "ITEM_STATUS")
@ApiParam("状态") @ApiParam("状态")
@AnnoOutputColumn(refClass = WmsEnumUtil.MASTER_ORDER_STATUS.class, refForeignKey = "value", value = "description") @AnnoOutputColumn(refClass = WmsEnumUtil.ORDER_DETAILS_STATUS.class, refForeignKey = "value", value = "description")
private Integer itemStatus; private Integer itemStatus;
@Column(name = "SNP", columnDefinition = "decimal(18,8)") @Column(name = "SNP", columnDefinition = "decimal(18,8)")

Loading…
Cancel
Save