GoodsWholesale.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. package com.cyksj.model.entity;
  2. import com.baomidou.mybatisplus.annotation.FieldStrategy;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.ejlchina.searcher.bean.DbIgnore;
  5. import lombok.Getter;
  6. import lombok.Setter;
  7. import java.math.BigDecimal;
  8. import java.util.List;
  9. /**
  10. * 项目名: yhlxj
  11. * 文件名: GoodsWholesale
  12. * 创建者: JavaZou
  13. * 创建时间:2024/8/21 15:48
  14. */
  15. @Getter
  16. @Setter
  17. public class GoodsWholesale extends BaseEntity{
  18. private Long goodsId;
  19. private Long skuId;
  20. @TableField(updateStrategy = FieldStrategy.IGNORED)
  21. private String skuName;
  22. private String config;
  23. @DbIgnore
  24. @TableField(exist = false)
  25. private List<GoodsWholesaleConfig> wholesaleConfig;
  26. /**
  27. * 返差价
  28. */
  29. private Boolean isReturn;
  30. /**
  31. * 图片
  32. */
  33. @TableField(updateStrategy = FieldStrategy.IGNORED)
  34. private String picture;
  35. private Integer sorted;
  36. private Boolean status;
  37. private Boolean deleted;
  38. @Getter
  39. @Setter
  40. public static class GoodsWholesaleConfig {
  41. /**
  42. * 开始个数
  43. */
  44. private Integer start;
  45. /**
  46. * 结束个数
  47. * 填999就代表无穷大
  48. */
  49. private Integer end;
  50. /**
  51. * 每个单价
  52. */
  53. private BigDecimal single;
  54. }
  55. }