|  |  |  | 
|---|
|  |  |  | package com.zy.common.model; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.core.common.Cools; | 
|---|
|  |  |  | import lombok.AllArgsConstructor; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | public class LocDto { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private Long hostId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private String locNo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private String matnr; | 
|---|
|  |  |  | 
|---|
|  |  |  | private String batch; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private String orderNo; | 
|---|
|  |  |  | private String manu; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //实际出库量 | 
|---|
|  |  |  | private Double anfme; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //所需出库量 | 
|---|
|  |  |  | private Double needQty; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private boolean lack = false; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private List<Integer> staNos; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private Integer staNo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public LocDto() { | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public LocDto(String locNo, String matnr, String batch, Double anfme) { | 
|---|
|  |  |  | public LocDto(Long hostId,String locNo, String matnr, String batch, Double anfme,String manu) { | 
|---|
|  |  |  | this.locNo = locNo; | 
|---|
|  |  |  | this.matnr = matnr; | 
|---|
|  |  |  | this.batch = batch; | 
|---|
|  |  |  | this.anfme = anfme; | 
|---|
|  |  |  | this.hostId = hostId; | 
|---|
|  |  |  | this.manu = manu; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public LocDto(String locNo, String matnr, String batch, String orderNo, Double anfme) { | 
|---|
|  |  |  | public LocDto(Long hostId,String locNo, String matnr, String batch, String orderNo, Double anfme,String manu) { | 
|---|
|  |  |  | this.locNo = locNo; | 
|---|
|  |  |  | this.matnr = matnr; | 
|---|
|  |  |  | this.batch = batch; | 
|---|
|  |  |  | this.orderNo = orderNo; | 
|---|
|  |  |  | this.anfme = anfme; | 
|---|
|  |  |  | this.hostId = hostId; | 
|---|
|  |  |  | this.manu = manu; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public LocDto(String locNo, String matnr, String maktx, String batch, String orderNo, Double anfme) { | 
|---|
|  |  |  | public LocDto(Long hostId,String locNo, String matnr, String maktx, String batch, String orderNo, Double anfme,String manu) { | 
|---|
|  |  |  | this.locNo = locNo; | 
|---|
|  |  |  | this.matnr = matnr; | 
|---|
|  |  |  | this.maktx = maktx; | 
|---|
|  |  |  | this.batch = batch; | 
|---|
|  |  |  | this.orderNo = orderNo; | 
|---|
|  |  |  | this.anfme = anfme; | 
|---|
|  |  |  | this.hostId = hostId; | 
|---|
|  |  |  | this.manu = manu; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public LocDto(Long hostId,String locNo, String matnr, String maktx, String batch, String orderNo, Double anfme, Double needQty,String manu) { | 
|---|
|  |  |  | this.locNo = locNo; | 
|---|
|  |  |  | this.matnr = matnr; | 
|---|
|  |  |  | this.maktx = maktx; | 
|---|
|  |  |  | this.batch = batch; | 
|---|
|  |  |  | this.orderNo = orderNo; | 
|---|
|  |  |  | this.anfme = anfme; | 
|---|
|  |  |  | this.needQty = needQty; | 
|---|
|  |  |  | this.hostId = hostId; | 
|---|
|  |  |  | this.manu = manu; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|