public static bool SaveLimitAreaSaleCity(int productConfigId, int cityId, string cityName, int isAllowSale, int?warehouseId, string warehouseName, int?supplierId, string supplierName, string user = null) { bool result = false; try { var beforvalue = DalLimitAreaSale.GetLimitAreaSaleCityConfigLimit(productConfigId, cityId); var dbresult = DalLimitAreaSale.SaveLimitAreaSaleCity(productConfigId, cityId, cityName, isAllowSale, warehouseId, warehouseName, supplierId, supplierName); result = dbresult > 0; var oprLog = new FlashSaleProductOprLog { OperateUser = ThreadIdentity.Operator.Name, CreateDateTime = DateTime.Now, BeforeValue = JsonConvert.SerializeObject(beforvalue), AfterValue = JsonConvert.SerializeObject(new SimpleLimitAreaSaleCityModel() { CityId = cityId, CityName = cityName, IsAllowSale = isAllowSale, WarehouseId = warehouseId, WarehouseName = warehouseName, SupplierId = supplierId, SupplierName = supplierName }), LogType = "LimitAreaCity", LogId = productConfigId + "|" + cityId, Operation = "修改地区限售" }; LoggerManager.InsertLog("LimitAreaOprLog", oprLog); } catch (Exception ex) { logger.Error(ex.Message, ex); } return(result); }