liusheng
8 天以前 f0a09ee996ab2605869844d6a3d812709e2bf0fa
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
package com.ruoyi.quartz.constant;
 
import java.time.format.DateTimeFormatter;
 
/**
 * 省立同德门急诊采集固定常量(不需要在 sys_config 里配的那些)
 *
 * @author smartor
 */
public class MzGatherConstant {
 
    private MzGatherConstant() {
    }
 
    /** 省立同德机构ID */
    public static final String ORG_ID = "20001001";
 
    /** 断点等缓存保留时长(小时),默认 30 天 */
    public static final long CACHE_TTL_HOURS = 24L * 30L;
 
    /** 单页在本轮内的重试次数 */
    public static final int PAGE_RETRY_TIMES = 3;
 
    /** 单页重试间隔(毫秒) */
    public static final long PAGE_RETRY_SLEEP_MS = 2000L;
 
    /** 连续多少页接口失败就判定"接口整体不可用",本轮提前结束,不再空转后面几十页 */
    public static final int MAX_CONSECUTIVE_PAGE_FAIL = 3;
 
    /** 来未来接口只支持按天查,时间参数传 yyyy-MM-dd */
    public static final DateTimeFormatter DAY_FMT = DateTimeFormatter.ofPattern("yyyy-MM-dd");
 
    /** 日志与断点里用的时间格式 */
    public static final DateTimeFormatter MINUTE_FMT = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
}