package com.ruoyi.procurementrecord.pojo; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.framework.aspectj.lang.annotation.Excel; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.time.LocalDateTime; /** * @author :yys * @date : 2025/9/18 16:00 */ @Data @TableName("procurement_plan") @Schema public class ProcurementPlan { private static final long serialVersionUID = 1L; /** * 序号 */ @TableId(type = IdType.AUTO) private Long id; @Schema(description = "编码") @Excel(name = "编码") private String code; @Schema(description = "名称") @Excel(name = "名称") private String planName; @Schema(description = "描述") @Excel(name = "描述") private String description; @Schema(description = "状态") @Excel(name = "状态", readConverterExp = "disabled=禁用,active=启用") private String status; @Schema(description = "是否系统预置") private Boolean isSystemPreset; @Schema(description = "考虑现有库存") private Boolean considerExistingStock; @Schema(description = "仓库运行MRP的控制") private Boolean warehouseControl; @Schema(description = "计算总需求") private Boolean calculateTotalDemand; @Schema(description = "考虑安全库存") private Boolean considerSafetyStock; @Schema(description = "考虑锁库") private Boolean considerLockedStock; @Schema(description = "不考虑物料辅助属性") private Boolean notConsiderMaterialAux; @Schema(description = "负库存作为需求") private Boolean negativeStockAsDemand; @Schema(description = "物料") private Boolean summaryMaterial; @Schema(description = "辅助属性") private Boolean summaryAuxAttributes; @Schema(description = "需求日期") private Boolean summaryDemandDate; @Schema(description = "计算公式") @Excel(name = "计算公式") private String formula; @Schema(description = "创建时间") @TableField(fill = FieldFill.INSERT) private LocalDateTime createTime; @Schema(description = "创建用户") @TableField(fill = FieldFill.INSERT) private Integer createUser; @Schema(description = "修改时间") @TableField(fill = FieldFill.INSERT_UPDATE) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @Excel(name = "最后计算时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private LocalDateTime updateTime; @Schema(description = "修改用户") @TableField(fill = FieldFill.INSERT_UPDATE) private Integer updateUser; @Schema(description = "租户ID") @TableField(fill = FieldFill.INSERT) private Long tenantId; @TableField(fill = FieldFill.INSERT) private Long deptId; }