package com.bonus.sgzb.material.domain;

import com.bonus.sgzb.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 计划管理返回VO
 * @Author ma_sh
 * @create 2024/4/12 14:07
 */
@Data
public class PlanVO {

    /** 计划ID */
    @ApiModelProperty(value = "计划ID")
    private Integer planId;

    /** 借出方单位id */
    @ApiModelProperty(value = "借出方单位id")
    private String unitId;

    /** 基层单位 */
    @Excel(name = "基层单位")
    @ApiModelProperty(value = "基层单位")
    private String lenderCompany;

    /** 物资名称 */
    @Excel(name = "物资名称")
    @ApiModelProperty(value = "物资名称")
    private String typeName;

    /** 规格型号 */
    @Excel(name = "规格型号")
    @ApiModelProperty(value = "规格型号")
    private String typeModelName;

    /** 单位 */
    @Excel(name = "单位")
    @ApiModelProperty(value = "单位")
    private String unitName;

    /** 计划数 */
    @Excel(name = "计划数")
    @ApiModelProperty(value = "计划数")
    private Double lenderOrigPlanNum;

    /** 计划单价 */
    @Excel(name = "计划单价")
    @ApiModelProperty(value = "计划单价")
    private Double planPrice;

    /** 计划总价 */
    @Excel(name = "计划总价")
    @ApiModelProperty(value = "计划总价")
    private Double planCost;

    /** 类型id */
    @ApiModelProperty(value = "类型id")
    private String typeId;

    /** 数据所属组织 */
    @ApiModelProperty(value = "数据所属组织")
    private Integer companyId;

    /** 创建者 */
    @ApiModelProperty(value = "创建者")
    private String createBy;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 借出数 */
    @ApiModelProperty(value = "借出数")
    private Double borrowNum;

    /** 备注 */
    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;
}
