Browse Source

批量提交费率设置

lcl 2 years ago
parent
commit
a3e8f96e28
1 changed files with 19 additions and 0 deletions
  1. 19 0
      Controllers/HomeController.cs

+ 19 - 0
Controllers/HomeController.cs

@@ -178,5 +178,24 @@ namespace MySystem.Controllers
             return "ok";
         }
 
+
+        public string setlee()
+        {
+            WebCMSEntities db = new WebCMSEntities();
+            List<string> poslist = new List<string>();
+            poslist.Add("00003102722201179816714");
+            foreach(string PosSn in poslist)
+            {
+                PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.PosSn == PosSn);
+                if(pos != null)
+                {
+                    string info = "{\"RecordId\":\"\",\"PosId\":\"" + pos.Id + "\",\"Fee\": \"0.6\",\"Kind\": \"2\",\"OpMan\": \"系统\"}";
+                    RedisDbconn.Instance.AddList("SetDepositPostQueue", info);
+                }
+            }
+            db.Dispose();
+            return "ok";
+        }
+
     }
 }