库存预警看板开发

yun-zuoyi
sky.meng 6 years ago
parent 854ee5b3cf
commit 05c56e46b4

@ -2638,4 +2638,30 @@ public class WmsEnumUtil {
return tmp; return tmp;
} }
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum STOCK_LEVEL_STATUS {
LOW("LOW", "低于最低库存"),
HIGH("HIGH", "高于最高库存"),
NORMAL("NORMAL", "安全库存");
private String code;
private String description;
STOCK_LEVEL_STATUS(String code, String description) {
this.code = code;
this.description = description;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
}
} }

@ -11,6 +11,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Table; import javax.persistence.Table;
import javax.persistence.Transient;
/** /**
* @Description : * @Description :
@ -126,4 +127,22 @@ public class WmsPart extends BaseBean {
@Column(name="OUT_CLOSE_FLAG") @Column(name="OUT_CLOSE_FLAG")
@ApiParam("項目结算标识") @ApiParam("項目结算标识")
private String outCloseFlag; private String outCloseFlag;
@Transient
@ApiParam("总数量")
private Double qty;
@Transient
@ApiParam("库存水平")
private String stockLevelStatus;
public WmsPart(){}
public WmsPart(String partNo, String partName, Double maxQty, Double minQty, Double cqty){
this.partNo = partNo;
this.partName = partName;
this.max = maxQty;
this.min = minQty;
this.qty = cqty;
}
} }

@ -69,7 +69,7 @@ public class WmsPoAsnRecvModel extends BaseBean implements Comparable<WmsPoAsnRe
@Override @Override
public int compareTo(WmsPoAsnRecvModel o) { public int compareTo(WmsPoAsnRecvModel o) {
return getLocalTime(this.getPlanTime()).isAfter(getLocalTime(o.getPlanTime()))? 1 : 0; return getLocalTime(this.getPlanTime()).isAfter(getLocalTime(o.getPlanTime()))? 1 : -1;
} }
public static LocalTime getLocalTime(String planTime){ public static LocalTime getLocalTime(String planTime){

Loading…
Cancel
Save