package com.cyl.manager.staff.domain;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.ruoyi.common.core.domain.BaseAudit;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 答题记录表
 * </p>
 *
 * @author 谷瑶
 * @since 2024-12-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "staff_answer_record", autoResultMap = true)
@ApiModel(value = "StaffAnswerRecord对象", description = "答题记录表")
public class StaffAnswerRecord extends BaseAudit {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty("记录id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("员工id")
    @TableField("staff_id")
    private Long staffId;

    @ApiModelProperty("员工名称")
    @TableField("staff_name")
    private Long staffName;


    @ApiModelProperty("答案")
    @TableField(value = "answer", typeHandler = FastjsonTypeHandler.class)
    private List<TrainCheckAnswer> answer;

    @ApiModelProperty("审核留言")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("状态 0未审核 1审核中 2审核通过 3审核不通过")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("删除标识")
    @TableField("del_flag")
    private Integer delFlag;
}
