|
|
@@ -68,7 +68,7 @@ public class DownloadServiceImpl implements DownloadService {
|
|
|
try {
|
|
|
Map<String,Object> servMap = JdbcUtil.getFtpConfigs();
|
|
|
Map<String,Object> ftpMap = (Map<String,Object>)servMap.get(depot);
|
|
|
- if ("N_YITOA_LHCT-SF".equals(depot)){
|
|
|
+ if ("N_YITOA_LHCT-SF".equals(depot)||"N_YITOA_LHCT_T-SF".equals(depot)){
|
|
|
sftp = new SFTPUtil(ftpMap.get("user").toString(),ftpMap.get("password").toString(),
|
|
|
ftpMap.get("ip").toString(),
|
|
|
Integer.parseInt(ftpMap.get("port").toString()));
|
|
|
@@ -82,7 +82,7 @@ public class DownloadServiceImpl implements DownloadService {
|
|
|
}
|
|
|
if(client!=null||sftp!=null) {
|
|
|
List<File> files = null;
|
|
|
- if ("N_YITOA_LHCT-SF".equals(depot)) {
|
|
|
+ if ("N_YITOA_LHCT-SF".equals(depot)||"N_YITOA_LHCT_T-SF".equals(depot)) {
|
|
|
files = sftp.download(ftpMap.get("downloadpath").toString());
|
|
|
|
|
|
}else if("N_YITOA_LHCT-SLC".equals(depot)){
|
|
|
@@ -113,14 +113,14 @@ public class DownloadServiceImpl implements DownloadService {
|
|
|
executeRes = JdbcUtil.executeSqls(connect, sqls);
|
|
|
|
|
|
if (executeRes) {
|
|
|
- if ("N_YITOA_LHCT-SF".equals(depot)) {
|
|
|
+ if ("N_YITOA_LHCT-SF".equals(depot)||"N_YITOA_LHCT_T-SF".equals(depot)) {
|
|
|
Boolean rename = sftp.rename(ftpMap.get("downloadpath").toString() + "/" + s, "goodsreceipt/backup/" + s);
|
|
|
} else {
|
|
|
//移动处理完的文件到bak文件夹下
|
|
|
client.rename(file.getName(), "bak/" + file.getName());
|
|
|
}
|
|
|
}else{
|
|
|
- if ("N_YITOA_LHCT-SF".equals(depot)) {
|
|
|
+ if ("N_YITOA_LHCT-SF".equals(depot)||"N_YITOA_LHCT_T-SF".equals(depot)) {
|
|
|
Boolean rename = sftp.rename(ftpMap.get("downloadpath").toString() + "/" + s, "goodsreceipt/backup/" + s);
|
|
|
} else {
|
|
|
//移动处理完的文件到failed文件夹下
|