package com.xunhong.erp.turbo.api.biz.dto.common;

import com.alibaba.cola.dto.DTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author shenyifei
 */
@Data
@Schema(title = "发货单子项表")
@EqualsAndHashCode(callSuper = true)
public class OrderShipItem extends DTO {

	/**
	 * 发货单子项ID
	 */
	@Schema(title = "发货单子项ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
	private Long itemId;

	/**
	 * 发货单ID
	 */
	@Schema(title = "发货单ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
	private Long orderShipId;

	/**
	 * 采购订单ID
	 */
	@Schema(title = "采购订单ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
	private Long orderId;

	/**
	 * 毛重(斤)
	 */
	@Schema(title = "毛重(斤)")
	private BigDecimal grossWeight;

	/**
	 * 箱重(斤)
	 */
	@Schema(title = "箱重(斤)")
	private BigDecimal boxWeight;

	/**
	 * 箱数
	 */
	@Schema(title = "箱数")
	private Integer boxCount;

	/**
	 * 净重(斤)
	 */
	@Schema(title = "净重(斤)")
	private BigDecimal netWeight;

	/**
	 * 单价(元)
	 */
	@Schema(title = "单价(元)")
	private BigDecimal unitPrice;

	/**
	 * 总金额(元)
	 */
	@Schema(title = "总金额(元)")
	private BigDecimal totalAmount;

	/**
	 * 西瓜品级
	 */
	@Schema(title = "西瓜品级")
	private String watermelonGrade;

	/**
	 * 创建时间
	 */
	@Schema(title = "创建时间")
	private LocalDateTime createdAt;

}

