package com.ruoyi.production.pojo; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import java.io.Serializable; import java.math.BigDecimal; import java.time.LocalDateTime; /** * 生产核算-标准数量配置 * 成品部门:按工序配置(product_model_id 可空) * 白盒部门:按 工序 + 型号 配置 */ @Data @TableName("production_costing_standard") @Schema(name = "ProductionCostingStandard对象", description = "生产核算-标准数量配置") public class ProductionCostingStandard implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) @Schema(description = "主键") private Long id; @Schema(description = "部门类型:1成品,2白盒") private Integer deptType; @Schema(description = "工序ID") private Long processId; @Schema(description = "型号ID(白盒必填)") private Long productModelId; @Schema(description = "标准数量") private BigDecimal standardQuantity; @Schema(description = "单位") private String unit; @Schema(description = "备注") private String remark; @Schema(description = "工序名称(非数据库字段)") @TableField(exist = false) private String processName; @Schema(description = "型号名称(非数据库字段)") @TableField(exist = false) private String modelName; @TableField(fill = FieldFill.INSERT) private Long createUser; @TableField(fill = FieldFill.INSERT) private LocalDateTime createTime; @TableField(fill = FieldFill.INSERT_UPDATE) private Long updateUser; @TableField(fill = FieldFill.INSERT_UPDATE) private LocalDateTime updateTime; }