自动化立体仓库 - WMS系统
#
zyx
2024-06-05 ae7bca6082139d8f524a5aedd08e940de83356f4
src/main/java/com/zy/asrs/entity/param/OpenOrderPakoutParam.java
@@ -1,38 +1,112 @@
package com.zy.asrs.entity.param;
import com.alibaba.fastjson.JSON;
import com.core.common.DateUtils;
import com.zy.common.model.DetlDto;
import lombok.Data;
import java.util.ArrayList;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
/**
 * Created by vincent on 2022/4/8
 * 海诺尔U8出库单同步参数
 */
@Data
public class OpenOrderPakoutParam {
    private String orderNo;
    //入库单号
    private String cCode;
    private String orderType;
    //单据日期
    private Date dDate;
    private String orderTime;
    //类型
    private String type;
    private List<DetlDto> orderDetails;
    //制单人
    private String cMaker;
    public static void main(String[] args) {
        OpenOrderPakoutParam param = new OpenOrderPakoutParam();
        param.setOrderNo("LXT12321321");
        param.setOrderType("交货单");
        param.setOrderTime(DateUtils.convert(new Date()));
        List<DetlDto> orderDetails = new ArrayList<>();
        param.setOrderDetails(orderDetails);
        DetlDto detlDto = new DetlDto("15099-10000", 3.0);
        orderDetails.add(detlDto);
        System.out.println(JSON.toJSONString(param));
    //主体
    private String cAccount;
    public void setcCusName(String cCusName) {
        this.cCusName = cCusName;
    }
    //公司
    private String cCusName;
    //调拨
    private String allocation;
    //备注
    private String cMemo;
    private List<Body> aDDBody;
    //private List<DetlDto> orderDetails;
    public void setcCode(String cCode) {
        this.cCode = cCode;
    }
    public void setdDate(String dDate) throws ParseException {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/DD hh:mm:ss");
        this.dDate =  sdf.parse(dDate);
    }
    public void setdDate$(Date dDate) {
        this.dDate =  dDate;
    }
    public void setcMaker(String cMaker) {
        this.cMaker = cMaker;
    }
    public void setcAccount(String cAccount) {
        this.cAccount = cAccount;
    }
    public void setType(String type) {
        this.type = type;
    }
    public void setcMemo(String cMemo) {
        this.cMemo = cMemo;
    }
    public void setaDDBody(List<Body> aDDBody) {
        this.aDDBody = aDDBody;
    }
    public void setAllocation(String allocation) {
        this.allocation = allocation;
    }
    @Data
    public static class Body{
        //存货编码
        private String cInvCode;
        //数量
        private Double iQuantity;
        //批号
        private String cBatch;
        //行备注
        private String cbMemo;
        public void setcInvCode(String cInvCode) {
            this.cInvCode = cInvCode;
        }
        public void setiQuantity(Double iQuantity) {
            this.iQuantity = iQuantity;
        }
        public void setcBatch(String cBatch) {
            this.cBatch = cBatch;
        }
        public void setCbMemo(String cbMemo) {
            this.cbMemo = cbMemo;
        }
    }
}