Commit 011f1050 authored by LSL's avatar LSL

结清默认结清账单

parent 02548955
......@@ -57,13 +57,14 @@ public class BackedBurdenJob {
sftp.cd("/download/assurance/" + date);
sftp.get("assurance_" + date + ".txt", "/assurance_sftp.txt");
ossUtils.ossUpload("ZN/assurance_/" + "assurance_" + date + ".txt", FileUtil.file("/assurance_sftp.txt"));
FileUtil.del("/sftp.txt");
FileUtil.del("/assurance_sftp.txt");
String stringObject = ossUtils.getStringObject("ZN/assurance_/" + "assurance_" + date + ".txt");
log.info("oss融担数据:{}", stringObject);
//存储并去平账
List<BurdenModel> getlist = getlist(stringObject);
for (BurdenModel model : getlist) {
backedBurdenComponent.insert(model);
backedBurden(model);
}
} else {
log.info("浙农融担文件不存在:{}", 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