17 changed files with 399 additions and 35 deletions
@ -0,0 +1,55 @@ |
|||||
|
package com.qs.serve.modules.oms.entity.vo; |
||||
|
|
||||
|
import com.qs.serve.modules.oms.entity.OmsPromotionGiftGoods; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
|
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author YenHex |
||||
|
* @since 2025/6/9 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OmsPromotionGiftItemVo { |
||||
|
|
||||
|
private Long id; |
||||
|
|
||||
|
/** 通案id */ |
||||
|
@NotNull(message = "通案id不能为空") |
||||
|
private Long giftId; |
||||
|
|
||||
|
/** 商品类型 */ |
||||
|
@Length(max = 255,message = "商品类型长度不能超过255字") |
||||
|
private String goodsType; |
||||
|
|
||||
|
/** 商品id */ |
||||
|
private Long goodsId; |
||||
|
|
||||
|
/** 商品编码 */ |
||||
|
@Length(max = 255,message = "商品编码长度不能超过255字") |
||||
|
private String goodsCode; |
||||
|
|
||||
|
/** 商品名称 */ |
||||
|
@Length(max = 255,message = "商品名称长度不能超过255字") |
||||
|
private String goodsName; |
||||
|
|
||||
|
/** 起订量 */ |
||||
|
private Integer minPurchaseQty; |
||||
|
|
||||
|
/** 满足数量 */ |
||||
|
private Integer meetQty; |
||||
|
|
||||
|
/** 赠品数量 */ |
||||
|
private Integer giftQty; |
||||
|
|
||||
|
private Integer goodsFlag; |
||||
|
|
||||
|
/** 备注 */ |
||||
|
@Length(max = 255,message = "备注长度不能超过255字") |
||||
|
private String remark; |
||||
|
|
||||
|
List<OmsPromotionGiftGoods> goodsList; |
||||
|
|
||||
|
} |
@ -0,0 +1,61 @@ |
|||||
|
package com.qs.serve.modules.oms.entity.vo; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.*; |
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import com.qs.serve.modules.oms.entity.OmsPromotionGiftCenter; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDateTime; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 搭赠科目项 实体类 |
||||
|
* @author YenHex |
||||
|
* @since 2025-06-05 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OmsPromotionGiftSubjectVo implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** id */ |
||||
|
@TableId(type = IdType.AUTO) |
||||
|
private Long id; |
||||
|
|
||||
|
/** 搭赠id */ |
||||
|
@NotNull(message = "搭赠id不能为空") |
||||
|
private Long giftId; |
||||
|
|
||||
|
/** 科目id */ |
||||
|
@NotNull(message = "科目id不能为空") |
||||
|
private Long subjectId; |
||||
|
|
||||
|
/** 科目编码 */ |
||||
|
@NotBlank(message = "科目编码不能为空") |
||||
|
@Length(max = 50,message = "科目编码长度不能超过50字") |
||||
|
private String subjectCode; |
||||
|
|
||||
|
/** 科目名称 */ |
||||
|
@NotBlank(message = "科目名称不能为空") |
||||
|
@Length(max = 50,message = "科目名称长度不能超过50字") |
||||
|
private String subjectName; |
||||
|
|
||||
|
/** 科目比例 */ |
||||
|
private BigDecimal subjectRate; |
||||
|
|
||||
|
/** 备注 */ |
||||
|
@Length(max = 255,message = "备注长度不能超过255字") |
||||
|
private String remark; |
||||
|
|
||||
|
List<OmsPromotionGiftCenter> centerList; |
||||
|
|
||||
|
} |
||||
|
|
Loading…
Reference in new issue