package com.ruoyi.production.pojo; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalDateTime; /** *
* 生产订单表 *
* * @author 芯导软件(江苏)有限公司 * @since 2026-04-21 03:55:52 */ @Data @TableName("production_order") @Schema(name = "ProductionOrder对象", description = "生产订单表") public class ProductionOrder implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) private Long id; @Schema(description = "销售台账id") private Long salesLedgerId; @Schema(description = "生产计划ID列表,格式:[1,2,3]") private String productionPlanIds; @Schema(description = "产品规格id") private Long productModelId; @Schema(description = "生产订单号") private String npsNo; @Schema(description = "录入时间") @TableField(fill = FieldFill.INSERT) private LocalDateTime createTime; @Schema(description = "更新时间") @TableField(fill = FieldFill.INSERT_UPDATE) private LocalDateTime updateTime; @Schema(description = "工艺路线id") private Long technologyRoutingId; @Schema(description = "需求数量") private BigDecimal quantity; @Schema(description = "完成数量") private BigDecimal completeQuantity; @Schema(description = "开始日期") private LocalDateTime startTime; @Schema(description = "结束日期") private LocalDateTime endTime; @Schema(description = "销售产品规格id") private Integer saleLedgerProductId; @Schema(description = "创建人ID") @TableField(fill = FieldFill.INSERT) private Long createUser; @Schema(description = "部门ID") @TableField(fill = FieldFill.INSERT) private Long deptId; @Schema(description = "计划完成时间") @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDate planCompleteTime; @Schema(description = "状态(1.待开始、2.进行中、3.已完成、4.已取消)") private Integer status; @Schema(description = "强度") private String strength; }