package com.zfire.jiasm.syncdata.plus.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 积分申请变动记录
 * </p>
 *
 * @author gejiang
 * @since 2023-07-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="IntegralWorkerApply对象", description="积分申请变动记录")
public class IntegralWorkerApply extends Model<IntegralWorkerApply> {

    private static final long serialVersionUID=1L;

    @TableId(value = "apply_id", type = IdType.ID_WORKER_STR)
    private String applyId;

    @ApiModelProperty(value = "工程师id")
    private String workerId;

    @ApiModelProperty(value = "师傅名称")
    private String workerName;

    @ApiModelProperty(value = "移动电话")
    private String mobile;

    @ApiModelProperty(value = "身份证")
    private String idcard;

    @ApiModelProperty(value = "申请人")
    private String applyName;

    @ApiModelProperty(value = "申请内容")
    private String notes;

    @ApiModelProperty(value = "积分类型 QUALITY 质量分 SKILL 技能分 SERVICE 服务分")
    private String type;

    @ApiModelProperty(value = "变动积分")
    private BigDecimal changeScore;

    @ApiModelProperty(value = "变更前积分")
    private BigDecimal beforeScore;

    @ApiModelProperty(value = "变更后积分")
    private BigDecimal afterScore;

    @ApiModelProperty(value = "审批结果 WAIT=待审核  OK=审核通过  FAIL=不通过")
    private String examineStatus;

    @ApiModelProperty(value = "审核意见")
    private String examineRemark;

    @ApiModelProperty(value = "审批时间")
    private Date examineTime;

    @ApiModelProperty(value = "审核人")
    private String examineName;

    @ApiModelProperty(value = "审核人编码")
    private String examineCode;

    @ApiModelProperty(value = "创建人（制单人）")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.applyId;
    }

}
