package cn.iocoder.yudao.module.system.controller.admin.biz.vo;

import cn.iocoder.yudao.module.system.convert.excel.SaleFlagConverter;
import cn.iocoder.yudao.module.system.convert.excel.StatusConverter;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

/**
 * @Author: jinyd
 * @CreateTime: 2025/3/13  14:31
 * @Description:
 * @Version: 4.0
 */

@Schema(description = "管理后台 - 物质设置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MaterialConfigRespVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "18474")
    private Long id;

    @ExcelProperty("序号")
    private Integer serialNumber;

    @Schema(description = "物资名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @ExcelProperty("物资名称")
    private String name;

    @Schema(description = "拼音码")
    @ExcelProperty("拼音码")
    private String pinyinCode;

    @Schema(description = "物品类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("物品类型")
    private String type;

    @Schema(description = "单位")
    @ExcelProperty("单位")
    private String unit;

    @Schema(description = "规格")
    @ExcelProperty("规格")
    private String specification;

    @Schema(description = "是否销售标识，1-是，2-否")
    @ExcelProperty(value = "是否销售标识", converter = SaleFlagConverter.class)
    private Integer saleFlag;

    @Schema(description = "费用金额", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("费用金额")
    private BigDecimal itemAmount;

    @Schema(description = "安全库存量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("安全库存量")
    private Integer safetyStock;

    @Schema(description = "物资描述", example = "你猜")
    @ExcelProperty("物资描述")
    private String description;

    @Schema(description = "状态，0-启动，1-禁用", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "状态", converter = StatusConverter.class)
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime createTime;

    @Schema(description = "系统类型，1：机构 2：居家(社区) 3：旅居", example = "1")
    private Integer orgType;


}
