package com.sckw.fleet.model;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 司机行为规则表
 * 表名：kwf_driver_conduct_rules
 *
 * @author donglang
 * @date 2025-12-04
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("kwf_driver_conduct_rules")
public class KwfDriverConductRules implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 企业id
     */
    @TableField("ent_id")
    private Long entId;

    /**
     * 单趟严重超时
     */
    @TableField("unload_serious_timeout_score")
    private Integer unloadSeriousTimeoutScore;

    /**
     * 单趟严重超时倍数
     */
    @TableField("unload_serious_timeout_multiple")
    private BigDecimal unloadSeriousTimeoutMultiple;

    /**
     * 单据错误/缺失
     */
    @TableField("document_error_missing_score")
    private Integer documentErrorMissingScore;

    /**
     * 未按时到场
     */
    @TableField("not_on_time_arrive_score")
    private Integer notOnTimeArriveScore;

    /**
     * 虚假卸货
     */
    @TableField("fake_unload_score")
    private Integer fakeUnloadScore;

    /**
     * 虚假卸货偏差距离
     */
    @TableField("fake_unload_distance")
    private Integer fakeUnloadDistance;

    /**
     * 违规取消运单
     */
    @TableField("illegal_cancel_order_score")
    private Integer illegalCancelOrderScore;

    /**
     * 违规取消运单分钟数
     */
    @TableField("illegal_cancel_order_minutes")
    private Integer illegalCancelOrderMinutes;

    /**
     * 连续按时到场
     */
    @TableField("continuous_on_time_arrive_score")
    private Integer continuousOnTimeArriveScore;

    /**
     * 连续按时到场次数
     */
    @TableField("continuous_on_time_arrive_times")
    private Integer continuousOnTimeArriveTimes;

    /**
     * 连续准时卸货
     */
    @TableField("continuous_on_time_unload_score")
    private Integer continuousOnTimeUnloadScore;

    /**
     * 连续准时卸货次数
     */
    @TableField("continuous_on_time_unload_times")
    private Integer continuousOnTimeUnloadTimes;

    /**
     * 连续准确填写卸货信息
     */
    @TableField("continuous_accurate_unload_score")
    private Integer continuousAccurateUnloadScore;

    /**
     * 连续准确填写卸货信息次数
     */
    @TableField("continuous_accurate_unload_times")
    private Integer continuousAccurateUnloadTimes;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT) // 插入时自动填充
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) // 插入/更新时自动填充
    private Date updateTime;

    /**
     * 创建人（用户ID，默认-1）
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 更新人（用户ID，默认-1）
     */
    @TableField(value = "update_user", fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

}
