|
|
@@ -115,18 +115,22 @@ public class DownloadServiceImpl implements DownloadService {
|
|
|
if (executeRes) {
|
|
|
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);
|
|
|
- } if ("N_YITOA_LHCT-ZSD".equals(depot)||"LHCT_SZ-ZSD".equals(depot)){
|
|
|
- Boolean rename = sftp.rename(ftpMap.get("downloadpath").toString() + "/" + s, "lhctdz/reply_bak/" + s);
|
|
|
- }else {
|
|
|
+ }else if ("N_YITOA_LHCT-ZSD".equals(depot)){
|
|
|
+ Boolean rename = sftp.rename(ftpMap.get("downloadpath").toString() + "/" + s, "lhcthkhub/LHCT/reply_bak/" + s);
|
|
|
+ }else if ("LHCT_SZ-ZSD".equals(depot)){
|
|
|
+ Boolean rename = sftp.rename(ftpMap.get("downloadpath").toString() + "/" + s, "lhctdz/reply_bak/" + s);
|
|
|
+ }else {
|
|
|
//移动处理完的文件到bak文件夹下
|
|
|
client.rename(file.getName(), "bak/" + file.getName());
|
|
|
}
|
|
|
}else{
|
|
|
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 if ("N_YITOA_LHCT-ZSD".equals(depot)||"LHCT_SZ-ZSD".equals(depot)){
|
|
|
- Boolean rename = sftp.rename(ftpMap.get("downloadpath").toString() + "/" + s, "lhctdz/reply_bak/" + s);
|
|
|
- }else {
|
|
|
+ }else if ("N_YITOA_LHCT-ZSD".equals(depot)){
|
|
|
+ Boolean rename = sftp.rename(ftpMap.get("downloadpath").toString() + "/" + s, "lhcthkhub/LHCT/reply_bak/" + s);
|
|
|
+ }else if ("LHCT_SZ-ZSD".equals(depot)){
|
|
|
+ Boolean rename = sftp.rename(ftpMap.get("downloadpath").toString() + "/" + s, "lhctdz/reply_bak/" + s);
|
|
|
+ }else {
|
|
|
//移动处理完的文件到failed文件夹下
|
|
|
client.rename(file.getName(), "failed/" + file.getName());
|
|
|
}
|