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.math.BigDecimal;
import java.util.Date;

/**
 * 计划借调管理返回VO
 * @Author ma_sh
 * @create 2024/4/9 9:53
 */
@Data
public class PlanManagementVO {

    /** 主键ID */
    @ApiModelProperty(value = "主键ID")
    private Integer id;

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

    /** 借调计划ID */
    @ApiModelProperty(value = "借调计划ID")
    private Integer borrowId;

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

    /** 物资名称 */
    @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 String borrowerCompany;

    /** 借出方原计划数 */
    @Excel(name = "原计划数")
    @ApiModelProperty(value = "借出方原计划数")
    private Integer borrowerOrigPlanNum;

    /** 借出方现计划数 */
    @Excel(name = "现计划数")
    @ApiModelProperty(value = "借出方现计划数")
    private Integer borrowerNowPlanNum;

    /** 借入方单位 */
    @Excel(name = "借入方单位")
    @ApiModelProperty(value = "借入方单位")
    private String lenderCompany;

    /** 借入方原计划数 */
    @ApiModelProperty(value = "借入方原计划数")
    private Integer lenderOrigPlanNum;

    /** 借入方现计划数 */
    @Excel(name = "现有计划数")
    @ApiModelProperty(value = "借入方现计划数")
    private Integer lenderNowPlanNum;

    /** 借出数 */
    @Excel(name = "借调数量")
    @ApiModelProperty(value = "借出数")
    private Integer borrowNum;

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

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

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

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

    /** 创建者 */
    @Excel(name = "操作人")
    @ApiModelProperty(value = "创建者")
    private String createBy;

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

    /** 更新者 */
    @ApiModelProperty(value = "更新者")
    private String updateBy;

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

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