package com.ruoyi.pay.domain.bo;

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 java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 图纸流程卡工单业务对象 pay_work_order_tuzhi
 *
 * @author ruoyi
 * @date 2025-05-12
 */

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

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 租户id
     */
    @NotNull(message = "租户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long tenantId;

    /**
     * 归档ID
     */
    @NotBlank(message = "归档ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String archiveId;

    /**
     * 产品ID
     */
    @NotNull(message = "产品ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long productId;

    /**
     * 网机编号
     */
    @NotBlank(message = "网机编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String machineId;

    /**
     * 部门ID
     */
    @NotNull(message = "部门ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 车间
     */
    @NotBlank(message = "车间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String workshop;

    /**
     * 图纸编号及名称
     */
    @NotBlank(message = "图纸编号及名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 加工数量
     */
    @NotNull(message = "加工数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long productNum;

    /**
     * 原材料
     */
    @NotBlank(message = "原材料不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productMaterial;

    /**
     * 规格
     */
    @NotBlank(message = "规格不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productSpecification;

    /**
     * 原材料数量
     */
    @NotNull(message = "原材料数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long materialNum;

    /**
     * 字典-下料类型ID 
     */
    @NotBlank(message = "字典-下料类型ID 不能为空", groups = { AddGroup.class, EditGroup.class })
    private String xialiao;

    /**
     * 字典-加工类型ID
     */
    @NotBlank(message = "字典-加工类型ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String processingType;

    /**
     * 加工单价
     */
    @NotNull(message = "加工单价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal price;

    /**
     * 开始时间
     */
    @NotNull(message = "开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date beginTime;

    /**
     * 结束时间
     */
    @NotNull(message = "结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endTime;

    /**
     * 质检人员
     */
    @NotBlank(message = "质检人员不能为空", groups = { AddGroup.class, EditGroup.class })
    private String qualityName;

    /**
     * 入库日期
     */
    @NotNull(message = "入库日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date instorageTime;

    /**
     * 入库人员
     */
    @NotBlank(message = "入库人员不能为空", groups = { AddGroup.class, EditGroup.class })
    private String instorageName;

    /**
     * 实际入库数量
     */
    @NotNull(message = "实际入库数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long instorageNum;

    /**
     * 删除标志（0-可用 1-删除）
     */
    @NotNull(message = "删除标志（0-可用 1-删除）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer deleted;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
