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 = "order_ship_item")
@EqualsAndHashCode(callSuper = true)
public class OrderShipItemDO extends BaseDO<OrderShipItemDO> {

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

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

	/**
	 * 订单ID
	 */
	@TableField(value = "order_id")
	private Long orderId;

	/**
	 * 毛重(斤)
	 */
	@TableField(value = "gross_weight")
	private BigDecimal grossWeight;

	/**
	 * 箱重(斤)
	 */
	@TableField(value = "box_weight")
	private BigDecimal boxWeight;

	/**
	 * 箱数
	 */
	@TableField(value = "box_count")
	private Integer boxCount;

	/**
	 * 净重(斤)
	 */
	@TableField(value = "net_weight")
	private BigDecimal netWeight;

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

	/**
	 * 总金额(元)
	 */
	@TableField(value = "total_amount")
	private BigDecimal totalAmount;

	/**
	 * 西瓜品级
	 */
	@TableField(value = "watermelon_grade")
	private String watermelonGrade;

}

