From 69a9c53039fc5768c5dec6f7dec0c9bdf0cb62e8 Mon Sep 17 00:00:00 2001 From: lsh <lsh@163.com> Date: 星期三, 18 十二月 2024 13:30:37 +0800 Subject: [PATCH] # --- src/main/java/com/zy/common/model/LocDto.java | 45 ++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 42 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zy/common/model/LocDto.java b/src/main/java/com/zy/common/model/LocDto.java index 1786388..3fb9234 100644 --- a/src/main/java/com/zy/common/model/LocDto.java +++ b/src/main/java/com/zy/common/model/LocDto.java @@ -1,5 +1,7 @@ package com.zy.common.model; +import com.core.common.Cools; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.util.List; @@ -22,9 +24,20 @@ 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() { } @@ -57,9 +70,35 @@ return this.matnr + "锛�" + this.maktx + "锛�"; } - public void setLack(boolean lack) { - this.lack = lack; - this.locNo = "缂鸿揣"; + 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