package com.ruoyi.energymeter.pojo;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
|
import java.io.Serializable;
|
import java.time.LocalDate;
|
import java.time.LocalDateTime;
|
|
/**
|
* 一次自动、手动或历史补采的同步批次。
|
*/
|
@Data
|
@TableName("energy_meter_sync_run")
|
@Schema(description = "水电表同步批次")
|
public class EnergyMeterSyncRun implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
@Schema(description = "批次唯一键")
|
private String runKey;
|
|
@Schema(description = "SCHEDULED/MANUAL/BACKFILL")
|
private String triggerType;
|
|
@Schema(description = "计划执行日")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private LocalDate scheduleDate;
|
|
@Schema(description = "同步开始日期")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private LocalDate rangeStart;
|
|
@Schema(description = "同步结束日期")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private LocalDate rangeEnd;
|
|
@Schema(description = "批次状态")
|
private String status;
|
|
private Integer totalTasks;
|
|
private Integer successTasks;
|
|
private Integer emptyTasks;
|
|
private Integer failedTasks;
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime startedAt;
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime finishedAt;
|
|
@Schema(description = "脱敏错误摘要")
|
private String errorSummary;
|
|
private Long createUser;
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime createTime;
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime updateTime;
|
}
|