Commit ed2e66d9 authored by huyuchen's avatar huyuchen

huyc 项目档案代码提交

parent 103178ec
......@@ -30,6 +30,7 @@ import com.yifu.cloud.plus.v1.yifu.archives.service.TElecEmployeeInfoService;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmployeeInfoService;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ClassUtils;
import com.yifu.cloud.plus.v1.yifu.common.core.util.Common;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.core.vo.FileVo;
......@@ -74,9 +75,6 @@ public class TElecEmployeeInfoServiceImpl extends ServiceImpl<TElecEmployeeInfoM
private final TAttaInfoMapper attaInfoMapper;
@Value("${filePath.path}")
private String filePath;
@Override
public boolean save(TElecEmployeeInfo entity) {
return super.save(entity);
......@@ -99,8 +97,8 @@ public class TElecEmployeeInfoServiceImpl extends ServiceImpl<TElecEmployeeInfoM
try {
// String pathName = ResourceUtils.getURL("classpath:").getPath() + "unloap/";
// String dec = ResourceUtils.getURL("classpath:").getPath() + "unloap/";
String pathName = filePath;
String dec = filePath;
String pathName = ClassUtils.getDefaultClassLoader().getResource("").getPath();
String dec = ClassUtils.getDefaultClassLoader().getResource("").getPath();
File file1 = new File(pathName);
//如果文件夹不存在 创建文件夹
if (!file1.exists()) {
......
......@@ -16,11 +16,9 @@ spring:
password: yf_zsk
#url: jdbc:mysql://127.0.0.1:3306/yifu_upms?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
url: jdbc:mysql://192.168.1.65:22306/mvp_archives?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
# servlet:
# multipart:
# location: /data/tmp/
filePath:
path: /data/tmp/
servlet:
multipart:
location: /data/tmp/
#法大大生产环境
#fdd:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment