package com.yonge.cooleshow.tenant.vo;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * 机构专辑采购
 * 2023-07-25 11:05:33
 */
@ApiModel(value = "TenantAlbumPurchaseVo对象", description = "机构专辑采购查询视图对象")
public class TenantAlbumPurchaseVo {

    @Data
    @ApiModel(" TenantAlbumPurchase-机构专辑采购")
    public static class TenantAlbumPurchase {

        @ApiModelProperty("主键ID")
        private Long id;

        @ApiModelProperty("机构ID")
        private Long tenantId;

        @ApiModelProperty("机构专辑ID")
        private Long tenantAlbumId;

        @ApiModelProperty("采购时间")
        private Date purchaseTime;

        @ApiModelProperty("购买数量")
        private Integer purchaseQuantity;

        @ApiModelProperty("采购周期")
        private Integer purchaseCycle;

        @ApiModelProperty("激活数量")
        private Integer activeQuantity;

        @ApiModelProperty("采购价格")
        private BigDecimal purchasePrice;

        @ApiModelProperty("采购状态")
        private String purchaseStatus;

        @ApiModelProperty("更新时间")
        private Date updateTime;

        @ApiModelProperty("创建时间")
        private Date createTime;

        public String jsonString() {
            return JSON.toJSONString(this);
        }

        public static TenantAlbumPurchase from(String json) {
            return JSON.parseObject(json, TenantAlbumPurchase.class);
        }
    }

}