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 emergencyUpdatePath="/admin_save_20.asp";
|
|
/** 调度单创建接口路径 */
|
private String dispatchCreatePath = "/admin_save_24.gds";
|
|
/** 调度单更新接口路径(车辆/人员变更) */
|
private String dispatchUpdatePath = "/admin_save_25.asp";
|
|
/** 任务状态查询接口路径(已弃用,直接查询SQL Server数据库) */
|
@Deprecated
|
private String statusQueryPath = "/task_status_query.asp";
|
|
private String fileUploadUrl;
|
|
private String fileServerUrl;
|
|
/** 连接超时时间(毫秒) */
|
private int connectTimeout = 30000;
|
|
/** 读取超时时间(毫秒) */
|
private int readTimeout = 30000;
|
|
/** 是否启用同步 */
|
private boolean enabled = true;
|
|
/** 字符编码 */
|
private String charset = "UTF-8";
|
|
public String getBaseUrl() {
|
return baseUrl;
|
}
|
|
public String getFileUploadUrl(){
|
return fileUploadUrl;
|
}
|
|
public void setFileUploadUrl(String fileUploadUrl){
|
this.fileUploadUrl = fileUploadUrl;
|
}
|
|
public String getFileServerUrl(){
|
return fileServerUrl;
|
}
|
|
public void setFileServerUrl(String fileServerUrl){
|
this.fileServerUrl = fileServerUrl;
|
}
|
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 String getDispatchUpdatePath() {
|
return dispatchUpdatePath;
|
}
|
|
public void setDispatchUpdatePath(String dispatchUpdatePath) {
|
this.dispatchUpdatePath = dispatchUpdatePath;
|
}
|
|
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;
|
}
|
|
public String getEmergencyUpdateUrl(){
|
return baseUrl+emergencyUpdatePath;
|
}
|
|
/**
|
* 获取完整的调度单创建URL
|
*/
|
public String getDispatchCreateUrl() {
|
return baseUrl + dispatchCreatePath;
|
}
|
|
/**
|
* 获取完整的调度单更新URL(车辆/人员变更)
|
*/
|
public String getDispatchUpdateUrl() {
|
return baseUrl + dispatchUpdatePath;
|
}
|
|
public String getStatusQueryPath() {
|
return statusQueryPath;
|
}
|
|
public void setStatusQueryPath(String statusQueryPath) {
|
this.statusQueryPath = statusQueryPath;
|
}
|
|
/**
|
* 获取完整的状态查询URL
|
*/
|
public String getStatusQueryUrl() {
|
return baseUrl + statusQueryPath;
|
}
|
}
|