yun-zuoyi
alwaysfrin 6 years ago
commit 1c7d601922

@ -2022,18 +2022,17 @@ public class WmsEnumUtil {
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DATA_STATUS { public enum DATA_STATUS {
ENABLE(1, "启用"), ENABLE(1, "启用", "fa fa-success cell-fa fa-check"),
DISABLE(2, "禁用"), DISABLE(2, "禁用", "fa fa-disabled cell-fa fa-times-circle"),
LOCKING(3, "全部"); LOCKING(3, "全部", "fa cell-fa fa-lock");
private int value; private int value;
private String code;
private String description; private String description;
DATA_STATUS() { DATA_STATUS(int value, String code, String description) {
}
DATA_STATUS(int value, String description) {
this.value = value; this.value = value;
this.code = code;
this.description = description; this.description = description;
} }
@ -2045,11 +2044,15 @@ public class WmsEnumUtil {
return description; return description;
} }
public static int descOf(String desc) { public String getCode() {
int tmp = 1; return code;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) { for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) { if (values()[i].value == val) {
tmp = values()[i].value; tmp = values()[i].getCode();
} }
} }
return tmp; return tmp;

@ -56,6 +56,11 @@ public class WmsActionGroup extends BaseBean {
@ApiParam(value = "结束组件编号", example = "0") @ApiParam(value = "结束组件编号", example = "0")
private Long endAmId; private Long endAmId;
// 1=true, 2 = false
@Column(name="AUTO_INIT")
@ApiParam(value = "任务自动初始化", example = "0")
private Integer autoInit;
public Long getInitAmId() { public Long getInitAmId() {
if (initAmId != null) { if (initAmId != null) {
return initAmId.longValue(); return initAmId.longValue();

@ -89,4 +89,12 @@ public class WmsDocMovementMaster extends BaseBean {
@Column(name = "PRIORITY") @Column(name = "PRIORITY")
@ApiParam(value = "优先级", example = "1") @ApiParam(value = "优先级", example = "1")
public Integer priority; public Integer priority;
@Column(name = "CAR_NO")
@ApiParam(value = "车牌号")
private String carNo;
@Column(name = "CUST_ORDER_NO")
@ApiParam(value = "客户单号")
private String custOrderNo;
} }

@ -1423,4 +1423,16 @@ public class WmsHqlPack {
getStringBuilderPack(wmsDataAuth, result); getStringBuilderPack(wmsDataAuth, result);
return result.toString(); return result.toString();
} }
/**
*
* @param taskDetails
* @return
*/
public static String packHqlWmsTaskDetails(WmsTaskDetails taskDetails) {
StringBuffer result = new StringBuffer();
HqlPack.getStringEqualPack(taskDetails.getOrderNo(), "orderNo", result);
getStringBuilderPack(taskDetails, result);
return result.toString();
}
} }

Loading…
Cancel
Save