package com.ruoyi.ems.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.huashe.common.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 能源策略对象 adm_op_energy_strategy
 *
 * @author ruoyi
 * @date 2024-08-08
 */
@Data
public class OpEnergyStrategy extends BaseEntity
{
    private Long id;
    private String areaCode;
    private String strategyCode;
    private String strategyName;
    private String sceneType;
    private String strategyCategory;
    private Integer triggerType;
    private String triggerConfig;
    private Integer strategyState;
    private Integer priority;
    private String strategyDesc;
    private Integer execMode;
    private Integer timeout;
    private Integer retryTimes;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastExecTime;
    private Integer lastExecResult;
    private Integer execCount;
    private Integer successCount;
    private Integer failCount;
    private Integer version;

    private String createBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private String updateBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
