package org.dromara.personnel.domain.bo;

import org.dromara.personnel.domain.OpsChurukudan;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 运维-物资-出入库单管理业务对象 ops_churukudan
 *
 * @author LionLi
 * @date 2025-09-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = OpsChurukudan.class, reverseConvertGenerate = false)
public class OpsChurukudanBo extends BaseEntity {

    /**
     * id
     */
    private Long id;

    private Long projectId;

    /**
     * 单据编号
     */
    @NotBlank(message = "单据编号不能为空", groups = { EditGroup.class })
    private String danjvNumber;

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

    /**
     * 产品名称
     */
    private String chanpinName;

    /**
     * 经手人id
     */
    @NotNull(message = "经手人id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long jingshourenId;

    /**
     * 经手人
     */
    @NotBlank(message = "经手人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jingshourenName;

    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contactNumber;

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

    /**
     * 审核状态
     */
    private String shenheStatus;

    /**
     * 单据状态（1、出库单，2入库单）
     */
    @NotBlank(message = "单据状态（1、出库单，2入库单）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String danjvType;


}
