Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
6cc231db
Commit
6cc231db
authored
Jan 13, 2022
by
284718418@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.优化代码-上传文件超时
2.文件操作日志添加物理删除标记字段
parent
543a9731
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
src/main/java/cn/timer/api/bean/disk/DiskFilesLog.java
+5
-0
src/main/java/cn/timer/api/config/sftp/SftpConfiguration.java
+2
-2
src/main/resources/mapping/disk/DiskFilesLogMapper.xml
+1
-0
No files found.
src/main/java/cn/timer/api/bean/disk/DiskFilesLog.java
View file @
6cc231db
...
@@ -77,6 +77,11 @@ public class DiskFilesLog extends Model<DiskFilesLog> {
...
@@ -77,6 +77,11 @@ public class DiskFilesLog extends Model<DiskFilesLog> {
@ApiModelProperty
(
value
=
"用户姓名"
)
@ApiModelProperty
(
value
=
"用户姓名"
)
private
String
userName
;
private
String
userName
;
/**
/**
* 逻辑删除标记0.未删除 1.删除
*/
@ApiModelProperty
(
value
=
"逻辑删除标记0.未删除 1.删除"
)
private
Integer
deleteFlag
;
/**
* 创建时间
* 创建时间
*/
*/
@ApiModelProperty
(
value
=
"创建时间"
)
@ApiModelProperty
(
value
=
"创建时间"
)
...
...
src/main/java/cn/timer/api/config/sftp/SftpConfiguration.java
View file @
6cc231db
...
@@ -102,8 +102,8 @@ public class SftpConfiguration {
...
@@ -102,8 +102,8 @@ public class SftpConfiguration {
abandonedConfig
.
setRemoveAbandonedOnMaintenance
(
true
);
abandonedConfig
.
setRemoveAbandonedOnMaintenance
(
true
);
//borrow 的时候检查泄漏
//borrow 的时候检查泄漏
abandonedConfig
.
setRemoveAbandonedOnBorrow
(
true
);
abandonedConfig
.
setRemoveAbandonedOnBorrow
(
true
);
//如果一个对象borrow之后
1
0秒还没有返还给pool,认为是泄漏的对象
//如果一个对象borrow之后
6
0秒还没有返还给pool,认为是泄漏的对象
abandonedConfig
.
setRemoveAbandonedTimeout
(
1
0
);
abandonedConfig
.
setRemoveAbandonedTimeout
(
6
0
);
this
.
channelSftpPool
.
setAbandonedConfig
(
abandonedConfig
);
this
.
channelSftpPool
.
setAbandonedConfig
(
abandonedConfig
);
//30秒运行一次维护任务
//30秒运行一次维护任务
this
.
channelSftpPool
.
setTimeBetweenEvictionRunsMillis
(
30000
);
this
.
channelSftpPool
.
setTimeBetweenEvictionRunsMillis
(
30000
);
...
...
src/main/resources/mapping/disk/DiskFilesLogMapper.xml
View file @
6cc231db
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
<result
property=
"fileSize"
column=
"file_size"
/>
<result
property=
"fileSize"
column=
"file_size"
/>
<result
property=
"userId"
column=
"user_id"
/>
<result
property=
"userId"
column=
"user_id"
/>
<result
property=
"userName"
column=
"user_name"
/>
<result
property=
"userName"
column=
"user_name"
/>
<result
property=
"deleteFlag"
column=
"delete_flag"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment