fix(softswitch):ftp适配器并发读取文件重复

yun-zuoyi
汪云昊 5 years ago
parent 0d20685a55
commit 21f77a0e7b

@ -95,7 +95,7 @@ public class BsSuitFile extends BaseBean {
this.setFolderPath("/"); this.setFolderPath("/");
this.setFileName(ftpPathInfo); this.setFileName(ftpPathInfo);
}else{ }else{
this.setFolderPath(ftpPathInfo.substring(0,pathIdx+1)); this.setFolderPath(ftpPathInfo.substring(0,pathIdx));
this.setFileName(ftpPathInfo.substring(pathIdx + 1)); this.setFileName(ftpPathInfo.substring(pathIdx + 1));
} }
} }

@ -387,6 +387,7 @@ public class SoftSwitchHqlPack {
DdlPreparedPack.getStringLikerPack(bsSuitFile.getSuitCaseCode(),"suitCaseCode",ddlPackBean); DdlPreparedPack.getStringLikerPack(bsSuitFile.getSuitCaseCode(),"suitCaseCode",ddlPackBean);
DdlPreparedPack.getNumEqualPack(bsSuitFile.getSuitCaseId(), "suitCaseId", ddlPackBean); DdlPreparedPack.getNumEqualPack(bsSuitFile.getSuitCaseId(), "suitCaseId", ddlPackBean);
DdlPreparedPack.getStringLikerPack(bsSuitFile.getFileName(), "fileName", ddlPackBean); DdlPreparedPack.getStringLikerPack(bsSuitFile.getFileName(), "fileName", ddlPackBean);
DdlPreparedPack.getStringLikerPack(bsSuitFile.getFolderPath(), "folderPath", ddlPackBean);
DdlPreparedPack.timeBuilder(bsSuitFile.getSuitDateTime(), "suitDateTime", ddlPackBean, false, true); DdlPreparedPack.timeBuilder(bsSuitFile.getSuitDateTime(), "suitDateTime", ddlPackBean, false, true);
ddlPackBean.setOrderByStr(bsSuitFile.orderBy()); ddlPackBean.setOrderByStr(bsSuitFile.orderBy());

Loading…
Cancel
Save