package cn.iocoder.yudao.module.mes.controller.admin.pd.product.vo;
|
|
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
|
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
|
import cn.iocoder.yudao.module.mes.enums.DictTypeConstants;
|
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
|
import cn.idev.excel.annotation.ExcelProperty;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
|
import java.math.BigDecimal;
|
import java.time.LocalDateTime;
|
|
@Schema(description = "管理后台 - 产品档案 Response VO")
|
@Data
|
@ExcelIgnoreUnannotated
|
public class MesPdProductRespVO {
|
|
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
|
@ExcelProperty("编号")
|
private Long id;
|
|
@Schema(description = "档案类型", example = "1")
|
@ExcelProperty(value = "档案类型", converter = DictConvert.class)
|
@DictFormat(DictTypeConstants.MES_PD_PRODUCT_ARCHIVE_TYPE)
|
private Integer archiveType;
|
|
@Schema(description = "档案类型名称", example = "电力服务")
|
private String archiveTypeName;
|
|
@Schema(description = "档案编码", example = "P_20260820_0001")
|
@ExcelProperty("档案编码")
|
private String code;
|
|
@Schema(description = "档案名称", example = "电力抢修服务")
|
@ExcelProperty("档案名称")
|
private String name;
|
|
@Schema(description = "规格型号", example = "24h")
|
@ExcelProperty("规格型号")
|
private String spec;
|
|
@Schema(description = "单位", example = "次")
|
@ExcelProperty("单位")
|
private String unit;
|
|
@Schema(description = "基准价格", example = "500.00")
|
@ExcelProperty("基准价格")
|
private BigDecimal price;
|
|
@Schema(description = "审批状态", example = "0")
|
@ExcelProperty(value = "审批状态", converter = DictConvert.class)
|
@DictFormat(DictTypeConstants.MES_PD_PRODUCT_AUDIT_STATUS)
|
private Integer auditStatus;
|
|
@Schema(description = "审批状态名称", example = "未提交")
|
private String auditStatusName;
|
|
@Schema(description = "审批意见")
|
private String auditRemark;
|
|
@Schema(description = "审批时间")
|
private LocalDateTime auditTime;
|
|
@Schema(description = "启用状态", example = "1")
|
private Integer status;
|
|
@Schema(description = "备注")
|
@ExcelProperty("备注")
|
private String remark;
|
|
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
@ExcelProperty("创建时间")
|
private LocalDateTime createTime;
|
|
}
|