|
@@ -29,7 +29,7 @@ namespace MySystem.Controllers
|
|
|
return View();
|
|
|
}
|
|
|
|
|
|
- public string test(decimal a, decimal b, decimal g)
|
|
|
+ public string test()
|
|
|
{
|
|
|
// List<int> MerchantIds = new List<int>();
|
|
|
// MerchantIds.Add(5);
|
|
@@ -40,7 +40,19 @@ namespace MySystem.Controllers
|
|
|
// TianYuVoiceHelper.Instance.doSomething(DateTime.Now.ToString("yyyyMMddHHmmssfff"),"2023100701","100");
|
|
|
// MqLinksHelper.Instance.doSomething("LKB01230600250000585","100");
|
|
|
|
|
|
- // WebCMSEntities db = new WebCMSEntities();
|
|
|
+ WebCMSEntities db = new WebCMSEntities();
|
|
|
+ DateTime start = DateTime.Parse("2024-03-10 00:00:00");
|
|
|
+ List<ConsumerOrders> orders = db.ConsumerOrders.Where(m => m.Status > 0 && m.IsAct == 1 && m.CreateDate > start && m.CurDivi < m.MaxDivi && m.SettleAmount > 0).OrderBy(m => m.Id).ToList();
|
|
|
+ foreach(ConsumerOrders order in orders)
|
|
|
+ {
|
|
|
+ bool check = RedisDbconn.Instance.GetList<ConsumerOrders>("ConsumerOrdersHd:Divi:" + order.PayMode + ":" + order.MerchantId, 1, 10000).Any(m => m.Id == order.Id);
|
|
|
+ bool check1 = db.ConsumerProfit.Any(m => m.OrderId == order.Id);
|
|
|
+ if(!check && !check1)
|
|
|
+ {
|
|
|
+ RedisDbconn.Instance.AddList("ConsumerOrdersHd:Divi:" + order.PayMode + ":List", order.Id.ToString());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
// Dictionary<string, decimal> ids = new Dictionary<string, decimal>();
|
|
|
// ids.Add("2023123120272680842405573", 30.08M);
|
|
|
// foreach(string orderno in ids.Keys)
|
|
@@ -167,7 +179,7 @@ namespace MySystem.Controllers
|
|
|
// function.WriteLog("\n\n", "返现id");
|
|
|
// }
|
|
|
|
|
|
- // db.Dispose();
|
|
|
+ db.Dispose();
|
|
|
|
|
|
// RedisDbconn.Instance.AddRightList("testlist", "1");
|
|
|
// RedisDbconn.Instance.AddRightList("testlist", "2");
|