Mall2PointsRulesEntity.java 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. package com.kmall.admin.entity.vip;
  2. import java.io.Serializable;
  3. import java.math.BigDecimal;
  4. import java.util.Date;
  5. /**
  6. * 积分规则表实体
  7. * 表名 mall2_points_rules
  8. *
  9. * @author emato
  10. * @email admin@qhdswl.com
  11. * @date 2020-06-15 10:44:07
  12. */
  13. public class Mall2PointsRulesEntity implements Serializable, Comparable<Mall2PointsRulesEntity> {
  14. private static final long serialVersionUID = 1L;
  15. /**
  16. * 主键
  17. */
  18. private Integer mprId;
  19. /**
  20. * 积分类型 :0.门店 ,1.商品类别,2.门店商品',数字越大,优先级越高
  21. */
  22. private Integer pointsType;
  23. /**
  24. * 积分类型 :0.门店 ,1.商品类别,2.门店商品'
  25. */
  26. private String pointsTypeStr;
  27. /**
  28. * 积分规则适用开始时间
  29. */
  30. private Date pointsBeginTime;
  31. /**
  32. * 积分规则适用结束时间
  33. */
  34. private Date pointsEndTime;
  35. /**
  36. * 积分规则是否有效
  37. */
  38. private String isValid;
  39. /**
  40. * 创建人编号
  41. */
  42. private String createrSn;
  43. /**
  44. * 创建时间,yyyy-MM-dd HH:mm:ss
  45. */
  46. private Date createTime;
  47. /**
  48. * 修改人编号
  49. */
  50. private String moderSn;
  51. /**
  52. * 修改时间,yyyy-MM-dd HH:mm:ss
  53. */
  54. private Date modTime;
  55. /**
  56. * 时间戳
  57. */
  58. private Date tstm;
  59. /**
  60. * 备注
  61. */
  62. private String remark;
  63. //积分金额
  64. private BigDecimal pointsRulesMoney;
  65. //对应积分数
  66. private String pointsRulesNum;
  67. //赠送积分
  68. private String handselIntegral;
  69. //积分比例
  70. private BigDecimal pointsProportion;
  71. /**
  72. * 设置:主键
  73. */
  74. public void setMprId(Integer mprId) {
  75. this.mprId = mprId;
  76. }
  77. /**
  78. * 获取:主键
  79. */
  80. public Integer getMprId() {
  81. return mprId;
  82. }
  83. /**
  84. * 设置:积分类型 00.按金额 10.按数量
  85. */
  86. public void setPointsType(Integer pointsType) {
  87. this.pointsType = pointsType;
  88. }
  89. /**
  90. * 获取:积分类型 00.按金额 10.按数量
  91. */
  92. public Integer getPointsType() {
  93. return pointsType;
  94. }
  95. /**
  96. * 设置:积分规则适用开始时间
  97. */
  98. public void setPointsBeginTime(Date pointsBeginTime) {
  99. this.pointsBeginTime = pointsBeginTime;
  100. }
  101. /**
  102. * 获取:积分规则适用开始时间
  103. */
  104. public Date getPointsBeginTime() {
  105. return pointsBeginTime;
  106. }
  107. /**
  108. * 设置:积分规则适用结束时间
  109. */
  110. public void setPointsEndTime(Date pointsEndTime) {
  111. this.pointsEndTime = pointsEndTime;
  112. }
  113. /**
  114. * 获取:积分规则适用结束时间
  115. */
  116. public Date getPointsEndTime() {
  117. return pointsEndTime;
  118. }
  119. /**
  120. * 设置:积分规则是否有效
  121. */
  122. public void setIsValid(String isValid) {
  123. this.isValid = isValid;
  124. }
  125. /**
  126. * 获取:积分规则是否有效
  127. */
  128. public String getIsValid() {
  129. return isValid;
  130. }
  131. /**
  132. * 设置:创建人编号
  133. */
  134. public void setCreaterSn(String createrSn) {
  135. this.createrSn = createrSn;
  136. }
  137. /**
  138. * 获取:创建人编号
  139. */
  140. public String getCreaterSn() {
  141. return createrSn;
  142. }
  143. /**
  144. * 设置:创建时间,yyyy-MM-dd HH:mm:ss
  145. */
  146. public void setCreateTime(Date createTime) {
  147. this.createTime = createTime;
  148. }
  149. /**
  150. * 获取:创建时间,yyyy-MM-dd HH:mm:ss
  151. */
  152. public Date getCreateTime() {
  153. return createTime;
  154. }
  155. /**
  156. * 设置:修改人编号
  157. */
  158. public void setModerSn(String moderSn) {
  159. this.moderSn = moderSn;
  160. }
  161. /**
  162. * 获取:修改人编号
  163. */
  164. public String getModerSn() {
  165. return moderSn;
  166. }
  167. /**
  168. * 设置:修改时间,yyyy-MM-dd HH:mm:ss
  169. */
  170. public void setModTime(Date modTime) {
  171. this.modTime = modTime;
  172. }
  173. /**
  174. * 获取:修改时间,yyyy-MM-dd HH:mm:ss
  175. */
  176. public Date getModTime() {
  177. return modTime;
  178. }
  179. /**
  180. * 设置:时间戳
  181. */
  182. public void setTstm(Date tstm) {
  183. this.tstm = tstm;
  184. }
  185. /**
  186. * 获取:时间戳
  187. */
  188. public Date getTstm() {
  189. return tstm;
  190. }
  191. public String getRemark() {
  192. return remark;
  193. }
  194. public void setRemark(String remark) {
  195. this.remark = remark;
  196. }
  197. public BigDecimal getPointsRulesMoney() {
  198. return pointsRulesMoney;
  199. }
  200. public void setPointsRulesMoney(BigDecimal pointsRulesMoney) {
  201. this.pointsRulesMoney = pointsRulesMoney;
  202. }
  203. public String getPointsRulesNum() {
  204. return pointsRulesNum;
  205. }
  206. public void setPointsRulesNum(String pointsRulesNum) {
  207. this.pointsRulesNum = pointsRulesNum;
  208. }
  209. public String getHandselIntegral() {
  210. return handselIntegral;
  211. }
  212. public void setHandselIntegral(String handselIntegral) {
  213. this.handselIntegral = handselIntegral;
  214. }
  215. public BigDecimal getPointsProportion() {
  216. return pointsProportion;
  217. }
  218. public void setPointsProportion(BigDecimal pointsProportion) {
  219. this.pointsProportion = pointsProportion;
  220. }
  221. public String getPointsTypeStr() {
  222. return pointsTypeStr;
  223. }
  224. public void setPointsTypeStr(String pointsTypeStr) {
  225. this.pointsTypeStr = pointsTypeStr;
  226. }
  227. /**
  228. * 排序用
  229. * @param o 传进来的对象
  230. * @return 结果
  231. */
  232. @Override
  233. public int compareTo(Mall2PointsRulesEntity o) {
  234. if (this.getPointsType() < o.getPointsType()) {
  235. return 1;
  236. } else {
  237. return -1;
  238. }
  239. }
  240. }