package com.tmerclub.cloud.supplier.vo.mongo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author gaozijie
 * @date 2023-08-28
 */
@Data
public class MongoPurchaseAmountLogVO {

    @Schema(description = "采购日志Id")
    private Long purchaseLogId;

    @Schema(description = "商家Id")
    private Long shopId;

    @Schema(description = "商家名称")
    private String shopName;

    @Schema(description = "供应商Id")
    private Long supplierId;

    @Schema(description = "供应商名称")
    private String supplierName;

    @Schema(description = "采购金额类型(-1:采购作废金额, 0:采购收入|支出金额)")
    private Integer purchaseAmountType;

    @Schema(description = "采购订单编号")
    private Long purchaseOrderId;

    @Schema(description = "改变金额")
    private Long changeAmount;

    @Schema(description = "采购总价")
    private Long purchaseTotalAmount;

    @Schema(description = "采购商品数量")
    private Integer prodCount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    public MongoPurchaseAmountLogVO() {
    }

}
