切换mysql为达梦数据库-代码审查
1.systemboot模块
This commit is contained in:
@@ -17,4 +17,9 @@ public interface BizParamConstant {
|
||||
String STAT_BIZ_WEEK = "4";
|
||||
String STAT_BIZ_DAY = "5";
|
||||
|
||||
|
||||
/**
|
||||
* 顶级父ID
|
||||
*/
|
||||
String PARENT_ID = "0";
|
||||
}
|
||||
|
||||
@@ -83,6 +83,11 @@ public interface PatternRegex {
|
||||
*/
|
||||
String DIC_REGEX = "^[\\w\\u4E00-\\u9FA5()()_/、/, /,\\- ]+\\.?[\\w\\u4E00-\\u9FA5()()I II III IV V /]{0,125}$";
|
||||
|
||||
/**
|
||||
* 中文正则
|
||||
*/
|
||||
String CHINESE_REGEX = "^[\\u4e00-\\u9fa5]+$";
|
||||
|
||||
/**
|
||||
* 密码有效期(月)1-3月
|
||||
*/
|
||||
|
||||
@@ -21,9 +21,7 @@ public interface ServerInfo {
|
||||
String REPORT = "report-boot";
|
||||
String SYSTEM = "system-boot";
|
||||
String ENERGY = "energy-boot";
|
||||
String JOB_ADMIN = "job-admin";
|
||||
String USER = "user-boot";
|
||||
String JOB = "job-admin";
|
||||
String QUALITY = "quality-boot";
|
||||
String PROCESS = "process-boot";
|
||||
String PREPARE_BOOT = "prepare-boot";
|
||||
|
||||
@@ -134,10 +134,6 @@ public class FileStorageUtil {
|
||||
/**
|
||||
* 上传InputStream流,并指定文件的名称
|
||||
* @author xuyang
|
||||
* @param inputStream
|
||||
* @param dir
|
||||
* @param fileName
|
||||
* @return
|
||||
*/
|
||||
public String uploadStreamSpecifyName(InputStream inputStream, String dir, String fileName) {
|
||||
String filePath;
|
||||
@@ -243,26 +239,6 @@ public class FileStorageUtil {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取下载文件流
|
||||
*
|
||||
* @param filePath
|
||||
* @return
|
||||
* @throws IOException
|
||||
*/
|
||||
public InputStream downloadStream(String filePath) {
|
||||
InputStream inputStream;
|
||||
try {
|
||||
if (generalInfo.getBusinessFileStorage() == GeneralConstant.HUAWEI_OBS) {
|
||||
inputStream = obsUtil.downloadStream(filePath);
|
||||
} else {
|
||||
inputStream = minIoUtils.downloadStream(minIossProperties.getBucket(), filePath);
|
||||
}
|
||||
} catch (Exception exception) {
|
||||
throw new BusinessException(OssResponseEnum.DOWNLOAD_FILE_STREAM_ERROR);
|
||||
}
|
||||
return inputStream;
|
||||
}
|
||||
|
||||
/***
|
||||
* 根据文件路径删除指定文件对象
|
||||
|
||||
Reference in New Issue
Block a user