From 30332e7ecfa65f8c419271aeb79641d432c872d7 Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期三, 18 十二月 2024 14:39:45 +0800 Subject: [PATCH] 库区规则表 --- src/main/java/com/zy/common/model/LocDto.java | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 50 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/common/model/LocDto.java b/src/main/java/com/zy/common/model/LocDto.java index f03977d..3fb9234 100644 --- a/src/main/java/com/zy/common/model/LocDto.java +++ b/src/main/java/com/zy/common/model/LocDto.java @@ -1,6 +1,10 @@ package com.zy.common.model; +import com.core.common.Cools; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; + +import java.util.List; /** * Created by vincent on 2022/3/28 @@ -19,6 +23,21 @@ private String orderNo; private Double anfme; + + /** + * 鏄惁鍐荤粨 "鏄惁鍐荤粨,0.鏈喕缁擄紝1.宸插喕缁�" + */ + private Integer frozen = 1; + + private Integer frozenLoc = 1; + +// private Integer frozen$; + + private boolean lack = false; + + private List<Integer> staNos; + + private Integer staNo; public LocDto() { } @@ -51,4 +70,35 @@ return this.matnr + "锛�" + this.maktx + "锛�"; } + public void setStaNos(List<Integer> staNos) { + this.staNos = staNos; + if (!Cools.isEmpty(staNos)) { + this.staNo = staNos.get(0); + } + } + + public String getFrozen$() { + if (null == this.frozen){ return null; } + switch (this.frozen){ + case 0: + return "姝e父"; + case 1: + return "宸插喕缁�"; + default: + return "姝e父"; + } + } + + public String getFrozenLoc$() { + if (null == this.frozenLoc){ return null; } + switch (this.frozenLoc){ + case 0: + return "姝e父"; + case 1: + return "宸插喕缁�"; + default: + return "姝e父"; + } + } + } -- Gitblit v1.9.1