package com.bonus.common.entity.bracelet.vo;

import com.bonus.common.core.annotation.Excel;
import com.bonus.common.core.annotation.Excel.ColumnType;
import com.bonus.common.core.web.domain.BaseEntity;
import com.bonus.common.entity.file.ResourceFileVo;
import com.bonus.common.security.utils.SecurityUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.Api;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;
import java.util.List;

/**
 * 岗位表 sys_post
 * 
 * @author bonus
 */

@Api("BaseProject")
@Data
public class BaseProject extends BaseEntity
{
    /** 项目id */
    @Excel(name = "项目id", cellType = ColumnType.NUMERIC)
    private int projectId;

    /** 项目部名称 */
    @Excel(name = "项目部名称")
    private String projectDepartName;

    /** 负责人名称 */
    @Excel(name = "负责人名称")
    private String projectHeadName;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String contactInformation;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Date createTime = new Date();
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Date updateTime = new Date();
    /**
     * 创建人
     */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Long createUser = SecurityUtils.getUserId();
    /**
     * 修改人
     */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Long updateUser = SecurityUtils.getUserId();


    /** 是否删除 */
    @Excel(name = "是否删除", readConverterExp = "0=正常,1=删除")
    private int delFlag;

    /** app轮播图数量 */
    @Excel(name = "app轮播图数量", cellType = ColumnType.NUMERIC)
    private int appnum;

   private List<ResourceFileVo>  fileList;

    private List<String> delFileIdList;
    /**
     * 人脸照片
     */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private MultipartFile file;

    /** 工程数量 */
    @Excel(name = "工程数量", cellType = ColumnType.NUMERIC)
    private int pronum;
}
