Material.java 4.2 KB

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