liusheng
2026-10-08 0bc3fc0304d163c9e54e4e36f45f72ce1b1d59fb
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
package com.ruoyi.quartz.enums;
 
/**
 * 省立同德门急诊采集:单日采集结果
 * <p>
 * 用于 {@code RyTask#runDayPass} 的返回值,告诉调用方这一天是采完了、预算用尽了,还是接口挂了
 *
 * @author smartor
 */
public enum MzGatherStatusEnum {
 
    /** 该日期已从第一页采到最后一页,整轮完成 */
    DONE("0", "采集完成"),
 
    /** 本轮时间预算用尽,页码断点已保存,下一轮从该页继续 */
    BUDGET_UP("1", "本轮预算用尽"),
 
    /** 接口层连续失败,本轮提前结束,页码断点保留在第一个失败页 */
    FAILED("2", "接口连续失败");
 
    private final String code;
    private final String desc;
 
    MzGatherStatusEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }
 
    public String getCode() {
        return code;
    }
 
    public String getDesc() {
        return desc;
    }
}