| 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 | 
|  */ | 
| @Data | 
| public class LocDto { | 
|   | 
|     private String locNo; | 
|   | 
|     private String matnr; | 
|   | 
|     private String maktx; | 
|   | 
|     private String batch; | 
|     private String brand = ""; | 
|     private String standby1 = ""; | 
|     private String standby2 = ""; | 
|     private String standby3 = ""; | 
|   | 
|     private String boxType1 = "1"; | 
|     private String boxType2 = "1"; | 
|     private String boxType3 = "1"; | 
|   | 
|     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() { | 
|     } | 
|   | 
|     public LocDto(String locNo, String matnr, String batch, Double anfme) { | 
|         this.locNo = locNo; | 
|         this.matnr = matnr; | 
|         this.batch = batch; | 
|         this.anfme = anfme; | 
|     } | 
|   | 
|     public LocDto(String locNo, String matnr, String batch, String orderNo, Double anfme) { | 
|         this.locNo = locNo; | 
|         this.matnr = matnr; | 
|         this.batch = batch; | 
|         this.orderNo = orderNo; | 
|         this.anfme = anfme; | 
|     } | 
|   | 
|     public LocDto(String locNo, String matnr, String maktx, String batch, String orderNo, Double anfme) { | 
|         this.locNo = locNo; | 
|         this.matnr = matnr; | 
|         this.maktx = maktx; | 
|         this.batch = batch; | 
|         this.orderNo = orderNo; | 
|         this.anfme = anfme; | 
|     } | 
|   | 
|     public String getTitle() { | 
|         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 "正常"; | 
|             case 1: | 
|                 return "已冻结"; | 
|             default: | 
|                 return "正常"; | 
|         } | 
|     } | 
|   | 
|     public String getFrozenLoc$() { | 
|         if (null == this.frozenLoc){ return null; } | 
|         switch (this.frozenLoc){ | 
|             case 0: | 
|                 return "正常"; | 
|             case 1: | 
|                 return "已冻结"; | 
|             default: | 
|                 return "正常"; | 
|         } | 
|     } | 
|   | 
| } |