package com.unis.base.server.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Classname CcsbtzjsmxDO
 * @Description 仓储设备投资建设明细
 * @Date 2023/12/28 17:15
 * @Created by rising123sun
 */
@Data
@ApiModel(value = "仓储设备投资建设明细")
@Table(name = "ccsbtzjsmx")
public class CcsbtzjsmxDO {

    // id
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    // 所属区域名称
    @ApiModelProperty(value = "所属区域名称")
    @Column(name = "ssqymc")
    private String ssqymc;

    // 所属区域代码
    @ApiModelProperty(value = "所属区域代码")
    @Column(name = "ssqydm")
    private String ssqydm;

    // 所属购销公司名称
    @ApiModelProperty(value = "所属购销公司名称")
    @Column(name = "ssgxcgsmc")
    private String ssgxcgsmc;

    // 所属购销公司代码
    @ApiModelProperty(value = "所属购销公司代码")
    @Column(name = "ssgxcgsdm")
    private String ssgxcgsdm;

    // 所属库点名称
    @ApiModelProperty(value = "所属库点代码")
    @Column(name = "sskddm")
    private String sskddm;

    // 所属库点代码
    @ApiModelProperty(value = "所属库点名称")
    @Column(name = "sskdmc")
    private String sskdmc;

    // 设备类型
    @ApiModelProperty(value = "设备类型")
    @Column(name = "sblx")
    private String sblx;

    // 设备一级类别
    @ApiModelProperty(value = "设备一级类别")
    @Column(name = "sbyjlb")
    private String sbyjlb;

    // 设备二级类别
    @ApiModelProperty(value = "设备二级类别")
    @Column(name = "sbejlb")
    private String sbejlb;

    // 设备名称
    @ApiModelProperty(value = "设备名称")
    @Column(name = "sbmc")
    private String sbmc;

    // 购入数量
    @ApiModelProperty(value = "购入数量")
    @Column(name = "grsl")
    private Integer grsl;

    // 金融合计
    @ApiModelProperty(value = "金融合计")
    @Column(name = "jrje")
    private BigDecimal jrje = BigDecimal.ZERO;

    // 上报状态
    @ApiModelProperty(value = "上报状态，0未上报，1已上报")
    @Column(name = "sbzt")
    private String sbzt;

    // 上报年份
    @ApiModelProperty(value = "上报年份")
    @Column(name = "sbnf")
    private String sbnf;

    // 上报时间
    @ApiModelProperty(value = "上报时间")
    @Column(name = "sbsj")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date sbsj;

    // 组织机构代码
    @ApiModelProperty(value = "组织机构代码")
    @Column(name = "org_code")
    private String orgCode;

    // 上级组织机构代码
    @ApiModelProperty(value = "上级组织机构代码")
    @Column(name = "parent_org_code")
    private String parentOrgCode;

}
