package com.fizz.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 业务发送批次表 biz_send_job
 *
 * @author Cascade
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("biz_send_job")
public class BizSendJob extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 批次ID */
    @TableId(type = IdType.AUTO)
    private Integer jobId;

    /** 业务唯一键, 用于幂等控制 */
    private String bizKey;

    /** 目标设备/产线名称 (如 CGL_LINE_1, FURNACE_A) */
    private String deviceName;

    /** 计划发送时间 */
    private Date planSendTime;

    /** 实际开始发送时间 */
    private Date actualSendTime;

    /** 发送完成时间 */
    private Date finishTime;

    /** 批次状态: PENDING, IN_PROGRESS, COMPLETED, PARTIAL_SUCCESS, FAILED */
    private String status;

    /** 操作员ID */
    private Long operatorId;

    /** 操作员姓名 */
    private String operatorName;

    // 解决 BaseEntity 字段导致的未知列问题
    @com.baomidou.mybatisplus.annotation.TableField(exist = false)
    private String searchValue;
    @com.baomidou.mybatisplus.annotation.TableField(exist = false)
    private java.util.Map<String,Object> params;

//    GroupType
    private String groupType;
}

