package cn.com.oa.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@TableName("pm_project_info")
@Data
public class ProjectInfo {
    @TableId(value = "universalid")
    private Long universalid;

    private String projectCode;

    private String projectName;

    private String projectSource;

    private Long projectType;

    private Long responsible;

    private String custorUnit;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date appDate;

    private Long appDepId;

    private String relateDepId;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date startDate;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date endDate;

    private String projectAffix;

    private String profile;

    private String target;

    private String state;

    private Long createUser;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date createDate;

    private Long flowId;

    private Long projectTypeTwo;

    private String loseFlag;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date poDate;

    private String poNum;

    private String proAmount;

    private String projectNameSort;

    private String projectShortName;

    private Long unitId; //单位ID

    private Double pettyCash;

    private Long purchaseCost;
}
