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
676a8fcf
Commit
676a8fcf
authored
Nov 22, 2023
by
LSL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
结清默认结清账单
parent
07fa8113
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
17 deletions
+26
-17
BackedBurdenJob.java
src/main/java/com/jqtx/windows/job/BackedBurdenJob.java
+14
-10
RedeemJob.java
src/main/java/com/jqtx/windows/job/RedeemJob.java
+12
-7
No files found.
src/main/java/com/jqtx/windows/job/BackedBurdenJob.java
View file @
676a8fcf
...
@@ -47,16 +47,20 @@ public class BackedBurdenJob {
...
@@ -47,16 +47,20 @@ public class BackedBurdenJob {
public
void
run
()
{
public
void
run
()
{
Sftp
sftp
=
new
Sftp
(
"115.238.89.106"
,
9901
,
"xiaohua_fr"
,
"R7MADMx1lwMN5k4v"
,
CharsetUtil
.
CHARSET_UTF_8
);
Sftp
sftp
=
new
Sftp
(
"115.238.89.106"
,
9901
,
"xiaohua_fr"
,
"R7MADMx1lwMN5k4v"
,
CharsetUtil
.
CHARSET_UTF_8
);
String
date
=
DateUtil
.
format
(
new
Date
(),
"yyyyMMdd"
);
String
date
=
DateUtil
.
format
(
new
Date
(),
"yyyyMMdd"
);
sftp
.
cd
(
"/download/assurance/"
+
date
);
if
(
sftp
.
isDir
(
"/download/assurance/"
+
date
+
"assurance_"
+
date
+
".txt"
))
{
sftp
.
get
(
"assurance_"
+
date
+
".txt"
,
"/assurance_sftp.txt"
);
sftp
.
cd
(
"/download/assurance/"
+
date
);
ossUtils
.
ossUpload
(
"ZN/assurance_/"
+
"assurance_"
+
date
+
".txt"
,
FileUtil
.
file
(
"/assurance_sftp.txt"
));
sftp
.
get
(
"assurance_"
+
date
+
".txt"
,
"/assurance_sftp.txt"
);
FileUtil
.
del
(
"/sftp.txt"
);
ossUtils
.
ossUpload
(
"ZN/assurance_/"
+
"assurance_"
+
date
+
".txt"
,
FileUtil
.
file
(
"/assurance_sftp.txt"
));
String
stringObject
=
ossUtils
.
getStringObject
(
"ZN/assurance_/"
+
"assurance_"
+
date
+
".txt"
);
FileUtil
.
del
(
"/sftp.txt"
);
log
.
info
(
"date:{}"
,
stringObject
);
String
stringObject
=
ossUtils
.
getStringObject
(
"ZN/assurance_/"
+
"assurance_"
+
date
+
".txt"
);
//存储并去平账
log
.
info
(
"date:{}"
,
stringObject
);
List
<
BurdenModel
>
getlist
=
getlist
(
stringObject
);
//存储并去平账
for
(
BurdenModel
model
:
getlist
)
{
List
<
BurdenModel
>
getlist
=
getlist
(
stringObject
);
backedBurdenComponent
.
insert
(
model
);
for
(
BurdenModel
model
:
getlist
)
{
backedBurdenComponent
.
insert
(
model
);
}
}
else
{
log
.
info
(
"浙农融担文件不存在:{}"
,
date
);
}
}
}
}
...
...
src/main/java/com/jqtx/windows/job/RedeemJob.java
View file @
676a8fcf
...
@@ -29,18 +29,23 @@ public class RedeemJob {
...
@@ -29,18 +29,23 @@ public class RedeemJob {
public
void
run
()
{
public
void
run
()
{
Sftp
sftp
=
new
Sftp
(
"115.238.89.106"
,
9901
,
"xiaohua_fr"
,
"R7MADMx1lwMN5k4v"
,
CharsetUtil
.
CHARSET_UTF_8
);
Sftp
sftp
=
new
Sftp
(
"115.238.89.106"
,
9901
,
"xiaohua_fr"
,
"R7MADMx1lwMN5k4v"
,
CharsetUtil
.
CHARSET_UTF_8
);
String
date
=
DateUtil
.
format
(
new
Date
(),
"yyyyMMdd"
);
String
date
=
DateUtil
.
format
(
new
Date
(),
"yyyyMMdd"
);
sftp
.
cd
(
"/download/compensatory/"
+
date
);
if
(
sftp
.
isDir
(
"/download/compensatory/"
+
date
+
"compensatory_"
+
date
+
".txt"
))
{
sftp
.
get
(
"compensatory_"
+
date
+
".txt"
,
"/compensatory_sftp.txt"
);
sftp
.
cd
(
"/download/compensatory/"
+
date
);
ossUtils
.
ossUpload
(
"ZN/compensatory/"
+
"compensatory_"
+
date
+
".txt"
,
FileUtil
.
file
(
"/compensatory_sftp.txt"
));
sftp
.
get
(
"compensatory_"
+
date
+
".txt"
,
"/compensatory_sftp.txt"
);
FileUtil
.
del
(
"/compensatory_sftp.txt"
);
ossUtils
.
ossUpload
(
"ZN/compensatory/"
+
"compensatory_"
+
date
+
".txt"
,
FileUtil
.
file
(
"/compensatory_sftp.txt"
));
String
stringObject
=
ossUtils
.
getStringObject
(
"ZN/compensatory/"
+
"compensatory_"
+
date
+
".txt"
);
FileUtil
.
del
(
"/compensatory_sftp.txt"
);
log
.
info
(
"date:{}"
,
stringObject
);
String
stringObject
=
ossUtils
.
getStringObject
(
"ZN/compensatory/"
+
"compensatory_"
+
date
+
".txt"
);
redeemComponent
.
insert
(
getlist
(
stringObject
));
log
.
info
(
"oss数据:{}"
,
stringObject
);
redeemComponent
.
insert
(
getlist
(
stringObject
));
}
else
{
log
.
info
(
"浙农代偿文件不存在:{}"
,
date
);
}
}
}
/**
/**
* 封装model
* 封装model
*
* @param jsonResult
* @param jsonResult
* @return
* @return
*/
*/
...
...
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