TaskFrontView.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. package com.cyksj.model.views;
  2. import com.cyksj.model.entity.TaskUserCompleteRecord;
  3. import com.ejlchina.searcher.bean.DbField;
  4. import com.ejlchina.searcher.bean.DbIgnore;
  5. import com.ejlchina.searcher.bean.SearchBean;
  6. import lombok.Getter;
  7. import lombok.Setter;
  8. import java.math.BigDecimal;
  9. /*
  10. *项目名: netflix
  11. *文件名: TaskFrontView
  12. *创建者: JavaZou
  13. *创建时间:2022/12/28 17:21
  14. */
  15. @Getter
  16. @Setter
  17. @SearchBean(tables = "task t left join task_type tt on tt.id = t.type_id" +
  18. " left join coupon c on c.id = t.coupon_id",
  19. where = "t.deleted is true and t.status is true")
  20. public class TaskFrontView {
  21. @DbField("t.id")
  22. private Long id;
  23. @DbField("t.name")
  24. private String name;
  25. @DbField(("t.icon"))
  26. private String icon;
  27. /**
  28. * 类型id
  29. */
  30. @DbField("t.type_id")
  31. private Long typeId;
  32. @DbField("t.description")
  33. private String description;
  34. /**
  35. * 任务时限 time,day,week
  36. */
  37. @DbField("t.task_limit")
  38. private String taskLimit;
  39. @DbField("tt.name")
  40. private String typeName;
  41. @DbField("t.coupon_id")
  42. private Long couponId;
  43. @DbField("c.name")
  44. private String couponName;
  45. /**
  46. * 邀请人数
  47. */
  48. @DbField("t.invite_num")
  49. private Integer inviteNum;
  50. @DbField("t.link")
  51. private String link;
  52. @DbField("t.picture")
  53. private String picture;
  54. @DbField("t.balance")
  55. private BigDecimal balance;
  56. /**
  57. * 个人邀请人数
  58. */
  59. @DbIgnore
  60. private Integer hadInvitedNum;
  61. @DbIgnore
  62. private String phone;
  63. /**
  64. * 积分
  65. */
  66. @DbField("t.points")
  67. private Integer points;
  68. @DbField("t.sorted")
  69. private Integer sorted;
  70. @DbIgnore
  71. private Long taskCompleteRecordId;
  72. @DbIgnore
  73. private TaskUserCompleteRecord.Status status = TaskUserCompleteRecord.Status.waiting;
  74. }