package com.hotwj.platform.securityManagement.violationInfo.domain.bo;

import com.hotwj.platform.securityManagement.violationInfo.domain.HotViolationInfo;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

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

/**
 * 违规信息业务对象 hot_violation_info
 *
 * @author shihongwei
 * @date 2026-01-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotViolationInfo.class, reverseConvertGenerate = false)
public class HotViolationInfoBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 公司ID
     */
    @NotNull(message = "公司ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long companyId;

    /**
     * 车辆ID
     */
    @NotNull(message = "车辆ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long vehicleId;

    /**
     * 车牌号
     */
    private String plateNumber;

    /**
     * 驾驶员ID
     */
    @NotNull(message = "驾驶员ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private String driverId;

    /**
     * 驾驶员姓名
     */
    private String driverName;

    /**
     * 违规类型
     */
    @NotNull(message = "违规类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long violationType;

    /**
     * 开单部门
     */
    private Long billingDepartment;

    /**
     * 是否酒驾醉驾 0=否 1=是
     */
    @NotNull(message = "是否酒驾醉驾 0=否 1=是不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long isDrunkDriving;

    /**
     * 发生时间
     */
    @NotNull(message = "发生时间不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date occurTime;

    /**
     * 违章编号
     */
    private String violationNo;

    /**
     * 罚款金额
     */
    private BigDecimal fineAmount;

    /**
     * 扣分数
     */
    private Long deductPoints;

    /**
     * 扣分类型
     */
    private Long deductionType;

    /**
     * 记录人ID
     */
    @NotNull(message = "记录人ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long recorderId;

    /**
     * 记录人姓名
     */
    private String recorderName;

    /**
     * 是否需要约谈 0=否 1=是
     */
    @NotNull(message = "是否需要约谈 0=否 1=是不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long needInterview;

    /**
     * 违规地点
     */
    @NotBlank(message = "违规地点不能为空", groups = {AddGroup.class, EditGroup.class})
    private String violationPlace;

    /**
     * 违规内容
     */
    @NotBlank(message = "违规内容不能为空", groups = {AddGroup.class, EditGroup.class})
    private String violationContent;

    /**
     * 处理情况
     */
    private String disposalResult;

    /**
     * 备注
     */
    private String remark;

    /**
     * 违规附件URL
     */
    private String attachmentUrls;

    /**
     * 负责人签名
     */
    @NotBlank(message = "负责人签名不能为空", groups = {AddGroup.class, EditGroup.class})
    private String responsibleSignatureImage;

    /**
     * 当事人签名
     */
    private String partySignatureImage;

    /**
     * 约谈时间
     */
    private Date interviewTime;

    /**
     * 约谈地点
     */
    private String interviewPlace;

    /**
     * 约谈记录人ID
     */
    private Long interviewRecorderId;

    /**
     * 约谈记录人姓名
     */
    private String interviewRecorderName;

    /**
     * 约谈人ID
     */
    private Long interviewPersonId;

    /**
     * 约谈人姓名
     */
    private String interviewPersonName;

    /**
     * 约谈原因
     */
    private String interviewReason;

    /**
     * 谈话内容
     */
    private String interviewContent;

    /**
     * 承诺书url列表
     */
    private String promiseUrls;

    /**
     * 约谈照片url列表
     */
    private String interviewPhotoUrls;

    /**
     * 约谈人签名图片
     */
    private String interviewerSignatureImage;

    /**
     * 被约谈人签名图片
     */
    private String interviewedSignatureImage;

    /**
     * 处理状态
     */
    private Long processStatus;

    /**
     * 0=正常, 1=已删除
     */
//    @NotNull(message = "0=正常, 1=已删除不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long isDeleted;


}
