AppActManageVO.java 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. package com.poyee.common.domain.vo;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import jdk.nashorn.internal.ir.annotations.Ignore;
  4. import lombok.Data;
  5. import java.io.Serializable;
  6. import java.util.Date;
  7. /**
  8. * @Description
  9. * @Author poyee
  10. * @Date 2022-08-03
  11. */
  12. @Data
  13. public class AppActManageVO implements Serializable {
  14. private static final long serialVersionUID = 4351720037552230067L;
  15. private Long id;
  16. /**
  17. * 活动类型
  18. */
  19. private String type;
  20. /**
  21. * 子类型,point,times
  22. */
  23. private String subType;
  24. /**
  25. * 活动名称
  26. */
  27. private String name;
  28. /**
  29. * 活动图片
  30. */
  31. private String imgUrl;
  32. /**
  33. * 描述
  34. */
  35. private String description;
  36. /**
  37. * 积分要求
  38. */
  39. private Integer point;
  40. private String limitTimeType;
  41. private Integer limitTime;
  42. private Integer limitTimeNum;
  43. /**每日限购总数*/
  44. private Integer dayLimitNum;
  45. /**
  46. * 商家id
  47. */
  48. private Long merchantId;
  49. /**
  50. * 商家name
  51. */
  52. private String merchantName;
  53. /**
  54. * 状态:1开启,0关闭
  55. */
  56. private Integer status;
  57. /**
  58. * 开始时间
  59. */
  60. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  61. private Date startTime;
  62. /**
  63. * 结束时间
  64. */
  65. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  66. private Date endTime;
  67. //@Ignore
  68. //private List<AppActPrizeDTO> prizeList;
  69. /**用户余次数*/
  70. @Ignore
  71. private Integer userTimes;
  72. /**初始赠送次数*/
  73. private Integer defaultTimes;
  74. /**排行榜奖励描述*/
  75. private String rankPrizeImg;
  76. /**最终大奖描述*/
  77. private String lastPrizeDesc;
  78. /**消耗积分类型,默认common:通用积分*/
  79. private String pointType;
  80. /**规则json配置*/
  81. private String ruleConfig;
  82. @Ignore
  83. private Long actStartTimestamp;
  84. @Ignore
  85. private Long actEndTimestamp;
  86. public Long getActStartTimestamp() {
  87. if (startTime != null) {
  88. return startTime.getTime();
  89. }
  90. return actStartTimestamp;
  91. }
  92. public Long getActEndTimestamp() {
  93. if (endTime != null) {
  94. return endTime.getTime();
  95. }
  96. return actEndTimestamp;
  97. }
  98. }