Commit 07fa8113 authored by LSL's avatar LSL

结清默认结清账单

parent e3a60a57
...@@ -32,7 +32,7 @@ public class RedeemJob { ...@@ -32,7 +32,7 @@ public class RedeemJob {
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");
ossUtils.ossUpload("ZN/compensatory/" + "compensatory_" + date + ".txt", FileUtil.file("/compensatory_sftp.txt")); ossUtils.ossUpload("ZN/compensatory/" + "compensatory_" + date + ".txt", FileUtil.file("/compensatory_sftp.txt"));
FileUtil.del("/sftp.txt"); FileUtil.del("/compensatory_sftp.txt");
String stringObject = ossUtils.getStringObject("ZN/compensatory/" + "compensatory_" + date + ".txt"); String stringObject = ossUtils.getStringObject("ZN/compensatory/" + "compensatory_" + date + ".txt");
log.info("date:{}", stringObject); log.info("date:{}", stringObject);
redeemComponent.insert(getlist(stringObject)); redeemComponent.insert(getlist(stringObject));
...@@ -68,4 +68,9 @@ public class RedeemJob { ...@@ -68,4 +68,9 @@ public class RedeemJob {
return list; return list;
} }
public static void main(String[] args) {
String date = DateUtil.format(new Date(), "yyyyMMdd");
System.out.println(date);
}
} }
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