liaoxujun@qq.com
2024-03-27 26f059f55124470a57554e0941d6be4cc72bbbdc
CoreCms.Net.Repository/Shop/CoreCmsStoreRepository.cs
@@ -87,25 +87,25 @@
                jm.msg = "不存在此信息";
                return jm;
            }
            //事物处理过程开始
            //事务处理过程开始
            oldModel.storeName = entity.storeName;
            oldModel.mobile = entity.mobile;
            oldModel.linkMan = entity.linkMan;
            oldModel.logoImage = entity.logoImage;
            oldModel.areaId = entity.areaId;
            oldModel.address = entity.address;
            oldModel.coordinate = entity.coordinate;
            //oldModel.coordinate = entity.coordinate;
            oldModel.latitude = entity.latitude;
            oldModel.longitude = entity.longitude;
            oldModel.updateTime = entity.updateTime;
            oldModel.isDefault = entity.isDefault;
            if (entity.coordinate.Contains(","))
            {
                var latlong = entity.coordinate.Split(",");
                oldModel.latitude = latlong[0];
                oldModel.longitude = latlong[1];
            }
            //if (entity.coordinate.Contains(","))
            //{
            //    var latlong = entity.coordinate.Split(",");
            //    oldModel.latitude = latlong[0];
            //    oldModel.longitude = latlong[1];
            //}
            var isDefaultObj = DbClient.Queryable<CoreCmsStore>().Where(p => p.isDefault == true).Any();
            if (isDefaultObj && entity.isDefault == true)