package com.sptg.estate.api.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * title: ProjectCompletion
 * package: com.sptg.estate.biz.security
 * description: 物业验收实体类
 *
 *               
 *                     
 */
@Setter
@Getter
@TableName(value = "implement_project_completion")
public class ProjectCompletion {
    /**
     * 主键
     */
    @TableId(value = "l_id",type = IdType.AUTO)
    private Long id;
    /**
     * 项目id
     */
    @TableField(value = "l_project_id")
    private Long projectId;
    /**
     * 竣工单号--日期生成
     */
    @TableField(value = "s_order_no")
    private String orderNo;
    /**
     * 立柱机数量
     */
    @TableField(value = "i_pillar")
    private Integer pillar;
    /**
     * 壁挂机数量
     */
    @TableField(value = "i_wall_hung")
    private Integer wallHung;
    /**
     * 雨罩壁挂机数量
     */
    @TableField(value = "i_rain_cover")
    private Integer rainCover;
    /**
     * 填写人id
     */
    @TableField(value = "l_create_account_id")
    private Long createAccountId;
    /**
     * 填写人-userName
     */
    @TableField(value = "s_create_name")
    private String createName;
    /**
     * 填写日期时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(value = "t_create_date")
    private Date createDate;

    /**
     * 竣工日期
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(value = "t_completion_date")
    private Date completionDate;
}
