| package com.zy.asrs.common.domain.dto; | 
|   | 
| import com.zy.asrs.framework.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 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); | 
|         } | 
|     } | 
|   | 
| } |