Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
windows
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhanhai
windows
Commits
a2f246ac
Commit
a2f246ac
authored
Nov 17, 2023
by
LSL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
还款限制修改
parent
d4bf8310
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
BaseController.java
src/main/java/com/jqtx/windows/web/BaseController.java
+4
-1
No files found.
src/main/java/com/jqtx/windows/web/BaseController.java
View file @
a2f246ac
...
...
@@ -12,6 +12,8 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.io.File
;
@RestController
@RequestMapping
(
"/zhenong/v1"
)
@Api
(
tags
=
"网关接口"
)
...
...
@@ -41,7 +43,8 @@ public class BaseController {
public
JsonResult
ccc
()
{
Sftp
sftp
=
new
Sftp
(
"115.238.89.106"
,
9901
,
"xiaohua_fr"
,
"R7MADMx1lwMN5k4v"
,
CharsetUtil
.
CHARSET_UTF_8
);
sftp
.
cd
(
"/download/compensatory/"
+
"20231113"
);
sftp
.
get
(
"compensatory_check_20231113.ok"
,
"root/windows/aaa.txt"
);
File
file
=
new
File
(
"root/windows/aaa.txt"
);
sftp
.
download
(
"compensatory_check_20231113.ok"
,
file
);
return
null
;
}
...
...
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