Commit 5b84866b by pengzhigang

修改DMPpickup Preuserorder

parent 79fa10af
No preview for this file type
...@@ -128,7 +128,8 @@ namespace Freemud.Quartz.MCDBigDataPickUp ...@@ -128,7 +128,8 @@ namespace Freemud.Quartz.MCDBigDataPickUp
//sftp.Put(Path.Combine(desPath, fileNameMd5), "/upload/MCDBigData/"+ tableFileName, folderName); //sftp.Put(Path.Combine(desPath, fileNameMd5), "/upload/MCDBigData/"+ tableFileName, folderName);
//sftp.Disconnect(); //sftp.Disconnect();
var sftp = new SFTPOperation(sftpIP, "22", sftpAccount, sftpPassword); var sftp = new SFTPOperation(sftpIP, "22", sftpAccount, sftpPassword);
sftp.Put(desPath + "\\" + fileNameMd5, sftpAmiPath + tableFileName, folderName, fileNameMd5); Logger.Info("localpath ----------------" + desPath + "\\" + fileNameMd5);
sftp.Put(desPath + "\\" + fileNameMd5, sftpAmiPath + tableFileName, folderName, fileNameMd5);
sftp.Put(desPath + "\\" + fileNameZip, sftpAmiPath + tableFileName, folderName, fileNameZip); sftp.Put(desPath + "\\" + fileNameZip, sftpAmiPath + tableFileName, folderName, fileNameZip);
} }
//记录上次的时间戳以及记录log //记录上次的时间戳以及记录log
......
...@@ -56,9 +56,9 @@ namespace Freemud.Quartz.MCDBigDataPickUp ...@@ -56,9 +56,9 @@ namespace Freemud.Quartz.MCDBigDataPickUp
string sftpAmiPath = context.MergedJobDataMap.GetString("sftpAmiPath"); string sftpAmiPath = context.MergedJobDataMap.GetString("sftpAmiPath");
//文件保存路径 //文件保存路径
string fileName = sTime.ToString("yyyyMMddHH") + ".csv"; string fileName = sTime.ToString("yyyyMMdd") + ".csv";
string fileNameZip = sTime.ToString("yyyyMMddHH") + ".zip"; string fileNameZip = sTime.ToString("yyyyMMdd") + ".zip";
string fileNameMd5 = sTime.ToString("yyyyMMddHH") + ".zip.md5"; string fileNameMd5 = sTime.ToString("yyyyMMdd") + ".zip.md5";
string folderName = sTime.ToString("yyyyMMdd"); string folderName = sTime.ToString("yyyyMMdd");
var strPath = Path.Combine(Directory.GetCurrentDirectory(), "sftp" + "\\" + tableFileName + "\\" + folderName+"\\"+fileName); var strPath = Path.Combine(Directory.GetCurrentDirectory(), "sftp" + "\\" + tableFileName + "\\" + folderName+"\\"+fileName);
var strPathZip = Path.Combine(Directory.GetCurrentDirectory(), "sftp" + "\\" + tableFileName + "\\" + folderName + "\\" + fileNameZip); var strPathZip = Path.Combine(Directory.GetCurrentDirectory(), "sftp" + "\\" + tableFileName + "\\" + folderName + "\\" + fileNameZip);
...@@ -108,6 +108,7 @@ namespace Freemud.Quartz.MCDBigDataPickUp ...@@ -108,6 +108,7 @@ namespace Freemud.Quartz.MCDBigDataPickUp
//sftp.Put(Path.Combine(desPath, fileNameMd5), "/upload/MCDBigData/"+ tableFileName, folderName); //sftp.Put(Path.Combine(desPath, fileNameMd5), "/upload/MCDBigData/"+ tableFileName, folderName);
//sftp.Disconnect(); //sftp.Disconnect();
var sftp = new SFTPOperation(sftpIP, "22", sftpAccount, sftpPassword); var sftp = new SFTPOperation(sftpIP, "22", sftpAccount, sftpPassword);
Logger.Info("localpath ----------------" + desPath + "\\" + fileNameMd5);
sftp.Put(desPath + "\\" + fileNameMd5, sftpAmiPath + tableFileName, folderName, fileNameMd5); sftp.Put(desPath + "\\" + fileNameMd5, sftpAmiPath + tableFileName, folderName, fileNameMd5);
sftp.Put(desPath + "\\" + fileNameZip, sftpAmiPath + tableFileName, folderName, fileNameZip); sftp.Put(desPath + "\\" + fileNameZip, sftpAmiPath + tableFileName, folderName, fileNameZip);
} }
......
...@@ -32,4 +32,3 @@ D:\net\MaxPengTempFolder\CodeManeger\tempLatest\VeGGet\ZhuiHu.Common\obj\Debug\Z ...@@ -32,4 +32,3 @@ D:\net\MaxPengTempFolder\CodeManeger\tempLatest\VeGGet\ZhuiHu.Common\obj\Debug\Z
D:\net\MaxPengTempFolder\CodeManeger\tempLatest\VeGGet\ZhuiHu.Common\obj\Debug\ZhuiHu.Common.csproj.CopyComplete D:\net\MaxPengTempFolder\CodeManeger\tempLatest\VeGGet\ZhuiHu.Common\obj\Debug\ZhuiHu.Common.csproj.CopyComplete
D:\net\MaxPengTempFolder\CodeManeger\tempLatest\VeGGet\ZhuiHu.Common\obj\Debug\ZhuiHu.Common.dll D:\net\MaxPengTempFolder\CodeManeger\tempLatest\VeGGet\ZhuiHu.Common\obj\Debug\ZhuiHu.Common.dll
D:\net\MaxPengTempFolder\CodeManeger\tempLatest\VeGGet\ZhuiHu.Common\obj\Debug\ZhuiHu.Common.pdb D:\net\MaxPengTempFolder\CodeManeger\tempLatest\VeGGet\ZhuiHu.Common\obj\Debug\ZhuiHu.Common.pdb
D:\net\MaxPengTempFolder\CodeManeger\tempLatest\VeGGet\ZhuiHu.Common\obj\Debug\ZhuiHu.Common.csprojAssemblyReference.cache
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment