#
whycq
2024-07-11 332420e29973a6768c50558df5775554882f6be7
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/entity/WrkDetl.java
@@ -2,6 +2,8 @@
import java.text.SimpleDateFormat;
import java.util.Date;
import com.zy.asrs.common.utils.Synchro;
import org.springframework.format.annotation.DateTimeFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
@@ -278,9 +280,18 @@
    @ApiModelProperty(value= "授权商户")
    private Long hostId;
    /**
     * 工作档ID
     */
    @ApiModelProperty(value= "工作档ID")
    private Long wrkMastId;
    @ApiModelProperty(value= "货主")
    private Integer owner;
    public WrkDetl() {}
    public WrkDetl(Integer wrkNo,Date ioTime,Double anfme,String zpallet,String matnr,String maktx,String batch,String orderNo,String specs,String model,String color,String brand,String unit,Double price,String sku,Double units,String barcode,String origin,String manu,String manuDate,String itemNum,Double safeQty,Double weight,Double length,Double volume,String threeCode,String supp,String suppCode,Integer beBatch,String deadTime,Integer deadWarn,Integer source,Integer inspect,Integer danger,Long modiUser,Date modiTime,Long appeUser,Date appeTime,String memo,Long hostId) {
    public WrkDetl(Integer wrkNo,Date ioTime,Double anfme,String zpallet,String matnr,String maktx,String batch,String orderNo,String specs,String model,String color,String brand,String unit,Double price,String sku,Double units,String barcode,String origin,String manu,String manuDate,String itemNum,Double safeQty,Double weight,Double length,Double volume,String threeCode,String supp,String suppCode,Integer beBatch,String deadTime,Integer deadWarn,Integer source,Integer inspect,Integer danger,Long modiUser,Date modiTime,Long appeUser,Date appeTime,String memo,Long hostId,Integer owner) {
        this.wrkNo = wrkNo;
        this.ioTime = ioTime;
        this.anfme = anfme;
@@ -321,6 +332,7 @@
        this.appeTime = appeTime;
        this.memo = memo;
        this.hostId = hostId;
        this.owner = owner;
    }
//    WrkDetl wrkDetl = new WrkDetl(
@@ -372,7 +384,17 @@
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime);
    }
    public String getOwner$(){
        if (null == this.owner){ return null; }
        switch (this.owner){
            case 1:
                return "宁波";
            case 2:
                return "新昌";
            default:
                return String.valueOf(this.owner);
        }
    }
    public String getBeBatch$(){
        if (null == this.beBatch){ return null; }
        switch (this.beBatch){
@@ -464,5 +486,8 @@
        return null;
    }
    public void sync(Object source) {
        Synchro.Copy(source, this);
    }
}