TaskFrontView.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. /**
  26. * 类型id
  27. */
  28. @DbField("t.type_id")
  29. private Long typeId;
  30. @DbField("t.description")
  31. private String description;
  32. /**
  33. * 任务时限 time,day,week
  34. */
  35. @DbField("t.task_limit")
  36. private String taskLimit;
  37. @DbField("tt.name")
  38. private String typeName;
  39. @DbField("t.coupon_id")
  40. private Long couponId;
  41. @DbField("c.name")
  42. private String couponName;
  43. /**
  44. * 邀请人数
  45. */
  46. @DbField("t.invite_num")
  47. private Integer inviteNum;
  48. @DbField("t.link")
  49. private String link;
  50. @DbField("t.picture")
  51. private String picture;
  52. @DbField("t.balance")
  53. private BigDecimal balance;
  54. /**
  55. * 个人邀请人数
  56. */
  57. @DbIgnore
  58. private Integer hadInvitedNum;
  59. @DbIgnore
  60. private String phone;
  61. /**
  62. * 积分
  63. */
  64. @DbField("t.points")
  65. private Integer points;
  66. @DbField("t.sorted")
  67. private Integer sorted;
  68. @DbIgnore
  69. private Long taskCompleteRecordId;
  70. @DbIgnore
  71. private TaskUserCompleteRecord.Status status = TaskUserCompleteRecord.Status.waiting;
  72. }