Commit 340ca639 authored by LSL's avatar LSL

结清默认结清账单

parent d590072c
...@@ -29,6 +29,9 @@ public class RedeemJob { ...@@ -29,6 +29,9 @@ 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");
if (sftp.isDir("/download/compensatory/" + date )) {
log.info("浙农代偿文件目录:{}", date);
}
if (sftp.isDir("/download/compensatory/" + date + "/compensatory_" + date + ".txt")) { if (sftp.isDir("/download/compensatory/" + date + "/compensatory_" + date + ".txt")) {
sftp.cd("/download/compensatory/" + date); sftp.cd("/download/compensatory/" + date);
sftp.get("compensatory_" + date + ".txt", "/compensatory_sftp.txt"); sftp.get("compensatory_" + date + ".txt", "/compensatory_sftp.txt");
......
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