diff --git a/CoreCms.Net.IRepository/System/ICoreCmsAppUpdateLogRepository.cs b/CoreCms.Net.IRepository/System/ICoreCmsAppUpdateLogRepository.cs new file mode 100644 index 00000000..9b1ead74 --- /dev/null +++ b/CoreCms.Net.IRepository/System/ICoreCmsAppUpdateLogRepository.cs @@ -0,0 +1,87 @@ +/*********************************************************************** + * Project: CoreCms + * ProjectName: 核心内容管理系统 + * Web: https://www.corecms.net + * Author: 大灰灰 + * Email: jianweie@163.com + * CreateTime: 2022/7/19 23:31:04 + * Description: 暂无 + ***********************************************************************/ + +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Threading.Tasks; +using CoreCms.Net.Model.Entities; +using CoreCms.Net.Model.ViewModels.Basics; +using CoreCms.Net.Model.ViewModels.UI; +using SqlSugar; + + +namespace CoreCms.Net.IRepository +{ + /// + /// 版本更新表 工厂接口 + /// + public interface ICoreCmsAppUpdateLogRepository : IBaseRepository + { + #region 重写增删改查操作=========================================================== + + /// + /// 重写异步插入方法 + /// + /// + /// + new Task InsertAsync(CoreCmsAppUpdateLog entity); + + + /// + /// 重写异步更新方法 + /// + /// + /// + new Task UpdateAsync(CoreCmsAppUpdateLog entity); + + + /// + /// 重写异步更新方法 + /// + /// + /// + new Task UpdateAsync(List entity); + + + /// + /// 重写删除指定ID的数据 + /// + /// + /// + new Task DeleteByIdAsync(object id); + + + /// + /// 重写删除指定ID集合的数据(批量删除) + /// + /// + /// + new Task DeleteByIdsAsync(int[] ids); + + #endregion + + /// + /// 重写根据条件查询分页数据 + /// + /// 判断集合 + /// 排序方式 + /// 当前页面索引 + /// 分布大小 + /// + /// 是否使用WITH(NOLOCK) + /// + new Task> QueryPageAsync( + Expression> predicate, + Expression> orderByExpression, OrderByType orderByType, int pageIndex = 1, + int pageSize = 20, bool blUseNoLock = false); + + } +} diff --git a/CoreCms.Net.IServices/System/ICoreCmsAppUpdateLogServices.cs b/CoreCms.Net.IServices/System/ICoreCmsAppUpdateLogServices.cs new file mode 100644 index 00000000..5d9093d6 --- /dev/null +++ b/CoreCms.Net.IServices/System/ICoreCmsAppUpdateLogServices.cs @@ -0,0 +1,84 @@ +/*********************************************************************** + * Project: CoreCms + * ProjectName: 核心内容管理系统 + * Web: https://www.corecms.net + * Author: 大灰灰 + * Email: jianweie@163.com + * CreateTime: 2022/7/19 23:31:04 + * Description: 暂无 + ***********************************************************************/ + +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Threading.Tasks; +using CoreCms.Net.Model.Entities; +using CoreCms.Net.Model.ViewModels.Basics; +using CoreCms.Net.Model.ViewModels.UI; +using SqlSugar; + +namespace CoreCms.Net.IServices +{ + /// + /// 版本更新表 服务工厂接口 + /// + public interface ICoreCmsAppUpdateLogServices : IBaseServices + { + #region 重写增删改查操作=========================================================== + + /// + /// 重写异步插入方法 + /// + /// + /// + new Task InsertAsync(CoreCmsAppUpdateLog entity); + + /// + /// 重写异步更新方法 + /// + /// + /// + new Task UpdateAsync(CoreCmsAppUpdateLog entity); + + /// + /// 重写异步更新方法 + /// + /// + /// + new Task UpdateAsync(List entity); + + /// + /// 重写删除指定ID的数据 + /// + /// + /// + new Task DeleteByIdAsync(object id); + + /// + /// 重写删除指定ID集合的数据(批量删除) + /// + /// + /// + new Task DeleteByIdsAsync(int[] ids); + + #endregion + + + #region 重写根据条件查询分页数据 + /// + /// 重写根据条件查询分页数据 + /// + /// 判断集合 + /// 排序方式 + /// 当前页面索引 + /// 分布大小 + /// + /// 是否使用WITH(NOLOCK) + /// + new Task> QueryPageAsync( + Expression> predicate, + Expression> orderByExpression, OrderByType orderByType, int pageIndex = 1, + int pageSize = 20, bool blUseNoLock = false); + #endregion + } +} diff --git a/CoreCms.Net.Model/Entities/System/CoreCmsAppUpdateLog.cs b/CoreCms.Net.Model/Entities/System/CoreCmsAppUpdateLog.cs new file mode 100644 index 00000000..152b7333 --- /dev/null +++ b/CoreCms.Net.Model/Entities/System/CoreCmsAppUpdateLog.cs @@ -0,0 +1,99 @@ +/*********************************************************************** + * Project: CoreCms + * ProjectName: 核心内容管理系统 + * Web: https://www.corecms.net + * Author: 大灰灰 + * Email: jianweie@163.com + * CreateTime: 2022/7/19 23:55:06 + * Description: 暂无 + ***********************************************************************/ + +using System; +using System.ComponentModel.DataAnnotations; +using SqlSugar; + +namespace CoreCms.Net.Model.Entities; + +/// +/// 版本更新表 +/// +public class CoreCmsAppUpdateLog +{ + /// + /// 构造函数 + /// + public CoreCmsAppUpdateLog() + { + } + + /// + /// 序列 + /// + [Display(Name = "序列")] + [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] + [Required(ErrorMessage = "请输入{0}")] + + + public int id { get; set; } + + + /// + /// 版本号 + /// + [Display(Name = "版本号")] + [Required(ErrorMessage = "请输入{0}")] + + + public int version { get; set; } + + + /// + /// 更新内容 + /// + [Display(Name = "更新内容")] + [Required(ErrorMessage = "请输入{0}")] + [StringLength(255, ErrorMessage = "{0}不能超过{1}字")] + + + public string note { get; set; } + + + /// + /// 安卓地址 + /// + [Display(Name = "安卓地址")] + [StringLength(255, ErrorMessage = "{0}不能超过{1}字")] + + + public string android { get; set; } + + + /// + /// IOS地址 + /// + [Display(Name = "IOS地址")] + [StringLength(255, ErrorMessage = "{0}不能超过{1}字")] + + + public string ios { get; set; } + + + /// + /// 创建时间 + /// + [Display(Name = "创建时间")] + [Required(ErrorMessage = "请输入{0}")] + + + public DateTime addTime { get; set; } + + + /// + /// 开启更新 + /// + [Display(Name = "开启更新")] + [Required(ErrorMessage = "请输入{0}")] + + + public bool isUpdate { get; set; } +} \ No newline at end of file diff --git a/CoreCms.Net.Repository/System/CoreCmsAppUpdateLogRepository.cs b/CoreCms.Net.Repository/System/CoreCmsAppUpdateLogRepository.cs new file mode 100644 index 00000000..8d64bcfd --- /dev/null +++ b/CoreCms.Net.Repository/System/CoreCmsAppUpdateLogRepository.cs @@ -0,0 +1,195 @@ +/*********************************************************************** + * Project: CoreCms + * ProjectName: 核心内容管理系统 + * Web: https://www.corecms.net + * Author: 大灰灰 + * Email: jianweie@163.com + * CreateTime: 2022/7/19 23:31:04 + * Description: 暂无 + ***********************************************************************/ + +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Threading.Tasks; +using CoreCms.Net.Caching.Manual; +using CoreCms.Net.Configuration; +using CoreCms.Net.Model.Entities; +using CoreCms.Net.Model.ViewModels.Basics; +using CoreCms.Net.IRepository; +using CoreCms.Net.IRepository.UnitOfWork; +using CoreCms.Net.Model.ViewModels.UI; +using SqlSugar; + +namespace CoreCms.Net.Repository +{ + /// + /// 版本更新表 接口实现 + /// + public class CoreCmsAppUpdateLogRepository : BaseRepository, ICoreCmsAppUpdateLogRepository + { + private readonly IUnitOfWork _unitOfWork; + public CoreCmsAppUpdateLogRepository(IUnitOfWork unitOfWork) : base(unitOfWork) + { + _unitOfWork = unitOfWork; + } + + #region 实现重写增删改查操作========================================================== + + /// + /// 重写异步插入方法 + /// + /// 实体数据 + /// + public new async Task InsertAsync(CoreCmsAppUpdateLog entity) + { + var jm = new AdminUiCallBack(); + + var bl = await DbClient.Insertable(entity).ExecuteReturnIdentityAsync() > 0; + jm.code = bl ? 0 : 1; + jm.msg = bl ? GlobalConstVars.CreateSuccess : GlobalConstVars.CreateFailure; + + return jm; + } + + /// + /// 重写异步更新方法 + /// + /// + /// + public new async Task UpdateAsync(CoreCmsAppUpdateLog entity) + { + var jm = new AdminUiCallBack(); + + var oldModel = await DbClient.Queryable().In(entity.id).SingleAsync(); + if (oldModel == null) + { + jm.msg = "不存在此信息"; + return jm; + } + //事物处理过程开始 + oldModel.id = entity.id; + oldModel.version = entity.version; + oldModel.note = entity.note; + oldModel.android = entity.android; + oldModel.ios = entity.ios; + //oldModel.addTime = entity.addTime; + oldModel.isUpdate = entity.isUpdate; + + //事物处理过程结束 + var bl = await DbClient.Updateable(oldModel).ExecuteCommandHasChangeAsync(); + jm.code = bl ? 0 : 1; + jm.msg = bl ? GlobalConstVars.EditSuccess : GlobalConstVars.EditFailure; + + return jm; + } + + /// + /// 重写异步更新方法 + /// + /// + /// + public new async Task UpdateAsync(List entity) + { + var jm = new AdminUiCallBack(); + + var bl = await DbClient.Updateable(entity).ExecuteCommandHasChangeAsync(); + jm.code = bl ? 0 : 1; + jm.msg = bl ? GlobalConstVars.EditSuccess : GlobalConstVars.EditFailure; + + return jm; + } + + /// + /// 重写删除指定ID的数据 + /// + /// + /// + public new async Task DeleteByIdAsync(object id) + { + var jm = new AdminUiCallBack(); + + var bl = await DbClient.Deleteable(id).ExecuteCommandHasChangeAsync(); + jm.code = bl ? 0 : 1; + jm.msg = bl ? GlobalConstVars.DeleteSuccess : GlobalConstVars.DeleteFailure; + + return jm; + } + + /// + /// 重写删除指定ID集合的数据(批量删除) + /// + /// + /// + public new async Task DeleteByIdsAsync(int[] ids) + { + var jm = new AdminUiCallBack(); + + var bl = await DbClient.Deleteable().In(ids).ExecuteCommandHasChangeAsync(); + jm.code = bl ? 0 : 1; + jm.msg = bl ? GlobalConstVars.DeleteSuccess : GlobalConstVars.DeleteFailure; + + return jm; + } + + #endregion + + + + #region 重写根据条件查询分页数据 + /// + /// 重写根据条件查询分页数据 + /// + /// 判断集合 + /// 排序方式 + /// 当前页面索引 + /// 分布大小 + /// + /// 是否使用WITH(NOLOCK) + /// + public new async Task> QueryPageAsync(Expression> predicate, + Expression> orderByExpression, OrderByType orderByType, int pageIndex = 1, + int pageSize = 20, bool blUseNoLock = false) + { + RefAsync totalCount = 0; + List page; + if (blUseNoLock) + { + page = await DbClient.Queryable() + .OrderByIF(orderByExpression != null, orderByExpression, orderByType) + .WhereIF(predicate != null, predicate).Select(p => new CoreCmsAppUpdateLog + { + id = p.id, + version = p.version, + note = p.note, + android = p.android, + ios = p.ios, + addTime = p.addTime, + isUpdate = p.isUpdate, + + }).With(SqlWith.NoLock).ToPageListAsync(pageIndex, pageSize, totalCount); + } + else + { + page = await DbClient.Queryable() + .OrderByIF(orderByExpression != null, orderByExpression, orderByType) + .WhereIF(predicate != null, predicate).Select(p => new CoreCmsAppUpdateLog + { + id = p.id, + version = p.version, + note = p.note, + android = p.android, + ios = p.ios, + addTime = p.addTime, + isUpdate = p.isUpdate, + + }).ToPageListAsync(pageIndex, pageSize, totalCount); + } + var list = new PageList(page, pageIndex, pageSize, totalCount); + return list; + } + + #endregion + + } +} diff --git a/CoreCms.Net.Services/System/CoreCmsAppUpdateLogServices.cs b/CoreCms.Net.Services/System/CoreCmsAppUpdateLogServices.cs new file mode 100644 index 00000000..8087b12b --- /dev/null +++ b/CoreCms.Net.Services/System/CoreCmsAppUpdateLogServices.cs @@ -0,0 +1,117 @@ +/*********************************************************************** + * Project: CoreCms + * ProjectName: 核心内容管理系统 + * Web: https://www.corecms.net + * Author: 大灰灰 + * Email: jianweie@163.com + * CreateTime: 2022/7/19 23:31:04 + * Description: 暂无 + ***********************************************************************/ + +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Threading.Tasks; +using CoreCms.Net.Configuration; +using CoreCms.Net.IRepository; +using CoreCms.Net.IRepository.UnitOfWork; +using CoreCms.Net.IServices; +using CoreCms.Net.Model.Entities; +using CoreCms.Net.Model.ViewModels.Basics; +using CoreCms.Net.Model.ViewModels.UI; +using SqlSugar; + + +namespace CoreCms.Net.Services +{ + /// + /// 版本更新表 接口实现 + /// + public class CoreCmsAppUpdateLogServices : BaseServices, ICoreCmsAppUpdateLogServices + { + private readonly ICoreCmsAppUpdateLogRepository _dal; + private readonly IUnitOfWork _unitOfWork; + + public CoreCmsAppUpdateLogServices(IUnitOfWork unitOfWork, ICoreCmsAppUpdateLogRepository dal) + { + this._dal = dal; + base.BaseDal = dal; + _unitOfWork = unitOfWork; + } + + #region 实现重写增删改查操作========================================================== + + /// + /// 重写异步插入方法 + /// + /// 实体数据 + /// + public new async Task InsertAsync(CoreCmsAppUpdateLog entity) + { + return await _dal.InsertAsync(entity); + } + + /// + /// 重写异步更新方法方法 + /// + /// + /// + public new async Task UpdateAsync(CoreCmsAppUpdateLog entity) + { + return await _dal.UpdateAsync(entity); + } + + /// + /// 重写异步更新方法方法 + /// + /// + /// + public new async Task UpdateAsync(List entity) + { + return await _dal.UpdateAsync(entity); + } + + /// + /// 重写删除指定ID的数据 + /// + /// + /// + public new async Task DeleteByIdAsync(object id) + { + return await _dal.DeleteByIdAsync(id); + } + + /// + /// 重写删除指定ID集合的数据(批量删除) + /// + /// + /// + public new async Task DeleteByIdsAsync(int[] ids) + { + return await _dal.DeleteByIdsAsync(ids); + } + + #endregion + + + #region 重写根据条件查询分页数据 + /// + /// 重写根据条件查询分页数据 + /// + /// 判断集合 + /// 排序方式 + /// 当前页面索引 + /// 分布大小 + /// + /// 是否使用WITH(NOLOCK) + /// + public new async Task> QueryPageAsync(Expression> predicate, + Expression> orderByExpression, OrderByType orderByType, int pageIndex = 1, + int pageSize = 20, bool blUseNoLock = false) + { + return await _dal.QueryPageAsync(predicate, orderByExpression, orderByType, pageIndex, pageSize, blUseNoLock); + } + #endregion + + } +} diff --git a/CoreCms.Net.Uni-App/CoreShop/App.vue b/CoreCms.Net.Uni-App/CoreShop/App.vue index 38247216..17d08e3d 100644 --- a/CoreCms.Net.Uni-App/CoreShop/App.vue +++ b/CoreCms.Net.Uni-App/CoreShop/App.vue @@ -2,7 +2,7 @@ + diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/system/appupdatelog/details.html b/CoreCms.Net.Web.Admin/wwwroot/views/system/appupdatelog/details.html new file mode 100644 index 00000000..3ed9debf --- /dev/null +++ b/CoreCms.Net.Web.Admin/wwwroot/views/system/appupdatelog/details.html @@ -0,0 +1,90 @@ + + \ No newline at end of file diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/system/appupdatelog/edit.html b/CoreCms.Net.Web.Admin/wwwroot/views/system/appupdatelog/edit.html new file mode 100644 index 00000000..e36d56d5 --- /dev/null +++ b/CoreCms.Net.Web.Admin/wwwroot/views/system/appupdatelog/edit.html @@ -0,0 +1,78 @@ + + diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/system/appupdatelog/index.html b/CoreCms.Net.Web.Admin/wwwroot/views/system/appupdatelog/index.html new file mode 100644 index 00000000..de4128ad --- /dev/null +++ b/CoreCms.Net.Web.Admin/wwwroot/views/system/appupdatelog/index.html @@ -0,0 +1,313 @@ +版本更新表 + +
+
+ +
+
+ + + +
+
+
+ + + + + + + + + + + + diff --git a/CoreCms.Net.Web.WebApi/Controllers/CommonController.cs b/CoreCms.Net.Web.WebApi/Controllers/CommonController.cs index 5b9ee4a9..d9d1751d 100644 --- a/CoreCms.Net.Web.WebApi/Controllers/CommonController.cs +++ b/CoreCms.Net.Web.WebApi/Controllers/CommonController.cs @@ -48,19 +48,20 @@ namespace CoreCms.Net.Web.WebApi.Controllers private readonly ICoreCmsSettingServices _coreCmsSettingServices; private readonly IToolsServices _toolsServices; - + private readonly ICoreCmsAppUpdateLogServices _appUpdateLogServices; /// /// 构造函数 /// public CommonController(ICoreCmsSettingServices settingServices , ICoreCmsAreaServices areaServices - , IWebHostEnvironment webHostEnvironment, ICoreCmsServiceDescriptionServices serviceDescriptionServices, ICoreCmsSettingServices coreCmsSettingServices, IToolsServices toolsServices) + , IWebHostEnvironment webHostEnvironment, ICoreCmsServiceDescriptionServices serviceDescriptionServices, ICoreCmsSettingServices coreCmsSettingServices, IToolsServices toolsServices, ICoreCmsAppUpdateLogServices appUpdateLogServices) { _webHostEnvironment = webHostEnvironment; _serviceDescriptionServices = serviceDescriptionServices; _coreCmsSettingServices = coreCmsSettingServices; _toolsServices = toolsServices; + _appUpdateLogServices = appUpdateLogServices; _settingServices = settingServices; _areaServices = areaServices; @@ -166,6 +167,10 @@ namespace CoreCms.Net.Web.WebApi.Controllers var qqMapKey = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.QqMapKey); //腾讯地图key + + var checkInIsOpen = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.CheckInIsOpen).ObjectToInt(2); //订单取消时间 + + var model = new { shopLogo, @@ -216,7 +221,8 @@ namespace CoreCms.Net.Web.WebApi.Controllers agentNotes, agentAgreement, agentStore, - qqMapKey + qqMapKey, + checkInIsOpen }; jm.data = model; return jm; @@ -267,6 +273,28 @@ namespace CoreCms.Net.Web.WebApi.Controllers #endregion + #region 获取最后更新版本号 + + /// + /// 获取商城关键词说明列表 + /// + /// + [HttpPost] + public async Task GetAppVersions() + { + var jm = new WebApiCallBack(); + + var model = await _appUpdateLogServices.QueryByClauseAsync(p => p.isUpdate == true, p => p.id, OrderByType.Desc); + + jm.status = true; + jm.data = model; + return jm; + } + + #endregion + + + //验证接口==================================================================================================== #region 上传附件通用接口==================================================== diff --git a/数据库/MySql/20220720/升级脚本/1、创建表脚本.sql b/数据库/MySql/20220720/升级脚本/1、创建表脚本.sql new file mode 100644 index 00000000..4a647ba4 --- /dev/null +++ b/数据库/MySql/20220720/升级脚本/1、创建表脚本.sql @@ -0,0 +1,40 @@ +/* + Navicat Premium Data Transfer + + Source Server : rm-wz92918pm46bsbc37mo.mysql.rds.aliyuncs.com + Source Server Type : MySQL + Source Server Version : 50732 + Source Host : rm-wz92918pm46bsbc37mo.mysql.rds.aliyuncs.com:3306 + Source Schema : coreshop + + Target Server Type : MySQL + Target Server Version : 50732 + File Encoding : 65001 + + Date: 20/07/2022 01:14:24 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for CoreCmsAppUpdateLog +-- ---------------------------- +DROP TABLE IF EXISTS `CoreCmsAppUpdateLog`; +CREATE TABLE `CoreCmsAppUpdateLog` ( + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '序列', + `version` int(11) NOT NULL COMMENT '版本号', + `note` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '更新内容', + `android` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '安卓地址', + `ios` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'IOS地址', + `addTime` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间', + `isUpdate` tinyint(1) NOT NULL COMMENT '开启更新', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of CoreCmsAppUpdateLog +-- ---------------------------- +INSERT INTO `CoreCmsAppUpdateLog` VALUES (1, 10, '测试更新内容', 'http://app.coreshop.cn/apk/coreshopandroid.apk', '', '0000-00-00 00:00:00', 1); + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/数据库/MySql/20220720/升级脚本/2、添加后台菜单链接数据.sql b/数据库/MySql/20220720/升级脚本/2、添加后台菜单链接数据.sql new file mode 100644 index 00000000..ab443f5d --- /dev/null +++ b/数据库/MySql/20220720/升级脚本/2、添加后台菜单链接数据.sql @@ -0,0 +1 @@ +INSERT INTO `SysMenu` VALUES (1388, 43, 'appupdatelog', '安卓苹果更新日志', NULL, 'system/appupdatelog/index', NULL, 0, 10, NULL, NULL, NULL, 0, 0, '2022-07-20 01:19:33', NULL); \ No newline at end of file diff --git a/数据库/MySql/20220720/完整脚本/coreshop20220720带商品演示脚本aliyun导出.zip b/数据库/MySql/20220720/完整脚本/coreshop20220720带商品演示脚本aliyun导出.zip new file mode 100644 index 00000000..bb648fb1 Binary files /dev/null and b/数据库/MySql/20220720/完整脚本/coreshop20220720带商品演示脚本aliyun导出.zip differ diff --git a/数据库/MySql/20220720/完整脚本/coreshop20220720带商品演示脚本navicat导出.rar b/数据库/MySql/20220720/完整脚本/coreshop20220720带商品演示脚本navicat导出.rar new file mode 100644 index 00000000..b5e3d38d Binary files /dev/null and b/数据库/MySql/20220720/完整脚本/coreshop20220720带商品演示脚本navicat导出.rar differ diff --git a/数据库/MySql/数据库更新日志.txt b/数据库/MySql/数据库更新日志.txt index 17066266..d831e1d1 100644 --- a/数据库/MySql/数据库更新日志.txt +++ b/数据库/MySql/数据库更新日志.txt @@ -1,3 +1,6 @@ +2022-07-20 +【新增】新增表【CoreCmsAppUpdateLog】版本更新表,用于启动安卓app获取对应更新 + 2022-07-15 【新增】表【CoreCmsGoods】增加【initialSales】初始销量字段,用于展示友好销量 diff --git a/数据库/SqlServer/20220720/20220720完整数据库带演示商品.rar b/数据库/SqlServer/20220720/20220720完整数据库带演示商品.rar new file mode 100644 index 00000000..7519ec8a Binary files /dev/null and b/数据库/SqlServer/20220720/20220720完整数据库带演示商品.rar differ diff --git a/数据库/SqlServer/20220720/升级脚本/1、创建表脚本.sql b/数据库/SqlServer/20220720/升级脚本/1、创建表脚本.sql new file mode 100644 index 00000000..30178dd9 --- /dev/null +++ b/数据库/SqlServer/20220720/升级脚本/1、创建表脚本.sql @@ -0,0 +1,51 @@ + +/****** Object: Table [dbo].[CoreCmsAppUpdateLog] Script Date: 2022/7/20 1:02:59 ******/ +SET ANSI_NULLS ON +GO + +SET QUOTED_IDENTIFIER ON +GO + +CREATE TABLE [dbo].[CoreCmsAppUpdateLog]( + [id] [INT] IDENTITY(1,1) NOT NULL, + [version] [INT] NOT NULL, + [note] [NVARCHAR](255) NOT NULL, + [android] [NVARCHAR](255) NULL, + [ios] [NVARCHAR](255) NULL, + [addTime] [DATETIME] NOT NULL, + [isUpdate] [BIT] NOT NULL, + CONSTRAINT [PK_CoreCmsAppUpdateLog] PRIMARY KEY CLUSTERED +( + [id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] +GO + +ALTER TABLE [dbo].[CoreCmsAppUpdateLog] ADD CONSTRAINT [DF_CoreCmsAppUpdateLog_addTime] DEFAULT (GETDATE()) FOR [addTime] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CoreCmsAppUpdateLog', @level2type=N'COLUMN',@level2name=N'id' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'汾' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CoreCmsAppUpdateLog', @level2type=N'COLUMN',@level2name=N'version' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CoreCmsAppUpdateLog', @level2type=N'COLUMN',@level2name=N'note' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'׿ַ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CoreCmsAppUpdateLog', @level2type=N'COLUMN',@level2name=N'android' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'IOSַ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CoreCmsAppUpdateLog', @level2type=N'COLUMN',@level2name=N'ios' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CoreCmsAppUpdateLog', @level2type=N'COLUMN',@level2name=N'addTime' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CoreCmsAppUpdateLog', @level2type=N'COLUMN',@level2name=N'isUpdate' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'汾±' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CoreCmsAppUpdateLog' +GO + + diff --git a/数据库/SqlServer/20220720/升级脚本/2、添加后台菜单链接数据.sql b/数据库/SqlServer/20220720/升级脚本/2、添加后台菜单链接数据.sql new file mode 100644 index 00000000..07f22dca Binary files /dev/null and b/数据库/SqlServer/20220720/升级脚本/2、添加后台菜单链接数据.sql differ diff --git a/数据库/SqlServer/数据库更新日志.txt b/数据库/SqlServer/数据库更新日志.txt index 67de2fb3..5c707be8 100644 --- a/数据库/SqlServer/数据库更新日志.txt +++ b/数据库/SqlServer/数据库更新日志.txt @@ -1,3 +1,6 @@ +2022-07-20 +【新增】新增表【CoreCmsAppUpdateLog】版本更新表,用于启动安卓app获取对应更新 + 2022-07-15 【新增】表【CoreCmsGoods】增加【initialSales】初始销量字段,用于展示友好销量