package com.zy.common.model;
|
|
import com.alibaba.fastjson.JSON;
|
import com.core.common.DateUtils;
|
import lombok.Data;
|
|
import java.util.ArrayList;
|
import java.util.Date;
|
import java.util.List;
|
|
/**
|
* Created by vincent on 2022/4/21
|
*/
|
@Data
|
public class MesPakoutParam {
|
|
// true: 订单出; false: 手动出
|
private boolean tag;
|
|
// 单据编号
|
private String orderNo;
|
|
// 出库时间
|
private String pakoutTime;
|
|
// 来源地 - 写死
|
private String lgortFrom;
|
|
// 目的地 - 写死
|
private String lgortTo;
|
|
// 客户号
|
private String kunnr;
|
|
private List<Detl> list = new ArrayList<>();
|
|
@Data
|
public static class Detl {
|
|
// 物料条码
|
private String barcode;
|
|
// 数量
|
private Double anfme;
|
|
public Detl() {
|
}
|
|
public Detl(String barcode, Double anfme) {
|
this.barcode = barcode;
|
this.anfme = anfme;
|
}
|
}
|
|
public static void main(String[] args) {
|
MesPakoutParam param = new MesPakoutParam();
|
param.setTag(true);
|
param.setOrderNo("8135998");
|
param.setPakoutTime(DateUtils.convert(new Date()));
|
param.setLgortFrom("5006");
|
param.setLgortTo("1111");
|
|
|
Detl detl = new Detl(); param.getList().add(detl);
|
detl.setBarcode("1100146-10000-23132132");
|
detl.setAnfme(1.0D);
|
|
System.out.println(JSON.toJSONString(param));
|
}
|
|
}
|