package com.jeeplus.assess.invoice.domain.OMS;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

/**
 * OMS发票结果下载数据实体类
 * 字段对应表格定义：组织代码、订单号、是否查询明细
 */
public class OMSInvoiceResultDownloadData implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 组织代码（所属组织唯一标识，长度20，必填）
     */
    @JSONField(name = "deptCode")
    private String deptCode;

    /**
     * 订单号（订单唯一标识，长度50，必填）
     */
    @JSONField(name = "orderno")
    private String orderno;

    /**
     * 是否查询明细（0:否，1:是，长度1，必填）
     */
    @JSONField(name = "isDetail")
    private String isDetail;

    // 无参构造（JSON反序列化必备）
    public OMSInvoiceResultDownloadData() {
    }

    // 全参构造（方便快速创建对象）
    public OMSInvoiceResultDownloadData(String deptCode, String orderno, String isDetail) {
        this.deptCode = deptCode;
        this.orderno = orderno;
        this.isDetail = isDetail;
    }

    // ==================== 字段对应的getter & setter ====================
    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public String getOrderno() {
        return orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

    public String getIsDetail() {
        return isDetail;
    }

    public void setIsDetail(String isDetail) {
        this.isDetail = isDetail;
    }

    // toString方法（方便日志打印/调试）
    @Override
    public String toString() {
        return "OMSInvoiceResultDownloadData{" +
                "deptCode='" + deptCode + '\'' +
                ", orderno='" + orderno + '\'' +
                ", isDetail='" + isDetail + '\'' +
                '}';
    }
}
