package com.huigou.topsun.sap.purchaseOrder.domain.vo;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.persistence.Column;
import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * @Auther: xin.lu
 * @Date: 2024/01/10/9:22
 * @Description:
 */
@Data
public class SapPurchaseOrderVo implements Serializable {
    @JsonProperty("AEDAT")
    private String aedatDate;

    private Date aedat;

    public Date getAedat() {
        return aedat;
    }


    public void setAedatDate(String aedatDate) throws ParseException {
        this.aedatDate = aedatDate;

        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
        this.aedat = dateFormat.parse(aedatDate);
    }

    @JsonProperty("ERNAM")
    private String ernam;

    @JsonProperty("NAME_TEXT")
    private String nameText;

    @JsonProperty("EBELN")
    private String ebeln;

    @JsonProperty("BSART")
    private String bsart;

    @JsonProperty("BATXT")
    private String batxt;

    @JsonProperty("EKGRP")
    private String ekgrp;

    @JsonProperty("WAERS")
    private String waers;

    @JsonProperty("EKNAM")
    private String eknam;

}
