FedexReceipt.java 2.15 KB
package com.erry.iclear.dateInterface.api.request;

import com.erry.iclear.dateInterface.common.Constant;
import com.erry.iclear.dateInterface.entity.DictionaryEntries;
import com.erry.iclear.dateInterface.repository.DictionaryEntriesRepository;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;
import java.util.Date;

/**
 * BASF回执数据构造 xjq 2021年11月16日
 */
public class FedexReceipt implements Serializable {

    @Autowired
    private DictionaryEntriesRepository dictionaryEntriesRepository;

    /**
     * 运单ID
     */
    private Long consignmentId;
    /**
     * 运单号
     */
    private String consignmentCode;
    /**
     * 运单类型
     */
    private String consignmentType;
    /**
     * 回执状态(状态码)
     */
    private String customsReceiptStatus;
    /**
     * 回执状态时间
     */
    private Date customsReceiptTime;

    public Long getConsignmentId() {
        return consignmentId;
    }

    public void setConsignmentId(Long consignmentId) {
        this.consignmentId = consignmentId;
    }

    public String getConsignmentCode() {
        return consignmentCode;
    }

    public void setConsignmentCode(String consignmentCode) {
        this.consignmentCode = consignmentCode;
    }

    public String getConsignmentType() {
        return consignmentType;
    }

    public void setConsignmentType(String consignmentType) {
        /*DictionaryEntries dictionaryEntriesByCode = dictionaryEntriesRepository.findDictionaryEntriesByCode(Constant.consType_C);
        if (consignmentType.equals(dictionaryEntriesByCode.getChineseName())){
            this.consignmentType = consignmentType;
        }*/
        this.consignmentType = "C";
    }

    public String getCustomsReceiptStatus() {
        return customsReceiptStatus;
    }

    public void setCustomsReceiptStatus(String customsReceiptStatus) {
        this.customsReceiptStatus = customsReceiptStatus;
    }

    public Date getCustomsReceiptTime() {
        return customsReceiptTime;
    }

    public void setCustomsReceiptTime(Date customsReceiptTime) {
        this.customsReceiptTime = customsReceiptTime;
    }
}