浏览代码

批量提交费率设置

lcl 2 年之前
父节点
当前提交
a3e8f96e28
共有 1 个文件被更改,包括 19 次插入0 次删除
  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";
+        }
+
     }
 }