package com.ruoyi.oa.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 采购计划业务对象 sys_oa_warehouse_task
 *
 * @author hdka
 * @date 2025-03-30
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysOaWarehouseTaskBo extends BaseEntity {

    /**
     * 主键id
     */
    private Long taskId;

    /**
     * 绑定采购单
     */
    private Long masterId;

    /**
     * 物料名
     */
    private String name;

    /**
     * 型号
     */
    private String model;

    /**
     * 计划入库
     */
    private Long taskInventory;

    /**
     * 品牌
     */
    private String brand;

    /**
     * 规格
     */
    private String specifications;

    /**
     * 备注
     */
    private String remark;

    /**
     * 物料id
     */
    private Long warehouseId;

    /**
     * 前端接受一个id
     */
    private Long id;

    /**
     * 采购细节状态
     */
    private Long taskStatus;

    private Double price;


    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    /**
     * 单位
     */
    private String unit;
}
