package com.xunhong.erp.turbo.biz.infrastructure.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xunhong.erp.turbo.datasource.domain.entity.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @author shenyifei
 */
@Data
@TableName(value = "ship_order_package")
@EqualsAndHashCode(callSuper = true)
public class ShipOrderPackageDO extends BaseDO<ShipOrderPackageDO> {

	/**
	 * 发货单子项ID
	 */
	@TableId(value = "order_package_id", type = IdType.ASSIGN_ID)
	private Long orderPackageId;

	/**
	 * 发货单ID
	 */
	@TableField(value = "ship_order_id")
	private Long shipOrderId;

	/**
	 * 箱型
	 */
	@TableField(value = "box_category")
	private String boxCategory;

	/**
	 * 箱号
	 */
	@TableField(value = "box_product")
	private String boxProduct;

	/**
	 * 数量
	 */
	@TableField(value = "quantity")
	private Integer quantity;

	/**
	 * 单价(元)
	 */
	@TableField(value = "unit_price")
	private BigDecimal unitPrice;

	/**
	 * 金额(元)
	 */
	@TableField(value = "item_amount")
	private BigDecimal itemAmount;

	/**
	 * 单重(斤)
	 */
	@TableField(value = "single_weight")
	private BigDecimal singleWeight;

	/**
	 * 总重(斤)
	 */
	@TableField(value = "total_weight")
	private BigDecimal totalWeight;
}
