package com.kym.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 统计同步日志表
 *
 * @author skyline
 * @since 2026-06-11
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_stat_sync_log")
public class StatSyncLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    public static final String TYPE_DAILY = "DAILY";
    public static final String TYPE_MONTHLY = "MONTHLY";

    public static final int STATUS_IN_PROGRESS = 0;
    public static final int STATUS_SUCCESS = 1;
    public static final int STATUS_FAILED = 2;

    private String statType;
    private String statKey;
    private String stationId;
    private Integer syncStatus;
    private Long syncBy;
    private String syncByName;
    private String errorMsg;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
}
