Goods.java 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. package com.miniframe.model.system;
  2. import com.miniframe.system.MiniserviceBaseModel;
  3. import java.io.Serializable;
  4. import java.util.Date;
  5. import javax.persistence.*;
  6. public class Goods extends MiniserviceBaseModel implements Serializable {
  7. @Id
  8. private String id;
  9. private String name;
  10. /**
  11. * 描述
  12. */
  13. private String description;
  14. @Column(name = "create_time")
  15. private Date createTime;
  16. @Column(name = "update_time")
  17. private Date updateTime;
  18. /**
  19. * 原价
  20. */
  21. private String price;
  22. /**
  23. * 销售价
  24. */
  25. @Column(name = "sale_price")
  26. private String salePrice;
  27. /**
  28. * 计价单位 1-*数量 0-一次整体
  29. */
  30. @Column(name = "sale_unit")
  31. private String saleUnit;
  32. /**
  33. * 商品编码
  34. */
  35. @Column(name = "goods_code")
  36. private String goodsCode;
  37. /**
  38. * 价格介质 1-积分 2-人民币
  39. */
  40. @Column(name = "price_media")
  41. private String priceMedia;
  42. /**
  43. * 1-充值 2-增加子账户上限
  44. */
  45. private String type;
  46. /**
  47. * 购买的商品数量
  48. */
  49. @Column(name = "return_goods")
  50. private String returnGoods;
  51. /**
  52. * 折扣设置
  53. */
  54. private String discount;
  55. /**
  56. * 商品说明
  57. */
  58. private String remarks;
  59. /**
  60. * 子类型
  61. */
  62. @Column(name = "sub_type")
  63. private String subType;
  64. private static final long serialVersionUID = 1L;
  65. /**
  66. * @return id
  67. */
  68. public String getId() {
  69. return id;
  70. }
  71. /**
  72. * @param id
  73. */
  74. public void setId(String id) {
  75. this.id = id == null ? null : id.trim();
  76. }
  77. /**
  78. * @return name
  79. */
  80. public String getName() {
  81. return name;
  82. }
  83. /**
  84. * @param name
  85. */
  86. public void setName(String name) {
  87. this.name = name == null ? null : name.trim();
  88. }
  89. /**
  90. * 获取描述
  91. *
  92. * @return description - 描述
  93. */
  94. public String getDescription() {
  95. return description;
  96. }
  97. /**
  98. * 设置描述
  99. *
  100. * @param description 描述
  101. */
  102. public void setDescription(String description) {
  103. this.description = description == null ? null : description.trim();
  104. }
  105. /**
  106. * @return create_time
  107. */
  108. public Date getCreateTime() {
  109. return createTime;
  110. }
  111. /**
  112. * @param createTime
  113. */
  114. public void setCreateTime(Date createTime) {
  115. this.createTime = createTime;
  116. }
  117. /**
  118. * @return update_time
  119. */
  120. public Date getUpdateTime() {
  121. return updateTime;
  122. }
  123. /**
  124. * @param updateTime
  125. */
  126. public void setUpdateTime(Date updateTime) {
  127. this.updateTime = updateTime;
  128. }
  129. /**
  130. * 获取原价
  131. *
  132. * @return price - 原价
  133. */
  134. public String getPrice() {
  135. return price;
  136. }
  137. /**
  138. * 设置原价
  139. *
  140. * @param price 原价
  141. */
  142. public void setPrice(String price) {
  143. this.price = price == null ? null : price.trim();
  144. }
  145. /**
  146. * 获取销售价
  147. *
  148. * @return sale_price - 销售价
  149. */
  150. public String getSalePrice() {
  151. return salePrice;
  152. }
  153. /**
  154. * 设置销售价
  155. *
  156. * @param salePrice 销售价
  157. */
  158. public void setSalePrice(String salePrice) {
  159. this.salePrice = salePrice == null ? null : salePrice.trim();
  160. }
  161. /**
  162. * 获取计价单位 1-*数量 0-一次整体
  163. *
  164. * @return sale_unit - 计价单位 1-*数量 0-一次整体
  165. */
  166. public String getSaleUnit() {
  167. return saleUnit;
  168. }
  169. /**
  170. * 设置计价单位 1-*数量 0-一次整体
  171. *
  172. * @param saleUnit 计价单位 1-*数量 0-一次整体
  173. */
  174. public void setSaleUnit(String saleUnit) {
  175. this.saleUnit = saleUnit == null ? null : saleUnit.trim();
  176. }
  177. /**
  178. * 获取商品编码
  179. *
  180. * @return goods_code - 商品编码
  181. */
  182. public String getGoodsCode() {
  183. return goodsCode;
  184. }
  185. /**
  186. * 设置商品编码
  187. *
  188. * @param goodsCode 商品编码
  189. */
  190. public void setGoodsCode(String goodsCode) {
  191. this.goodsCode = goodsCode == null ? null : goodsCode.trim();
  192. }
  193. /**
  194. * 获取价格介质 1-积分 2-人民币
  195. *
  196. * @return price_media - 价格介质 1-积分 2-人民币
  197. */
  198. public String getPriceMedia() {
  199. return priceMedia;
  200. }
  201. /**
  202. * 设置价格介质 1-积分 2-人民币
  203. *
  204. * @param priceMedia 价格介质 1-积分 2-人民币
  205. */
  206. public void setPriceMedia(String priceMedia) {
  207. this.priceMedia = priceMedia == null ? null : priceMedia.trim();
  208. }
  209. /**
  210. * 获取1-充值 2-增加子账户上限
  211. *
  212. * @return type - 1-充值 2-增加子账户上限
  213. */
  214. public String getType() {
  215. return type;
  216. }
  217. /**
  218. * 设置1-充值 2-增加子账户上限
  219. *
  220. * @param type 1-充值 2-增加子账户上限
  221. */
  222. public void setType(String type) {
  223. this.type = type == null ? null : type.trim();
  224. }
  225. /**
  226. * 获取购买的商品数量
  227. *
  228. * @return return_goods - 购买的商品数量
  229. */
  230. public String getReturnGoods() {
  231. return returnGoods;
  232. }
  233. /**
  234. * 设置购买的商品数量
  235. *
  236. * @param returnGoods 购买的商品数量
  237. */
  238. public void setReturnGoods(String returnGoods) {
  239. this.returnGoods = returnGoods == null ? null : returnGoods.trim();
  240. }
  241. /**
  242. * 获取折扣设置
  243. *
  244. * @return discount - 折扣设置
  245. */
  246. public String getDiscount() {
  247. return discount;
  248. }
  249. /**
  250. * 设置折扣设置
  251. *
  252. * @param discount 折扣设置
  253. */
  254. public void setDiscount(String discount) {
  255. this.discount = discount == null ? null : discount.trim();
  256. }
  257. /**
  258. * 获取商品说明
  259. *
  260. * @return remarks - 商品说明
  261. */
  262. public String getRemarks() {
  263. return remarks;
  264. }
  265. /**
  266. * 设置商品说明
  267. *
  268. * @param remarks 商品说明
  269. */
  270. public void setRemarks(String remarks) {
  271. this.remarks = remarks == null ? null : remarks.trim();
  272. }
  273. /**
  274. * 获取子类型
  275. *
  276. * @return sub_type - 子类型
  277. */
  278. public String getSubType() {
  279. return subType;
  280. }
  281. /**
  282. * 设置子类型
  283. *
  284. * @param subType 子类型
  285. */
  286. public void setSubType(String subType) {
  287. this.subType = subType == null ? null : subType.trim();
  288. }
  289. }