package com.lukouguoji.module_base.bean

/**
 * GncWarehouse
 */
data class GncWarehouse(
    /**
     * 有效性
     */
    val activeId: Long? = null,

    /**
     * 代理
     */
    val agentCode: String? = null,

    /**
     * 运单类型
     */
    val awbType: String? = null,

    /**
     * 账单号（或免费、销账备注）
     */
    val billsNo: String? = null,

    /**
     * 业务类型
     */
    val businessType: String? = null,

    /**
     * 第1承运人
     */
    val by1: String? = null,

    /**
     * 第2承运人
     */
    val by2: String? = null,

    /**
     * 收费标识
     */
    val chargeFlag: String? = null,

    /**
     * 入库天数
     */
    val days: Long? = null,

    /**
     * 出发站
     */
    val dep: String? = null,

    /**
     * 目的站
     */
    val dest: String? = null,

    /**
     * 第1目的站
     */
    val dest1: String? = null,

    /**
     * 第2目的站
     */
    val dest2: String? = null,

    /**
     * 危险品库
     */
    val dgrLocation: String? = null,

    /**
     * 航班关闭时间
     */
    val fclose: String? = null,

    /**
     * 航班日期
     */
    val fdate: String? = null,

    /**
     * 航班
     */
    val flight: String? = null,

    /**
     * 航班号
     */
    val fno: String? = null,

    /**
     * 按入库时间分组
     */
    val gdate: String? = null,

    /**
     * 品名
     */
    val goods: String? = null,

    /**
     * 货位（库位or板箱号or平板号,RET为退库）
     */
    val location: String? = null,

    /**
     * 货位标识（0:库位;1:板箱;2:平板）
     */
    val locFlag: String? = null,

    /**
     * 是否上舱单
     */
    val locStatus: String? = null,

    /**
     * 运单号
     */
    val no: String? = null,

    /**
     * 操作时间
     */
    val opDate: String? = null,

    /**
     * 操作人
     */
    val opId: String? = null,

    /**
     * 包装类型
     */
    val packageType: String? = null,

    /**
     * 件数
     */
    val pc: String? = null,

    /**
     * 运单号前缀
     */
    val prefix: String? = null,

    /**
     * 航程
     */
    val range: String? = null,

    /**
     * 特码
     */
    val spCode: String? = null,

    /**
     * 分批标识
     */
    val splitFlag: String? = null,

    /**
     * 子特码
     */
    val subCode: String? = null,

    /**
     * 体积
     */
    val volume: String? = null,

    /**
     * 运单号
     */
    val wbNo: String? = null,

    /**
     * 重量
     */
    val weight: String? = null,

    /**
     * Id
     */
    val whId: String? = null
) {

    fun getWaybill(): String {
        return "$prefix$no"
    }
}