|
|
@ -19,7 +19,7 @@ import javax.validation.constraints.NotBlank; |
|
|
|
/** |
|
|
|
* 订单明细 实体类 |
|
|
|
* @author YenHex |
|
|
|
* @since 2025-06-23 |
|
|
|
* @since 2025-06-25 |
|
|
|
*/ |
|
|
|
@Data |
|
|
|
@TableName("oms_sale_order_item_gift") |
|
|
@ -38,20 +38,9 @@ public class OmsSaleOrderItemGift implements Serializable { |
|
|
|
@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; |
|
|
|
|
|
|
@ -63,8 +52,8 @@ public class OmsSaleOrderItemGift implements Serializable { |
|
|
|
@Length(max = 100,message = "商品名称长度不能超过100字") |
|
|
|
private String spuTitle; |
|
|
|
|
|
|
|
/** */ |
|
|
|
@Length(max = 255,message = "长度不能超过255字") |
|
|
|
/** sku标题 */ |
|
|
|
@Length(max = 255,message = "sku标题长度不能超过255字") |
|
|
|
private String skuTitle; |
|
|
|
|
|
|
|
/** sku批次id */ |
|
|
@ -113,10 +102,14 @@ public class OmsSaleOrderItemGift implements Serializable { |
|
|
|
/** 市场价 */ |
|
|
|
private BigDecimal marketPrice; |
|
|
|
|
|
|
|
/** */ |
|
|
|
/** 重量 */ |
|
|
|
private BigDecimal weight; |
|
|
|
|
|
|
|
/** */ |
|
|
|
/** 毛重 */ |
|
|
|
@Length(max = 32,message = "毛重长度不能超过32字") |
|
|
|
private String grossWeight; |
|
|
|
|
|
|
|
/** 体积 */ |
|
|
|
private BigDecimal volume; |
|
|
|
|
|
|
|
/** 备注 */ |
|
|
@ -153,26 +146,45 @@ public class OmsSaleOrderItemGift implements Serializable { |
|
|
|
@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; |
|
|
|
private LocalDate preProductionDate; |
|
|
|
|
|
|
|
/** 生产备注 */ |
|
|
|
@Length(max = 255,message = "生产备注长度不能超过255字") |
|
|
|
private String productionRemark; |
|
|
|
|
|
|
|
|
|
|
|
public static OmsSaleOrderItemGift toNewObject(OmsSaleOrderItem source){ |
|
|
|
OmsSaleOrderItemGift saleOrderItemGift = new OmsSaleOrderItemGift(); |
|
|
|
saleOrderItemGift.setId(source.getId()); |
|
|
|
saleOrderItemGift.setOrderId(source.getOrderId()); |
|
|
|
saleOrderItemGift.setOrderSn(source.getOrderSn()); |
|
|
|
saleOrderItemGift.setGiftItemId(source.getGiftItemId()); |
|
|
|
saleOrderItemGift.setSpuId(source.getSpuId()); |
|
|
|
saleOrderItemGift.setSpuCode(source.getSpuCode()); |
|
|
|
saleOrderItemGift.setSpuTitle(source.getSpuTitle()); |
|
|
|
saleOrderItemGift.setSkuTitle(source.getSkuTitle()); |
|
|
|
saleOrderItemGift.setSkuBatchId(source.getSkuBatchId()); |
|
|
|
saleOrderItemGift.setSkuBatchCode(source.getSkuBatchCode()); |
|
|
|
saleOrderItemGift.setSkuId(source.getSkuId()); |
|
|
|
saleOrderItemGift.setSkuCode(source.getSkuCode()); |
|
|
|
saleOrderItemGift.setSkuAddCode(source.getSkuAddCode()); |
|
|
|
saleOrderItemGift.setSkuUnit(source.getSkuUnit()); |
|
|
|
saleOrderItemGift.setSkuImg(source.getSkuImg()); |
|
|
|
saleOrderItemGift.setSkuBelong(source.getSkuBelong()); |
|
|
|
saleOrderItemGift.setSpecValues(source.getSpecValues()); |
|
|
|
//saleOrderItemGift.setQuantity(source.getQuantity());
|
|
|
|
saleOrderItemGift.setSalesPrice(source.getSalesPrice()); |
|
|
|
saleOrderItemGift.setCusPrice(source.getCusPrice()); |
|
|
|
saleOrderItemGift.setMarketPrice(source.getMarketPrice()); |
|
|
|
saleOrderItemGift.setWeight(source.getWeight()); |
|
|
|
saleOrderItemGift.setVolume(source.getVolume()); |
|
|
|
saleOrderItemGift.setPreProductionDate(source.getPreProductionDate()); |
|
|
|
saleOrderItemGift.setProductionRemark(source.getProductionRemark()); |
|
|
|
return saleOrderItemGift; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|