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列表,格式:[1,2,3]。如果按生产计划生成订单,新增时传这个字段即可,系统会自动汇总产品规格和数量。") private String productionPlanIds; @Schema(description = "产品规格id。手动新增时必填;如果传了 productionPlanIds,则可由系统自动带出。") 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 = "需求数量。手动新增时必填且必须大于 0;如果传了 productionPlanIds,则可由系统自动带出。") private BigDecimal quantity; @Schema(description = "完成数量") private BigDecimal completeQuantity; @Schema(description = "开始日期") private LocalDateTime startTime; @Schema(description = "结束日期") private LocalDateTime endTime; @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; }