CouponInfo.java 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. package com.yijia.coupon.domain;
  2. import java.math.BigDecimal;
  3. import java.util.Date;
  4. import java.util.List;
  5. import com.fasterxml.jackson.annotation.JsonFormat;
  6. import com.fasterxml.jackson.annotation.JsonIgnore;
  7. import org.apache.commons.lang3.builder.ToStringBuilder;
  8. import org.apache.commons.lang3.builder.ToStringStyle;
  9. import com.yijia.common.annotation.Excel;
  10. import com.yijia.common.core.domain.BaseEntity;
  11. /**
  12. * 优惠劵对象 coupon_info
  13. *
  14. * @author yijia
  15. * @date 2021-08-09
  16. */
  17. public class CouponInfo extends BaseEntity
  18. {
  19. private static final long serialVersionUID = 1L;
  20. /** $column.columnComment */
  21. private Integer id;
  22. /** 油站ID */
  23. @Excel(name = "油站ID")
  24. private Long stationId;
  25. /** 优惠劵名称 */
  26. @Excel(name = "优惠劵名称")
  27. private String couponName;
  28. /** 优惠劵类型 1现金劵,2折扣券,3兑换券 */
  29. @Excel(name = "优惠劵类型 1现金劵,2折扣券,3兑换券")
  30. private String couponType;
  31. /** 优惠券使用门槛金额 */
  32. @Excel(name = "优惠券使用门槛金额")
  33. private Long couponThresholdAmt;
  34. /** 优惠劵使用门槛类型。 1.无门槛,2满减劵,3折扣 */
  35. @Excel(name = "优惠劵使用门槛类型。 1.无门槛,2满减劵,3折扣")
  36. private String useDiscountType;
  37. /** 油品 */
  38. @Excel(name = "油品")
  39. private String oilName;
  40. /** 1 汽油,2 柴油,3非油品,4LNG 5 CNG */
  41. @Excel(name = "1 汽油,2 柴油,3非油品,4LNG 5 CNG")
  42. private String oilType;
  43. /** 优惠劵面值,金额,折扣比例 */
  44. @Excel(name = "优惠劵面值,金额,折扣比例")
  45. private BigDecimal couponAmt;
  46. /** 优惠劵数量 */
  47. @Excel(name = "优惠劵数量")
  48. private Integer couponNum;
  49. /** 优惠劵持有张数 */
  50. private Integer couponHoldNum;
  51. /** 有效时间类型: 1,固定时间;2,领取后x天内有效 */
  52. @Excel(name = "有效时间类型: 1,固定时间;2,领取后x天内有效")
  53. private String effectiveTimeType;
  54. /** 固定时间-有效开始时间 */
  55. @JsonFormat(pattern = "yyyy-MM-dd")
  56. @Excel(name = "固定时间-有效开始时间", width = 30, dateFormat = "yyyy-MM-dd")
  57. private Date effectiveTimeStart;
  58. /** 固定时间-有效结束时间 */
  59. @JsonFormat(pattern = "yyyy-MM-dd")
  60. @Excel(name = "固定时间-有效结束时间", width = 30, dateFormat = "yyyy-MM-dd")
  61. private Date effectiveTimeEnd;
  62. /** 有效天数 */
  63. @Excel(name = "有效天数")
  64. private Integer effectiveDayNum;
  65. /** 优惠劵领取数量 */
  66. @Excel(name = "优惠劵领取数量")
  67. private Integer couponReceiveNum;
  68. /**优惠劵累计领用数量*/
  69. private Integer couponCumulativeNum;
  70. /**优惠劵累计使用数量*/
  71. private Integer couponUseNum;
  72. /** 发放平台,1.微信 2支付宝 */
  73. @Excel(name = "发放平台,1.微信 2支付宝")
  74. private String openPlatform;
  75. /** 优惠内容*/
  76. private String couponDetails;
  77. /** 发放状态:0,未发放;1,已发放; */
  78. @Excel(name = "发放状态:0,未发放;1,已发放;")
  79. private String grantStatus;
  80. /** 有效状态:0,未生效; 1,生效;2,失效; */
  81. @Excel(name = "有效状态:0,未生效; 1,生效;2,失效;")
  82. private String status;
  83. /** 是否删除优惠劵 1是 0 否 */
  84. private String delFlag;
  85. /** 优惠劵 站点id **/
  86. private String verification;
  87. /**优惠卷站点id*/
  88. private List<Integer> verificationList;
  89. private List<String> oilNameList;
  90. /**是否开启电子卡*/
  91. private String isCardFlag;
  92. /**是否开启等级*/
  93. private String isGradeFlag;
  94. /**是否开启营销*/
  95. private String isMarketFlag;
  96. private String editFlag;
  97. private String appointedDays;
  98. private String cycleDays;
  99. private String availableControl;
  100. private List<String> appointedDaysList;
  101. private List<String> cycleDaysList;
  102. public List<String> getAppointedDaysList() {
  103. return appointedDaysList;
  104. }
  105. public void setAppointedDaysList(List<String> appointedDaysList) {
  106. this.appointedDaysList = appointedDaysList;
  107. }
  108. public List<String> getCycleDaysList() {
  109. return cycleDaysList;
  110. }
  111. public void setCycleDaysList(List<String> cycleDaysList) {
  112. this.cycleDaysList = cycleDaysList;
  113. }
  114. public String getAppointedDays() {
  115. return appointedDays;
  116. }
  117. public void setAppointedDays(String appointedDays) {
  118. this.appointedDays = appointedDays;
  119. }
  120. public String getCycleDays() {
  121. return cycleDays;
  122. }
  123. public void setCycleDays(String cycleDays) {
  124. this.cycleDays = cycleDays;
  125. }
  126. public String getAvailableControl() {
  127. return availableControl;
  128. }
  129. public void setAvailableControl(String availableControl) {
  130. this.availableControl = availableControl;
  131. }
  132. public String getEditFlag() {
  133. return editFlag;
  134. }
  135. public void setEditFlag(String editFlag) {
  136. this.editFlag = editFlag;
  137. }
  138. /**
  139. * 时间数组
  140. */
  141. private List<String> effectiveTime;
  142. public String getIsCardFlag() {
  143. return isCardFlag;
  144. }
  145. public void setIsCardFlag(String isCardFlag) {
  146. this.isCardFlag = isCardFlag;
  147. }
  148. public String getIsGradeFlag() {
  149. return isGradeFlag;
  150. }
  151. public void setIsGradeFlag(String isGradeFlag) {
  152. this.isGradeFlag = isGradeFlag;
  153. }
  154. public String getIsMarketFlag() {
  155. return isMarketFlag;
  156. }
  157. public void setIsMarketFlag(String isMarketFlag) {
  158. this.isMarketFlag = isMarketFlag;
  159. }
  160. public List<String> getEffectiveTime() {
  161. return effectiveTime;
  162. }
  163. public void setEffectiveTime(List<String> effectiveTime) {
  164. this.effectiveTime = effectiveTime;
  165. }
  166. public List<String> getOilNameList() {
  167. return oilNameList;
  168. }
  169. public void setOilNameList(List<String> oilNameList) {
  170. this.oilNameList = oilNameList;
  171. }
  172. public Integer getCouponCumulativeNum() {
  173. return couponCumulativeNum;
  174. }
  175. public void setCouponCumulativeNum(Integer couponCumulativeNum) {
  176. this.couponCumulativeNum = couponCumulativeNum;
  177. }
  178. public Integer getCouponUseNum() {
  179. return couponUseNum;
  180. }
  181. public void setCouponUseNum(Integer couponUseNum) {
  182. this.couponUseNum = couponUseNum;
  183. }
  184. public List<Integer> getVerificationList() {
  185. return verificationList;
  186. }
  187. public void setVerificationList(List<Integer> verificationList) {
  188. this.verificationList = verificationList;
  189. }
  190. public String getVerification() {
  191. return verification;
  192. }
  193. public void setVerification(String verification) {
  194. this.verification = verification;
  195. }
  196. public void setId(Integer id)
  197. {
  198. this.id = id;
  199. }
  200. public Integer getId()
  201. {
  202. return id;
  203. }
  204. public Integer getCouponNum() {
  205. return couponNum;
  206. }
  207. public void setCouponNum(Integer couponNum) {
  208. this.couponNum = couponNum;
  209. }
  210. public Integer getCouponHoldNum() {
  211. return couponHoldNum;
  212. }
  213. public void setCouponHoldNum(Integer couponHoldNum) {
  214. this.couponHoldNum = couponHoldNum;
  215. }
  216. public String getCouponDetails() {
  217. return couponDetails;
  218. }
  219. public void setCouponDetails(String couponDetails) {
  220. this.couponDetails = couponDetails;
  221. }
  222. public Long getStationId() {
  223. return stationId;
  224. }
  225. public void setStationId(Long stationId) {
  226. this.stationId = stationId;
  227. }
  228. public void setCouponName(String couponName)
  229. {
  230. this.couponName = couponName;
  231. }
  232. public String getCouponName()
  233. {
  234. return couponName;
  235. }
  236. public void setCouponType(String couponType)
  237. {
  238. this.couponType = couponType;
  239. }
  240. public String getCouponType()
  241. {
  242. return couponType;
  243. }
  244. public void setCouponThresholdAmt(Long couponThresholdAmt)
  245. {
  246. this.couponThresholdAmt = couponThresholdAmt;
  247. }
  248. public Long getCouponThresholdAmt()
  249. {
  250. return couponThresholdAmt;
  251. }
  252. public void setUseDiscountType(String useDiscountType)
  253. {
  254. this.useDiscountType = useDiscountType;
  255. }
  256. public String getUseDiscountType()
  257. {
  258. return useDiscountType;
  259. }
  260. public void setOilName(String oilName)
  261. {
  262. this.oilName = oilName;
  263. }
  264. public String getOilName()
  265. {
  266. return oilName;
  267. }
  268. public void setOilType(String oilType)
  269. {
  270. this.oilType = oilType;
  271. }
  272. public String getOilType()
  273. {
  274. return oilType;
  275. }
  276. public void setCouponAmt(BigDecimal couponAmt)
  277. {
  278. this.couponAmt = couponAmt;
  279. }
  280. public BigDecimal getCouponAmt()
  281. {
  282. return couponAmt;
  283. }
  284. public void setEffectiveTimeType(String effectiveTimeType)
  285. {
  286. this.effectiveTimeType = effectiveTimeType;
  287. }
  288. public String getEffectiveTimeType()
  289. {
  290. return effectiveTimeType;
  291. }
  292. public void setEffectiveTimeStart(Date effectiveTimeStart)
  293. {
  294. this.effectiveTimeStart = effectiveTimeStart;
  295. }
  296. public Date getEffectiveTimeStart()
  297. {
  298. return effectiveTimeStart;
  299. }
  300. public void setEffectiveTimeEnd(Date effectiveTimeEnd)
  301. {
  302. this.effectiveTimeEnd = effectiveTimeEnd;
  303. }
  304. public Date getEffectiveTimeEnd()
  305. {
  306. return effectiveTimeEnd;
  307. }
  308. public void setEffectiveDayNum(Integer effectiveDayNum)
  309. {
  310. this.effectiveDayNum = effectiveDayNum;
  311. }
  312. public Integer getEffectiveDayNum()
  313. {
  314. return effectiveDayNum;
  315. }
  316. public void setCouponReceiveNum(Integer couponReceiveNum)
  317. {
  318. this.couponReceiveNum = couponReceiveNum;
  319. }
  320. public Integer getCouponReceiveNum()
  321. {
  322. return couponReceiveNum;
  323. }
  324. public void setOpenPlatform(String openPlatform)
  325. {
  326. this.openPlatform = openPlatform;
  327. }
  328. public String getOpenPlatform()
  329. {
  330. return openPlatform;
  331. }
  332. public void setGrantStatus(String grantStatus)
  333. {
  334. this.grantStatus = grantStatus;
  335. }
  336. public String getGrantStatus()
  337. {
  338. return grantStatus;
  339. }
  340. public void setStatus(String status)
  341. {
  342. this.status = status;
  343. }
  344. public String getStatus()
  345. {
  346. return status;
  347. }
  348. public void setDelFlag(String delFlag)
  349. {
  350. this.delFlag = delFlag;
  351. }
  352. public String getDelFlag()
  353. {
  354. return delFlag;
  355. }
  356. @Override
  357. public String toString() {
  358. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  359. .append("id", getId())
  360. .append("stationId", getStationId())
  361. .append("couponName", getCouponName())
  362. .append("couponType", getCouponType())
  363. .append("couponThresholdAmt", getCouponThresholdAmt())
  364. .append("useDiscountType", getUseDiscountType())
  365. .append("oilName", getOilName())
  366. .append("oilType", getOilType())
  367. .append("couponAmt",getCouponAmt())
  368. .append("couponNum",getCouponNum())
  369. .append("effectiveTimeType", getEffectiveTimeType())
  370. .append("effectiveTimeStart", getEffectiveTimeStart())
  371. .append("effectiveTimeEnd", getEffectiveTimeEnd())
  372. .append("effectiveDayNum", getEffectiveDayNum())
  373. .append("couponReceiveNum", getCouponReceiveNum())
  374. .append("openPlatform", getOpenPlatform())
  375. .append("grantStatus", getGrantStatus())
  376. .append("status", getStatus())
  377. .append("createBy", getCreateBy())
  378. .append("createTime", getCreateTime())
  379. .append("updateBy", getUpdateBy())
  380. .append("updateTime", getUpdateTime())
  381. .append("delFlag", getDelFlag())
  382. .append("verification", getVerification())
  383. .toString();
  384. }
  385. }