|
@@ -87,9 +87,9 @@ namespace MySystem
|
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
|
try
|
|
try
|
|
|
{
|
|
{
|
|
|
- // List<string> poslist = new List<string>();
|
|
|
|
|
- // List<int> merids = new List<int>();
|
|
|
|
|
- // List<string> mernos = new List<string>();
|
|
|
|
|
|
|
+ List<string> poslist = new List<string>();
|
|
|
|
|
+ List<int> merids = new List<int>();
|
|
|
|
|
+ List<string> mernos = new List<string>();
|
|
|
|
|
|
|
|
// //盛付通
|
|
// //盛付通
|
|
|
// poslist = function.ReadInstance("tmpdata/1.txt").Replace("\r", "").Split('\n').ToList();
|
|
// poslist = function.ReadInstance("tmpdata/1.txt").Replace("\r", "").Split('\n').ToList();
|
|
@@ -115,13 +115,13 @@ namespace MySystem
|
|
|
// }
|
|
// }
|
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
- List<string> list = function.ReadInstance("tmpdata/sft3.txt").Replace("\r", "").Split('\n').ToList();
|
|
|
|
|
- foreach(string merno in list)
|
|
|
|
|
- {
|
|
|
|
|
- string result = SetDepositPostService.Instance.SetFeeForSft(merno, "0.6500", "3");
|
|
|
|
|
- function.WriteLog(merno + "\n" + DateTime.Now.ToString() + "\n" + result + "\n\n", "tmp盛付通临时费率");
|
|
|
|
|
- Thread.Sleep(500);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // List<string> list = function.ReadInstance("tmpdata/sft3.txt").Replace("\r", "").Split('\n').ToList();
|
|
|
|
|
+ // foreach(string merno in list)
|
|
|
|
|
+ // {
|
|
|
|
|
+ // string result = SetDepositPostService.Instance.SetFeeForSft(merno, "0.6500", "3");
|
|
|
|
|
+ // function.WriteLog(merno + "\n" + DateTime.Now.ToString() + "\n" + result + "\n\n", "tmp盛付通临时费率");
|
|
|
|
|
+ // Thread.Sleep(500);
|
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
|
|
|
|
|
// poslist = function.ReadInstance("tmpdata/sft1.txt").Replace("\r", "").Split('\n').ToList();
|
|
// poslist = function.ReadInstance("tmpdata/sft1.txt").Replace("\r", "").Split('\n').ToList();
|
|
@@ -150,18 +150,18 @@ namespace MySystem
|
|
|
// Thread.Sleep(500);
|
|
// Thread.Sleep(500);
|
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
- // //来客吧电签
|
|
|
|
|
- // poslist = function.ReadInstance("tmpdata/2.txt").Split('\n').ToList();
|
|
|
|
|
- // merids = db.KxsMachine.Where(m => poslist.Contains(m.PosSn) && m.BrandId == 15 && m.MerchantId > 0).ToList().Select(m => m.MerchantId).ToList();
|
|
|
|
|
- // mernos = db.KxsMerchant.Where(m => merids.Contains(m.Id)).ToList().Select(m => m.MerchantNo).ToList();
|
|
|
|
|
- // foreach(string merno in mernos)
|
|
|
|
|
- // {
|
|
|
|
|
- // List<string> mernoList = new List<string>();
|
|
|
|
|
- // mernoList.Add(merno);
|
|
|
|
|
- // string result = PublicImportDataService.Instance.PospFee(mernoList, "LKB_0.68+3", "联客宝0.68+3");
|
|
|
|
|
- // function.WriteLog(merno + "\n" + result + "\n\n", "tmp来客吧电签临时费率");
|
|
|
|
|
- // Thread.Sleep(500);
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ //来客吧电签
|
|
|
|
|
+ poslist = function.ReadInstance("tmpdata/2.txt").Split('\n').ToList();
|
|
|
|
|
+ merids = db.KxsMachine.Where(m => poslist.Contains(m.PosSn) && m.BrandId == 15 && m.MerchantId > 0).ToList().Select(m => m.MerchantId).ToList();
|
|
|
|
|
+ mernos = db.KxsMerchant.Where(m => merids.Contains(m.Id)).ToList().Select(m => m.MerchantNo).ToList();
|
|
|
|
|
+ foreach(string merno in mernos)
|
|
|
|
|
+ {
|
|
|
|
|
+ List<string> mernoList = new List<string>();
|
|
|
|
|
+ mernoList.Add(merno);
|
|
|
|
|
+ string result = PublicImportDataService.Instance.PospFee(mernoList, "LKB_0.65+3", "联客宝0.65+3");
|
|
|
|
|
+ function.WriteLog(merno + "\n" + result + "\n\n", "tmp来客吧电签临时费率");
|
|
|
|
|
+ Thread.Sleep(500);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
// //联动电签
|
|
// //联动电签
|
|
|
// poslist = function.ReadInstance("tmpdata/3.txt").Split('\n').ToList();
|
|
// poslist = function.ReadInstance("tmpdata/3.txt").Split('\n').ToList();
|