wlzboy
2025-10-25 a5b842f1f6ab32f1af39f4bcb7e45217e94db761
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
package com.ruoyi.common.config;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
/**
 * 旧系统配置
 * 
 * @author ruoyi
 */
@Component
@ConfigurationProperties(prefix = "legacy.system")
public class LegacySystemConfig {
    
    /** 旧系统基础URL */
    private String baseUrl;
    
    /** 急救转运创建接口路径 */
    private String emergencyCreatePath = "/admin_save_19.gds";
    
    /** 调度单创建接口路径 */
    private String dispatchCreatePath = "/admin_save_24.gds";
    
    /** 连接超时时间(毫秒) */
    private int connectTimeout = 30000;
    
    /** 读取超时时间(毫秒) */
    private int readTimeout = 30000;
    
    /** 是否启用同步 */
    private boolean enabled = true;
    
    /** 字符编码 */
    private String charset = "UTF-8";
 
    public String getBaseUrl() {
        return baseUrl;
    }
 
    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }
 
    public String getEmergencyCreatePath() {
        return emergencyCreatePath;
    }
 
    public void setEmergencyCreatePath(String emergencyCreatePath) {
        this.emergencyCreatePath = emergencyCreatePath;
    }
 
    public String getDispatchCreatePath() {
        return dispatchCreatePath;
    }
 
    public void setDispatchCreatePath(String dispatchCreatePath) {
        this.dispatchCreatePath = dispatchCreatePath;
    }
 
    public int getConnectTimeout() {
        return connectTimeout;
    }
 
    public void setConnectTimeout(int connectTimeout) {
        this.connectTimeout = connectTimeout;
    }
 
    public int getReadTimeout() {
        return readTimeout;
    }
 
    public void setReadTimeout(int readTimeout) {
        this.readTimeout = readTimeout;
    }
 
    public boolean isEnabled() {
        return enabled;
    }
 
    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }
 
    public String getCharset() {
        return charset;
    }
 
    public void setCharset(String charset) {
        this.charset = charset;
    }
    
    /**
     * 获取完整的急救转运创建URL
     */
    public String getEmergencyCreateUrl() {
        return baseUrl + emergencyCreatePath;
    }
    
    /**
     * 获取完整的调度单创建URL
     */
    public String getDispatchCreateUrl() {
        return baseUrl + dispatchCreatePath;
    }
}