|
|
@@ -106,7 +106,16 @@ public class DownloadServiceImpl implements DownloadService {
|
|
|
sqls = parseXmlFileToSqls(file, statement);
|
|
|
String s = file.getName().substring(0, file.getName().indexOf(".")) + ".xml";
|
|
|
if (sqls == null) {
|
|
|
- sftp.rename(ftpMap.get("downloadpath").toString() + "/" + s, "goodsreceipt/backup/" + s);
|
|
|
+ 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)){
|
|
|
+ Boolean rename = sftp.rename(ftpMap.get("downloadpath").toString() + "/" + s, "lhcthkhub/LHCT/reply_fail/" + s);
|
|
|
+ }else if ("LHCT_SZ-ZSD".equals(depot)){
|
|
|
+ Boolean rename = sftp.rename(ftpMap.get("downloadpath").toString() + "/" + s, "lhctdz/reply_fail/" + s);
|
|
|
+ }else {
|
|
|
+ //移动处理完的文件到bak文件夹下
|
|
|
+ client.rename(file.getName(), "bak/" + file.getName());
|
|
|
+ }
|
|
|
continue;
|
|
|
}
|
|
|
|