/// <summary> /// 查询商户综合信息 /// danny-20150601 /// </summary> /// <param name="businessId">商户Id</param> /// <returns></returns> public ActionResult QueryBusinessDetail(string businessId) { var businessDetailModel = iBusinessProvider.GetBusinessDetailById(businessId); var userType = UserContext.Current.AccountType == 1 ? 0 : UserContext.Current.Id;//如果管理后台的类型是所有权限就传0,否则传管理后台id var isStarTimeSubsidies = new GlobalConfigProvider().GlobalConfigMethod(businessDetailModel.BusinessGroupId).IsStarTimeSubsidies; var isStartOverStoreSubsidies = new GlobalConfigProvider().GlobalConfigMethod(businessDetailModel.BusinessGroupId).IsStartOverStoreSubsidies; var subsidyConfig = ""; if (isStartOverStoreSubsidies == "1") { subsidyConfig = "全局补贴:跨店抢单奖励"; } if (isStarTimeSubsidies == "1") { subsidyConfig = string.IsNullOrWhiteSpace(subsidyConfig) ? "全局补贴:动态时间奖励" : "全局补贴:跨店抢单奖励和动态时间奖励"; } ViewBag.subsidyConfig = subsidyConfig; ViewBag.openCityList = iAreaProvider.GetOpenCityOfSingleCity(ParseHelper.ToInt(userType)); ViewBag.openAreaList = iAreaProvider.GetOpenCityDistrict(ParseHelper.ToInt(businessDetailModel.CityId)); ViewBag.businessThirdRelation = iBusinessProvider.GetBusinessThirdRelation(ParseHelper.ToInt(businessId)); ViewBag.BusinessOpLog = iBusinessProvider.GetBusinessOpLog(ParseHelper.ToInt(businessId, 0));//add by wangchao ViewBag.deliveryCompany = iDeliveryCompanyProvider.GetDeliveryCompanyList(); return(View("BusinessModify", businessDetailModel)); }