package com.ruoyi.production.pojo;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.time.LocalDateTime;
|
|
@Data
|
@TableName("product_order")
|
public class ProductOrder implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 销售台账id
|
*/
|
@ApiModelProperty(value = "销售台账id")
|
private Long salesLedgerId;
|
|
/**
|
* 销售台账产品id(sales_ledger_product)
|
*/
|
@ApiModelProperty(value = "销售台账产品id")
|
private Long productModelId;
|
|
/**
|
* 工艺路线id
|
*/
|
@ApiModelProperty(value = "工艺路线id")
|
private Long routeId;
|
|
/**
|
* 生产订单号
|
*/
|
@ApiModelProperty(value = "生产订单号")
|
@Excel(name = "生产订单号")
|
private String npsNo;
|
|
/**
|
* 租户id
|
*/
|
@ApiModelProperty(value = "租户id")
|
@TableField(fill = FieldFill.INSERT)
|
private Long tenantId;
|
|
//创建时间
|
@ApiModelProperty(value = "创建时间")
|
@TableField(fill = FieldFill.INSERT)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@Excel(name = "创建时间")
|
private LocalDateTime createTime;
|
|
//修改时间
|
@ApiModelProperty(value = "修改时间")
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime updateTime;
|
|
|
/**
|
* 需求数量
|
*/
|
@ApiModelProperty(value = "需求数量")
|
@Excel(name = "需求数量")
|
private BigDecimal quantity;
|
|
/**
|
* 完成数量
|
*/
|
@ApiModelProperty(value = "完成数量")
|
@Excel(name = "完成数量")
|
private BigDecimal completeQuantity;
|
|
@Excel(name = "开始时间")
|
@ApiModelProperty(value = "开始时间")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime startTime;
|
|
@ApiModelProperty(value = "结束时间")
|
@Excel(name = "结束时间")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime endTime;
|
|
|
|
}
|