增加新模块klp-mes制造执行下面的设备管理功能的后端实现
This commit is contained in:
@@ -40,7 +40,14 @@ public class KLPConfig {
|
||||
* 缓存懒加载
|
||||
*/
|
||||
private boolean cacheLazy;
|
||||
/** 上传路径 */
|
||||
private static String profile;
|
||||
|
||||
|
||||
public static String getProfile()
|
||||
{
|
||||
return profile;
|
||||
}
|
||||
/**
|
||||
* 获取地址开关
|
||||
*/
|
||||
@@ -50,5 +57,18 @@ public class KLPConfig {
|
||||
public void setAddressEnabled(boolean addressEnabled) {
|
||||
KLPConfig.addressEnabled = addressEnabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取导入上传路径
|
||||
*/
|
||||
public static String getImportPath()
|
||||
{
|
||||
return getProfile() + "/import";
|
||||
}
|
||||
/**
|
||||
* 获取下载路径
|
||||
*/
|
||||
public static String getDownloadPath()
|
||||
{
|
||||
return getProfile() + "/download/";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user