|
@@ -224,10 +224,20 @@ namespace MySystem.Controllers
|
|
|
// }
|
|
|
// db.SaveChanges();
|
|
|
|
|
|
+ return "ok";
|
|
|
+ }
|
|
|
+
|
|
|
+ public string addmer(int id = 0)
|
|
|
+ {
|
|
|
+ List<int> ids = new List<int>();
|
|
|
+ ids.Add(7551);
|
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
|
- MerchantAddInfo add = db.MerchantAddInfo.FirstOrDefault(m => m.Id == 3335) ?? new MerchantAddInfo();
|
|
|
- MerchantInfo mer = db.MerchantInfo.FirstOrDefault(m => m.Id == 3335) ?? new MerchantInfo();
|
|
|
- PosPushDataNewHelper.Bind(add, mer);
|
|
|
+ foreach(int sid in ids)
|
|
|
+ {
|
|
|
+ MerchantAddInfo add = db.MerchantAddInfo.FirstOrDefault(m => m.Id == sid) ?? new MerchantAddInfo();
|
|
|
+ MerchantInfo mer = db.MerchantInfo.FirstOrDefault(m => m.Id == sid) ?? new MerchantInfo();
|
|
|
+ PosPushDataNewHelper.Bind(add, mer);
|
|
|
+ }
|
|
|
db.Dispose();
|
|
|
return "ok";
|
|
|
}
|