Material.java 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. package com.jsh.erp.datasource.entities;
  2. import io.swagger.annotations.ApiModelProperty;
  3. import lombok.Data;
  4. import lombok.experimental.Accessors;
  5. import java.math.BigDecimal;
  6. import java.util.Date;
  7. import java.util.List;
  8. /**
  9. * 产品表实体类(商品信息)
  10. */
  11. @Data
  12. @Accessors(chain = true)
  13. public class Material {
  14. @ApiModelProperty("主键id")
  15. private Long id;
  16. @ApiModelProperty("产品类型id")
  17. private Long categoryId;
  18. @ApiModelProperty("产品名称")
  19. private String name;
  20. @ApiModelProperty("型号")
  21. private String model;
  22. @ApiModelProperty("规格")
  23. private String standard;
  24. @ApiModelProperty("品牌")
  25. private String brand;
  26. @ApiModelProperty("助记码")
  27. private String mnemonic;
  28. @ApiModelProperty("颜色")
  29. private String color;
  30. @ApiModelProperty("单位-单个")
  31. private String unit;
  32. @ApiModelProperty("备注")
  33. private String remark;
  34. @ApiModelProperty("图片名称")
  35. private String imgName;
  36. @ApiModelProperty("计量单位Id")
  37. private Long unitId;
  38. @ApiModelProperty("基础重量(kg)")
  39. private BigDecimal weight;
  40. @ApiModelProperty("启用 0-禁用 1-启用")
  41. private Boolean enabled;
  42. @ApiModelProperty("自定义1")
  43. private String otherField1;
  44. @ApiModelProperty("自定义2")
  45. private String otherField2;
  46. @ApiModelProperty("自定义3")
  47. private String otherField3;
  48. @ApiModelProperty("是否开启序列号,0否,1是")
  49. private String enableSerialNumber;
  50. @ApiModelProperty("是否开启批号,0否,1是")
  51. private String enableBatchNumber;
  52. @ApiModelProperty("租户id")
  53. private Long tenantId;
  54. @ApiModelProperty("删除标记,0未删除,1删除")
  55. private String deleteFlag;
  56. @ApiModelProperty("系统sku")
  57. private String systemSku;
  58. @ApiModelProperty("无动销提醒周期")
  59. private String movingPinReminderCycle;
  60. private List<MaterialExtend> list;
  61. public void setName(String name) {
  62. this.name = name == null ? null : name.trim();
  63. }
  64. public void setModel(String model) {
  65. this.model = model == null ? null : model.trim();
  66. }
  67. public void setStandard(String standard) {
  68. this.standard = standard == null ? null : standard.trim();
  69. }
  70. public void setBrand(String brand) {
  71. this.brand = brand == null ? null : brand.trim();
  72. }
  73. public void setMnemonic(String mnemonic) {
  74. this.mnemonic = mnemonic == null ? null : mnemonic.trim();
  75. }
  76. public void setColor(String color) {
  77. this.color = color == null ? null : color.trim();
  78. }
  79. public void setUnit(String unit) {
  80. this.unit = unit == null ? null : unit.trim();
  81. }
  82. public void setRemark(String remark) {
  83. this.remark = remark == null ? null : remark.trim();
  84. }
  85. public void setImgName(String imgName) {
  86. this.imgName = imgName == null ? null : imgName.trim();
  87. }
  88. public void setOtherField1(String otherField1) {
  89. this.otherField1 = otherField1 == null ? null : otherField1.trim();
  90. }
  91. public void setOtherField2(String otherField2) {
  92. this.otherField2 = otherField2 == null ? null : otherField2.trim();
  93. }
  94. public void setOtherField3(String otherField3) {
  95. this.otherField3 = otherField3 == null ? null : otherField3.trim();
  96. }
  97. public void setEnableSerialNumber(String enableSerialNumber) {
  98. this.enableSerialNumber = enableSerialNumber == null ? null : enableSerialNumber.trim();
  99. }
  100. public void setEnableBatchNumber(String enableBatchNumber) {
  101. this.enableBatchNumber = enableBatchNumber == null ? null : enableBatchNumber.trim();
  102. }
  103. public void setDeleteFlag(String deleteFlag) {
  104. this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
  105. }
  106. }