diff --git a/epmet-module/epmet-oss/epmet-oss-server/pom.xml b/epmet-module/epmet-oss/epmet-oss-server/pom.xml
index ea11cf21ef..2d154e0fe3 100644
--- a/epmet-module/epmet-oss/epmet-oss-server/pom.xml
+++ b/epmet-module/epmet-oss/epmet-oss-server/pom.xml
@@ -131,7 +131,7 @@
-
+
epmet
elink@833066
@@ -161,7 +161,7 @@
-
+
epmet
elink@833066
diff --git a/epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/controller/OssController.java b/epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/controller/OssController.java
index 1630b63225..dd7256c27b 100644
--- a/epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/controller/OssController.java
+++ b/epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/controller/OssController.java
@@ -107,7 +107,7 @@ public class OssController {
OssEntity ossEntity = new OssEntity();
ossEntity.setUrl(url);
ossEntity.setCreateDate(new Date());
- ossService.insert(ossEntity);
+ ossService.insertOssEntity(ossEntity);
//文件信息
UploadDTO dto = new UploadDTO();
diff --git a/epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/dao/OssDao.java b/epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/dao/OssDao.java
index 79f8b14823..3d57a9424e 100644
--- a/epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/dao/OssDao.java
+++ b/epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/dao/OssDao.java
@@ -20,4 +20,5 @@ import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface OssDao extends BaseDao {
+ int insertOssEntity(String url);
}
diff --git a/epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/service/OssService.java b/epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/service/OssService.java
index d1100a686b..b688001b02 100644
--- a/epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/service/OssService.java
+++ b/epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/service/OssService.java
@@ -22,4 +22,6 @@ import java.util.Map;
public interface OssService extends BaseService {
PageData page(Map params);
+
+ int insertOssEntity(OssEntity ossEntity);
}
diff --git a/epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/service/impl/OssServiceImpl.java b/epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/service/impl/OssServiceImpl.java
index 60ad3a91fe..b235163e81 100644
--- a/epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/service/impl/OssServiceImpl.java
+++ b/epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/service/impl/OssServiceImpl.java
@@ -31,4 +31,9 @@ public class OssServiceImpl extends BaseServiceImpl implement
);
return getPageData(page, OssEntity.class);
}
+
+ @Override
+ public int insertOssEntity(OssEntity ossEntity) {
+ return baseDao.insertOssEntity(ossEntity.getUrl());
+ }
}
diff --git a/epmet-module/epmet-oss/epmet-oss-server/src/main/resources/mapper/SysOssDao.xml b/epmet-module/epmet-oss/epmet-oss-server/src/main/resources/mapper/SysOssDao.xml
index 4e15504edb..57994ca119 100644
--- a/epmet-module/epmet-oss/epmet-oss-server/src/main/resources/mapper/SysOssDao.xml
+++ b/epmet-module/epmet-oss/epmet-oss-server/src/main/resources/mapper/SysOssDao.xml
@@ -3,5 +3,11 @@
-
+
+ INSERT INTO `sys_oss` ( `url`, `creator`, `create_date` )
+ VALUES
+ ( #{url},
+ "1",
+ now( ) )
+