package com.ylx.point.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ylx.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ylx.common.annotation.Excel;

/**
 * 用户活动任务完成对象 point_user_activity_task_completion
 *
 * @author wzj
 * @date 2026-03-25
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class PointUserActivityTaskCompletion extends BaseEntity {
    private static final long serialVersionUID = 3546693435566695697L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 活动ID
     */
    @Excel(name = "活动ID")
    private Long activityId;

    /**
     * 任务ID
     */
    @Excel(name = "任务ID")
    private Long taskId;

    /**
     * 1-活动 2-签到
     */
    @Excel(name = "1-活动 2-签到")
    private Integer taskType;

    /**
     * 用户ID
     */
    @Excel(name = "用户的openID")
    private String openId;

    /**
     * 该任务已完成次数
     */
    @Excel(name = "该任务已完成次数")
    private Integer completedCount;

    /**
     * 最后完成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastCompletedTime;

    /**
     * 最后完成日期（生成列）
     */
    @Excel(name = "最后完成日期", readConverterExp = "生=成列")
    private Date completedDate;

    @TableField(exist = false)
    private String createBy;

    @TableField(exist = false)
    private String updateBy;

}
