| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- package com.cyksj.model.views;
- import com.cyksj.model.entity.TaskUserCompleteRecord;
- import com.ejlchina.searcher.bean.DbField;
- import com.ejlchina.searcher.bean.DbIgnore;
- import com.ejlchina.searcher.bean.SearchBean;
- import lombok.Getter;
- import lombok.Setter;
- import java.math.BigDecimal;
- /*
- *项目名: netflix
- *文件名: TaskFrontView
- *创建者: JavaZou
- *创建时间:2022/12/28 17:21
- */
- @Getter
- @Setter
- @SearchBean(tables = "task t left join task_type tt on tt.id = t.type_id" +
- " left join coupon c on c.id = t.coupon_id",
- where = "t.deleted is true and t.status is true")
- public class TaskFrontView {
- @DbField("t.id")
- private Long id;
- @DbField("t.name")
- private String name;
- /**
- * 类型id
- */
- @DbField("t.type_id")
- private Long typeId;
- @DbField("t.description")
- private String description;
- /**
- * 任务时限 time,day,week
- */
- @DbField("t.task_limit")
- private String taskLimit;
- @DbField("tt.name")
- private String typeName;
- @DbField("t.coupon_id")
- private Long couponId;
- @DbField("c.name")
- private String couponName;
- /**
- * 邀请人数
- */
- @DbField("t.invite_num")
- private Integer inviteNum;
- @DbField("t.link")
- private String link;
- @DbField("t.picture")
- private String picture;
- @DbField("t.balance")
- private BigDecimal balance;
- /**
- * 个人邀请人数
- */
- @DbIgnore
- private Integer hadInvitedNum;
- @DbIgnore
- private String phone;
- /**
- * 积分
- */
- @DbField("t.points")
- private Integer points;
- @DbField("t.sorted")
- private Integer sorted;
- @DbIgnore
- private Long taskCompleteRecordId;
- @DbIgnore
- private TaskUserCompleteRecord.Status status = TaskUserCompleteRecord.Status.waiting;
- }
|