|
@@ -155,6 +155,7 @@ public class TransSchedule {
|
|
|
}
|
|
|
|
|
|
List<String> localNewFiles = ftpUtil.localNewFiles(ftpDownloadDir, resFiles, baseDir + File.separator);
|
|
|
+ log.info("------>本次新回盘文件"+ JSONObject.toJSONString(localNewFiles));
|
|
|
|
|
|
|
|
|
if (localNewFiles != null && localNewFiles.size() > 0) {
|
|
@@ -163,6 +164,7 @@ public class TransSchedule {
|
|
|
bankService.updateOrderInfoPaymentRec(trans,newFile,newFile.replaceFirst("res", "qut"));
|
|
|
}
|
|
|
}
|
|
|
+ log.info("结束调度回盘任务");
|
|
|
}
|
|
|
|
|
|
public String getClearText(String fileName){
|
|
@@ -179,4 +181,55 @@ public class TransSchedule {
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ public void checkClearOtherText(){
|
|
|
+ log.info("--->手动解析回盘文件");
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ List<String> transFiles = new ArrayList<>();
|
|
|
+ transFiles.add("20220616qut368.txt");
|
|
|
+
|
|
|
+ transFiles.add("20180418qut007.txt");
|
|
|
+ transFiles.add("20220523qut203.txt");*/
|
|
|
+ log.info("------>有没有文件"+ JSONObject.toJSONString(transFiles));
|
|
|
+ List<String> resFiles = new ArrayList<>();
|
|
|
+ if(null!=transFiles && transFiles.size()>0){
|
|
|
+ for (String transFile : transFiles) {
|
|
|
+
|
|
|
+ String transRetFile = transFile.replaceFirst("qut", "res");
|
|
|
+ resFiles.add(transRetFile);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ List<String> localNewFiles = ftpUtil.localNewFiles(ftpDownloadDir, resFiles, baseDir + File.separator);
|
|
|
+
|
|
|
+
|
|
|
+ if (localNewFiles != null && localNewFiles.size() > 0) {
|
|
|
+ for (String newFile : localNewFiles){
|
|
|
+ List<TransVo> trans = TransUtils.fileToTransVo(baseDir, newFile);
|
|
|
+ bankService.updateOrderInfoPaymentRec(trans,newFile ,newFile.replaceFirst("res", "qut"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ * 手动解析回盘文件
|
|
|
+ */
|
|
|
+
|
|
|
+ public void checkClearWriterText(){
|
|
|
+ log.info("--->手动解析回盘文件");
|
|
|
+
|
|
|
+ List<String> localNewFiles = new ArrayList<>();
|
|
|
+ localNewFiles.add("20220616res368.txt");
|
|
|
+
|
|
|
+
|
|
|
+ if (localNewFiles != null && localNewFiles.size() > 0) {
|
|
|
+ for (String newFile : localNewFiles){
|
|
|
+ List<TransVo> trans = TransUtils.fileToTransVo(baseDir, newFile);
|
|
|
+ bankService.updateOrderInfoPaymentRec(trans,newFile ,newFile.replaceFirst("res", "qut"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|