gongchunyi
4 天以前 e9b4ceeea014f9d81263672f3d9c46a567c39591
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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;
}