/// <summary> /// 同步门店 /// </summary> /// <param name="shopId"></param> /// <returns></returns> public ActionResult SyncShop(int shopId, string thirdParty) { var result = new ShopSyncManager().SyncShop(shopId, thirdParty); return(Json(new { success = result, msg = result ? "同步成功" : "同步失败" }, JsonRequestBehavior.AllowGet)); }
public ActionResult GetShopSyncRecord(string company, int pageIndex, int pageSize, string syncStatus, int shopId, string simpleName, string fullName) { var result = new ShopSyncManager().SelectThirdPartyShopSyncRecord(company.Trim(), pageIndex, pageSize, syncStatus, shopId, simpleName.Trim(), fullName.Trim()); return(Json(new { data = result.Item1, totalCount = result.Item2, pageIndex = pageIndex }, JsonRequestBehavior.AllowGet)); }
public ActionResult GetShopSyncThirdParties() { var companies = new ShopSyncManager().SelectShopSyncThirdPartyies(); return(Json(companies, JsonRequestBehavior.AllowGet)); }