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

import com.microservices.common.core.utils.bean.BeanUtils;
import com.microservices.pms.product.domain.PmsProductPlan;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 产品计划对象 pms_product_plan
 *
 * @author microservices
 * @date 2023-10-10
 */
@Data
@ApiModel("产品计划搜索对象")
public class PmsProductPlanSearchVo
{

    /** 计划标题 */
    @ApiModelProperty(value = "计划标题")
    private String planTitle;

    /** 关联产品标识 */
    @ApiModelProperty(value = "关联产品标识", required = true)
    @NotBlank(message = "产品标识不能为空")
    private String pmsProductIdentifier;

    @ApiModelProperty(value = "产品需求状态")
    private String status;

    /** 关联优先级ID */
    @ApiModelProperty(value = "关联优先级ID")
    private Long priorityId;

    public PmsProductPlan toPmsProductPlan(){
        PmsProductPlan target = new PmsProductPlan();
        BeanUtils.copyProperties(this, target);
        return target;
    }

}
