package cn.iocoder.yudao.module.hrm.controller.admin.supply.vo;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotNull;
|
import lombok.Data;
|
|
import java.math.BigDecimal;
|
|
@Schema(description = "管理后台 - 办公用品档案新增/修改 Request VO")
|
@Data
|
public class HrmSupplySaveReqVO {
|
|
@Schema(description = "编号(修改时必填)", example = "1")
|
private Long id;
|
|
@Schema(description = "用品编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "YP2026001")
|
@NotBlank(message = "用品编码不能为空")
|
private String code;
|
|
@Schema(description = "用品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "A4 打印纸")
|
@NotBlank(message = "用品名称不能为空")
|
private String name;
|
|
@Schema(description = "用品类别:1 文具用品 2 打印耗材 3 清洁用品 4 劳保用品 5 其他",
|
requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
@NotNull(message = "用品类别不能为空")
|
private Integer category;
|
|
@Schema(description = "单位", example = "包")
|
private String unit;
|
|
@Schema(description = "规格", example = "A4 / 70g / 500 张")
|
private String specification;
|
|
@Schema(description = "当前库存(新增时初始库存;修改时库存由采购入库与领用发放自动维护)", example = "100")
|
private Integer stockQuantity;
|
|
@Schema(description = "库存下限,低于该值触发预警", example = "20")
|
private Integer minQuantity;
|
|
@Schema(description = "库存上限,高于该值触发预警", example = "500")
|
private Integer maxQuantity;
|
|
@Schema(description = "参考单价", example = "25.00")
|
private BigDecimal price;
|
|
@Schema(description = "状态:0 启用 1 停用", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
|
@NotNull(message = "状态不能为空")
|
private Integer status;
|
|
@Schema(description = "备注", example = "备注")
|
private String remark;
|
|
}
|