package com.microservices.pms.product.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.microservices.common.core.utils.bean.BeanUtils;
import com.microservices.pms.product.domain.PmsProductModule;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 产品需求对象 pms_product_requirement
 *
 * @author otto
 * @date 2023-10-10
 */
@Data
@ApiModel("用户需求数据对象")
public class ProductUserReqDataVo {
    private Long id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "需求状态")
    private ReqStatusCommonVo status;

    @ApiModelProperty(value = "从属产品模块")
    private PmsProductModule pmsProductModule;

    @ApiModelProperty(value = "需求来源用户")
    private String sourceUser;

    @ApiModelProperty(value = "需求来源单位")
    private String sourceCompany;

    @ApiModelProperty(value = "需求提出时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "评审时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date reviewTime;

    @ApiModelProperty(value = "评审人")
    private String reviewUser;

    @ApiModelProperty(value = "评审意见")
    private String reviewContent;

    public ProductUserReqDetailVo toProductReqUserDetailVo() {
        ProductUserReqDetailVo target = new ProductUserReqDetailVo();
        BeanUtils.copyProperties(this, target);
        return target;
    }
}
