package shop.alien.entity.store.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 订单变更记录批次VO（按批次分组）
 *
 * @author system
 * @since 2025-02-02
 */
@Data
@ApiModel(value = "OrderChangeLogBatchVO对象", description = "订单变更记录批次")
public class OrderChangeLogBatchVO {

    @ApiModelProperty(value = "批次号")
    private String batchNo;

    @ApiModelProperty(value = "操作类型(1:首次下单, 3:更新订单)")
    private Integer operationType;

    @ApiModelProperty(value = "操作类型文本")
    private String operationTypeText;

    @ApiModelProperty(value = "操作时间")
    private Date operationTime;

    @ApiModelProperty(value = "操作人ID")
    private Integer operatorUserId;

    @ApiModelProperty(value = "操作人手机号")
    private String operatorUserPhone;

    @ApiModelProperty(value = "备注（该批次对应的备注，如下单/更新订单时的备注）")
    private String remark;

    @ApiModelProperty(value = "该批次商品数量变化总和")
    private Integer totalQuantityChange;

    @ApiModelProperty(value = "该批次金额变化总和")
    private BigDecimal totalAmountChange;

    @ApiModelProperty(value = "该批次商品数量")
    private Integer itemCount;

    @ApiModelProperty(value = "该批次的商品明细列表")
    private List<OrderChangeLogItemVO> items;
}
