浏览代码

不金控机具费率和稳定期A

lcl 1 年之前
父节点
当前提交
949551bae2
共有 1 个文件被更改,包括 12 次插入7 次删除
  1. 12 7
      Controllers/HomeController.cs

+ 12 - 7
Controllers/HomeController.cs

@@ -223,13 +223,13 @@ namespace MySystem.Controllers
             //     RedisDbconn.Instance.AddList("SetDepositPostQueue", "{\"RecordId\":\"\",\"PosId\":\"" + dr["Id"].ToString() + "\",\"Fee\": \"0.6\",\"Kind\": \"2\",\"OpMan\": \"" + dr["DownFeeMan"].ToString() + "\"}");
             // }
 
-            DataTable dt = CustomerSqlConn.dtable("select Id from Orders where Status>0 and ProductId in (10,11,77,78,79) and CreateDate>='2023-12-10 00:00:00'", MysqlConn.ReadSqlConnStr);
-            foreach(DataRow dr in dt.Rows)
-            {
-                RedisDbconn.Instance.AddList("AddPosCouponPrizeQueue", dr["Id"].ToString());
-            }
+            // DataTable dt = CustomerSqlConn.dtable("select Id from Orders where Status>0 and ProductId in (10,11,77,78,79) and CreateDate>='2023-12-10 00:00:00'", MysqlConn.ReadSqlConnStr);
+            // foreach(DataRow dr in dt.Rows)
+            // {
+            //     RedisDbconn.Instance.AddList("AddPosCouponPrizeQueue", dr["Id"].ToString());
+            // }
 
-            // WebCMSEntities db = new WebCMSEntities();
+            WebCMSEntities db = new WebCMSEntities();
             // var poslist = db.PosMachinesTwo.Select(m => new { m.Id, m.BrandId, m.CardType, m.IsPurchase, m.PosSn }).Where(m => m.BrandId == 14 && m.CardType == 2 && m.IsPurchase == 1).ToList();
             // foreach(var pos in poslist)
             // {
@@ -244,7 +244,12 @@ namespace MySystem.Controllers
             //         }
             //     }
             // }
-            // db.Dispose();
+            PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.PosSn == "00003102702303069436067") ?? new PosMachinesTwo();
+            PosMerchantInfo check = db.PosMerchantInfo.FirstOrDefault(m => m.KqSnNo == "00003102702303069436067") ?? new PosMerchantInfo();
+            int RecordId = PublicFunction.FeeSetRecord(db, pos, check, 0.63M);
+            string info = "{\"RecordId\":\"" + RecordId + "\",\"PosId\":\"" + pos.Id + "\",\"Fee\": \"0.63\",\"Kind\": \"2\",\"OpMan\": \""+"系统"+"\"}";
+            RedisDbconn.Instance.AddList("SetDepositQueue", info);
+            db.Dispose();
 
             return result;
         }