| package com.zy.common.model; | 
|   | 
| import com.core.common.Cools; | 
| 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 orderNo; | 
|   | 
|     private Double anfme; | 
|   | 
|     private Double stock; | 
|   | 
|     private boolean lack = false; | 
|   | 
|     private List<Integer> staNos; | 
|   | 
|     private List<String> agvStaNos; | 
|   | 
|     private Integer staNo; | 
|   | 
|     private String agvStaNo; | 
|   | 
|     private String specs; | 
|   | 
|     //销售订单号 | 
|     private String csocode; | 
|   | 
|     //销售订单行号 | 
|     private String isoseq; | 
|   | 
|     //料箱码 | 
|     private String containerCode; | 
|   | 
|     public LocDto() { | 
|     } | 
|   | 
|     public LocDto(String locNo, Double anfme, String matnr, String batch, String csocode, String isoseq, String containerCode) { | 
|         this.locNo = locNo; | 
|         this.anfme = anfme; | 
|         this.matnr = matnr; | 
|         this.batch = batch; | 
|         this.csocode = csocode; | 
|         this.isoseq = isoseq; | 
|         this.containerCode = containerCode; | 
|     } | 
|   | 
|     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 void setAgvStaNos(List<String> agvStaNos){ | 
|         this.agvStaNos = agvStaNos; | 
|         if(!Cools.isEmpty(agvStaNos)){ | 
|             this.agvStaNo = agvStaNos.get(0); | 
|         } | 
|     } | 
|   | 
| } |