|
@@ -92,7 +92,31 @@ namespace MySystem
|
|
|
List<string> mernos = new List<string>();
|
|
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();
|
|
|
|
|
+ List<string> without1 = function.ReadInstance("tmpdata/sft1.txt").Replace("\r", "").Split('\n').ToList();
|
|
|
|
|
+ List<string> without2 = function.ReadInstance("tmpdata/sft2.txt").Replace("\r", "").Split('\n').ToList();
|
|
|
|
|
+ List<string> without3 = function.ReadInstance("tmpdata/11.txt").Replace("\r", "").Split('\n').ToList();
|
|
|
|
|
+ function.WriteLog(poslist.Count.ToString(), "tmp盛付通临时费率");
|
|
|
|
|
+ merids = db.KxsMachine.Where(m => poslist.Contains(m.PosSn) && !without1.Contains(m.PosSn) && !without2.Contains(m.PosSn) && !without3.Contains(m.PosSn) && m.BrandId == 7 && m.MerchantId > 0).ToList().Select(m => m.MerchantId).ToList();
|
|
|
|
|
+ function.WriteLog(merids.Count.ToString(), "tmp盛付通临时费率");
|
|
|
|
|
+ mernos = db.KxsMerchant.Where(m => merids.Contains(m.Id)).ToList().Select(m => m.MerchantNo).ToList();
|
|
|
|
|
+ function.WriteLog(mernos.Count.ToString(), "tmp盛付通临时费率");
|
|
|
|
|
+ foreach(string merno in mernos)
|
|
|
|
|
+ {
|
|
|
|
|
+ if(int.Parse(DateTime.Now.ToString("HHmm")) < 2100)
|
|
|
|
|
+ {
|
|
|
|
|
+ string result = SetDepositPostService.Instance.SetFeeForSft(merno, "0.6500", "3");
|
|
|
|
|
+ function.WriteLog(merno + "\n" + DateTime.Now.ToString() + "\n" + result + "\n\n", "tmp盛付通临时费率");
|
|
|
|
|
+ Thread.Sleep(500);
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ function.WriteLog(merno, "tmp盛付通临时费率POSN");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // poslist = function.ReadInstance("tmpdata/sft1.txt").Replace("\r", "").Split('\n').ToList();
|
|
|
// function.WriteLog(poslist.Count.ToString(), "tmp盛付通临时费率");
|
|
// function.WriteLog(poslist.Count.ToString(), "tmp盛付通临时费率");
|
|
|
// merids = db.KxsMachine.Where(m => poslist.Contains(m.PosSn) && m.BrandId == 7 && m.MerchantId > 0).ToList().Select(m => m.MerchantId).ToList();
|
|
// merids = db.KxsMachine.Where(m => poslist.Contains(m.PosSn) && m.BrandId == 7 && m.MerchantId > 0).ToList().Select(m => m.MerchantId).ToList();
|
|
|
// function.WriteLog(merids.Count.ToString(), "tmp盛付通临时费率");
|
|
// function.WriteLog(merids.Count.ToString(), "tmp盛付通临时费率");
|
|
@@ -100,37 +124,23 @@ namespace MySystem
|
|
|
// function.WriteLog(mernos.Count.ToString(), "tmp盛付通临时费率");
|
|
// function.WriteLog(mernos.Count.ToString(), "tmp盛付通临时费率");
|
|
|
// foreach(string merno in mernos)
|
|
// foreach(string merno in mernos)
|
|
|
// {
|
|
// {
|
|
|
- // string result = SetDepositPostService.Instance.SetFeeForSft(merno, "0.6500", "3");
|
|
|
|
|
|
|
+ // string result = SetDepositPostService.Instance.SetFeeForSft(merno, "0.6300", "0");
|
|
|
// function.WriteLog(merno + "\n" + result + "\n\n", "tmp盛付通临时费率");
|
|
// function.WriteLog(merno + "\n" + result + "\n\n", "tmp盛付通临时费率");
|
|
|
// Thread.Sleep(500);
|
|
// Thread.Sleep(500);
|
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- poslist = function.ReadInstance("tmpdata/sft1.txt").Replace("\r", "").Split('\n').ToList();
|
|
|
|
|
- function.WriteLog(poslist.Count.ToString(), "tmp盛付通临时费率");
|
|
|
|
|
- merids = db.KxsMachine.Where(m => poslist.Contains(m.PosSn) && m.BrandId == 7 && m.MerchantId > 0).ToList().Select(m => m.MerchantId).ToList();
|
|
|
|
|
- function.WriteLog(merids.Count.ToString(), "tmp盛付通临时费率");
|
|
|
|
|
- mernos = db.KxsMerchant.Where(m => merids.Contains(m.Id)).ToList().Select(m => m.MerchantNo).ToList();
|
|
|
|
|
- function.WriteLog(mernos.Count.ToString(), "tmp盛付通临时费率");
|
|
|
|
|
- foreach(string merno in mernos)
|
|
|
|
|
- {
|
|
|
|
|
- string result = SetDepositPostService.Instance.SetFeeForSft(merno, "0.6300", "0");
|
|
|
|
|
- function.WriteLog(merno + "\n" + result + "\n\n", "tmp盛付通临时费率");
|
|
|
|
|
- Thread.Sleep(500);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- poslist = function.ReadInstance("tmpdata/sft2.txt").Replace("\r", "").Split('\n').ToList();
|
|
|
|
|
- function.WriteLog(poslist.Count.ToString(), "tmp盛付通临时费率");
|
|
|
|
|
- merids = db.KxsMachine.Where(m => poslist.Contains(m.PosSn) && m.BrandId == 7 && m.MerchantId > 0).ToList().Select(m => m.MerchantId).ToList();
|
|
|
|
|
- function.WriteLog(merids.Count.ToString(), "tmp盛付通临时费率");
|
|
|
|
|
- mernos = db.KxsMerchant.Where(m => merids.Contains(m.Id)).ToList().Select(m => m.MerchantNo).ToList();
|
|
|
|
|
- function.WriteLog(mernos.Count.ToString(), "tmp盛付通临时费率");
|
|
|
|
|
- foreach(string merno in mernos)
|
|
|
|
|
- {
|
|
|
|
|
- string result = SetDepositPostService.Instance.SetFeeForSft(merno, "0.6000", "0");
|
|
|
|
|
- function.WriteLog(merno + "\n" + result + "\n\n", "tmp盛付通临时费率");
|
|
|
|
|
- Thread.Sleep(500);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // poslist = function.ReadInstance("tmpdata/sft2.txt").Replace("\r", "").Split('\n').ToList();
|
|
|
|
|
+ // function.WriteLog(poslist.Count.ToString(), "tmp盛付通临时费率");
|
|
|
|
|
+ // merids = db.KxsMachine.Where(m => poslist.Contains(m.PosSn) && m.BrandId == 7 && m.MerchantId > 0).ToList().Select(m => m.MerchantId).ToList();
|
|
|
|
|
+ // function.WriteLog(merids.Count.ToString(), "tmp盛付通临时费率");
|
|
|
|
|
+ // mernos = db.KxsMerchant.Where(m => merids.Contains(m.Id)).ToList().Select(m => m.MerchantNo).ToList();
|
|
|
|
|
+ // function.WriteLog(mernos.Count.ToString(), "tmp盛付通临时费率");
|
|
|
|
|
+ // foreach(string merno in mernos)
|
|
|
|
|
+ // {
|
|
|
|
|
+ // string result = SetDepositPostService.Instance.SetFeeForSft(merno, "0.6000", "0");
|
|
|
|
|
+ // function.WriteLog(merno + "\n" + result + "\n\n", "tmp盛付通临时费率");
|
|
|
|
|
+ // Thread.Sleep(500);
|
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
// //来客吧电签
|
|
// //来客吧电签
|
|
|
// poslist = function.ReadInstance("tmpdata/2.txt").Split('\n').ToList();
|
|
// poslist = function.ReadInstance("tmpdata/2.txt").Split('\n').ToList();
|