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.math.BigDecimal;
import java.util.Date;

/**
 * 业务发送项历史表 biz_send_job_item
 *
 * @author Cascade
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("biz_send_job_item")
public class BizSendJobItem extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 发送项ID */
    @TableId(type = IdType.AUTO)
    private Integer itemId;

    /** 所属批次ID (冗余) */
    private Integer jobId;

    /** 所属分组ID */
    private Integer groupId;

    /** 参数业务编码 */
    private String paramCode;

    /** 设定地址 (OPC地址) */
    private String address;

    /** 设定的原始值 */
    private String valueRaw;

    /** 设定值的数值形式 */
    private BigDecimal valueNum;

    /** 参数的设定时间 */
    private Date setTime;

    /** 发送结果: PENDING, SUCCESS, FAILED */
    private String resultStatus;

    /** 结果消息 */
    private String resultMsg;

    /** 重试次数 */
    private Integer retryCount;

    // 解决 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;
}

