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="WorkerIntegralRecord对象", description="工程师积分变动记录")
public class WorkerIntegralRecord extends Model<WorkerIntegralRecord> {

    private static final long serialVersionUID=1L;

    @TableId(value = "worker_score_id", type = IdType.ID_WORKER_STR)
    private String workerScoreId;

    @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 workerOrderNo;

    @ApiModelProperty(value = "类型  INSTALL 安装 REPAIR 维修")
    private String type;

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

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

    @ApiModelProperty(value = "换算积分")
    private BigDecimal changeScoreConversion;

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

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

    @ApiModelProperty(value = "说明")
    private String notes;

    @ApiModelProperty(value = "备注")
    private String remark;

    @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;

    @ApiModelProperty(value = "ADD 加分  DEL减分")
    private String upType;

    @ApiModelProperty(value = "网点工程师id")
    private String websitWorkerId;

    @ApiModelProperty(value = "网点id")
    private String websitId;

    @ApiModelProperty(value = "来源那个积分配置")
    private String integralQualityId;


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

}
