5 changed files with 202 additions and 15 deletions
@ -0,0 +1,178 @@ |
|||||
|
package com.qs.serve.modules.oms.entity; |
||||
|
|
||||
|
import java.time.LocalDate; |
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.*; |
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
|
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* 订单明细 实体类 |
||||
|
* @author YenHex |
||||
|
* @since 2025-06-23 |
||||
|
*/ |
||||
|
@Data |
||||
|
@TableName("oms_sale_order_item_gift") |
||||
|
public class OmsSaleOrderItemGift implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** id */ |
||||
|
@TableId(type = IdType.AUTO) |
||||
|
private Long id; |
||||
|
|
||||
|
/** 订单id */ |
||||
|
private Long orderId; |
||||
|
|
||||
|
/** 订单sn */ |
||||
|
@Length(max = 32,message = "订单sn长度不能超过32字") |
||||
|
private String orderSn; |
||||
|
|
||||
|
/** erpId */ |
||||
|
@Length(max = 36,message = "erpId长度不能超过36字") |
||||
|
private String orderErpId; |
||||
|
|
||||
|
/** erp明细id */ |
||||
|
@Length(max = 36,message = "erp明细id长度不能超过36字") |
||||
|
private String orderErpItemId; |
||||
|
|
||||
|
/** 搭赠ItemId */ |
||||
|
private Long giftItemId; |
||||
|
|
||||
|
/** erp删除状态 */ |
||||
|
private Integer erpDelFlag; |
||||
|
|
||||
|
/** 商品id */ |
||||
|
private Long spuId; |
||||
|
|
||||
|
/** 商品编码 */ |
||||
|
@Length(max = 20,message = "商品编码长度不能超过20字") |
||||
|
private String spuCode; |
||||
|
|
||||
|
/** 商品名称 */ |
||||
|
@Length(max = 100,message = "商品名称长度不能超过100字") |
||||
|
private String spuTitle; |
||||
|
|
||||
|
/** */ |
||||
|
@Length(max = 255,message = "长度不能超过255字") |
||||
|
private String skuTitle; |
||||
|
|
||||
|
/** sku批次id */ |
||||
|
private Long skuBatchId; |
||||
|
|
||||
|
/** sku批次编码 */ |
||||
|
@Length(max = 255,message = "sku批次编码长度不能超过255字") |
||||
|
private String skuBatchCode; |
||||
|
|
||||
|
/** skuId */ |
||||
|
private Long skuId; |
||||
|
|
||||
|
/** sku编码 */ |
||||
|
@Length(max = 50,message = "sku编码长度不能超过50字") |
||||
|
private String skuCode; |
||||
|
|
||||
|
/** sku添加编码 */ |
||||
|
@Length(max = 50,message = "sku添加编码长度不能超过50字") |
||||
|
private String skuAddCode; |
||||
|
|
||||
|
/** sku单位 */ |
||||
|
@Length(max = 20,message = "sku单位长度不能超过20字") |
||||
|
private String skuUnit; |
||||
|
|
||||
|
/** sku图片 */ |
||||
|
@Length(max = 255,message = "sku图片长度不能超过255字") |
||||
|
private String skuImg; |
||||
|
|
||||
|
/** 产地 */ |
||||
|
@Length(max = 255,message = "产地长度不能超过255字") |
||||
|
private String skuBelong; |
||||
|
|
||||
|
/** 规格值 */ |
||||
|
@Length(max = 255,message = "规格值长度不能超过255字") |
||||
|
private String specValues; |
||||
|
|
||||
|
/** 数量 */ |
||||
|
private Integer quantity; |
||||
|
|
||||
|
/** 销售价 */ |
||||
|
private BigDecimal salesPrice; |
||||
|
|
||||
|
/** 客户价 */ |
||||
|
private BigDecimal cusPrice; |
||||
|
|
||||
|
/** 市场价 */ |
||||
|
private BigDecimal marketPrice; |
||||
|
|
||||
|
/** */ |
||||
|
private BigDecimal weight; |
||||
|
|
||||
|
/** */ |
||||
|
private BigDecimal volume; |
||||
|
|
||||
|
/** 备注 */ |
||||
|
@Length(max = 255,message = "备注长度不能超过255字") |
||||
|
private String remark; |
||||
|
|
||||
|
/** 最后更新时间 */ |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@TableField(fill = FieldFill.UPDATE) |
||||
|
private LocalDateTime updateTime; |
||||
|
|
||||
|
/** 创建时间 */ |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@TableField(fill = FieldFill.INSERT) |
||||
|
private LocalDateTime createTime; |
||||
|
|
||||
|
/** 所属租户 */ |
||||
|
@JsonIgnore |
||||
|
@JsonProperty |
||||
|
private String tenantId; |
||||
|
|
||||
|
/** 逻辑删除标记(0:显示;1:隐藏) */ |
||||
|
@JsonIgnore |
||||
|
@JsonProperty |
||||
|
private String delFlag; |
||||
|
|
||||
|
/** 创建人 */ |
||||
|
@TableField(fill = FieldFill.INSERT) |
||||
|
private String createBy; |
||||
|
|
||||
|
/** 更新人 */ |
||||
|
@TableField(fill = FieldFill.UPDATE) |
||||
|
private String updateBy; |
||||
|
|
||||
|
/** */ |
||||
|
@Length(max = 32,message = "长度不能超过32字") |
||||
|
private String grossWeight; |
||||
|
|
||||
|
/** */ |
||||
|
@Length(max = 255,message = "长度不能超过255字") |
||||
|
private String version; |
||||
|
|
||||
|
/** */ |
||||
|
private Integer erpDelStatus; |
||||
|
|
||||
|
/** 预估排产时间 */ |
||||
|
@Length(max = 0,message = "预估排产时间长度不能超过0字") |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
private LocalDateTime preProductionDate; |
||||
|
|
||||
|
/** 生产备注 */ |
||||
|
@Length(max = 255,message = "生产备注长度不能超过255字") |
||||
|
private String productionRemark; |
||||
|
|
||||
|
} |
||||
|
|
Loading…
Reference in new issue