|
@@ -92,7 +92,34 @@ 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();
|
|
|
|
|
+ // 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.6500", "3");
|
|
|
|
|
+ // function.WriteLog(merno + "\n" + result + "\n\n", "tmp盛付通临时费率");
|
|
|
|
|
+ // 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盛付通临时费率");
|
|
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,7 +127,7 @@ 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.6000", "0");
|
|
|
function.WriteLog(merno + "\n" + result + "\n\n", "tmp盛付通临时费率");
|
|
function.WriteLog(merno + "\n" + result + "\n\n", "tmp盛付通临时费率");
|
|
|
Thread.Sleep(500);
|
|
Thread.Sleep(500);
|
|
|
}
|
|
}
|