diff --git a/doc/mcms-5.3.3.sql b/doc/mcms-5.3.4.sql
similarity index 95%
rename from doc/mcms-5.3.3.sql
rename to doc/mcms-5.3.4.sql
index d3ba17a0..ada468b5 100644
--- a/doc/mcms-5.3.3.sql
+++ b/doc/mcms-5.3.4.sql
@@ -32,7 +32,7 @@ CREATE TABLE `app` (
-- Records of app
-- ----------------------------
BEGIN;
-INSERT INTO `app` (`id`, `app_name`, `app_url`, `app_logo`, `app_keyword`, `app_copyright`, `app_style`, `app_description`, `app_pay`, `app_state`, `app_datetime`, `app_pay_date`, `app_dir`, `update_date`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1, '5.3.3 铭飞MCMS', 'http://localhost:8080/', '[{\"url\":\"/upload/1/appLogo/1609397756549.png\",\"name\":\"logo_small.png\",\"path\":\"/upload/1/appLogo/1609397756549.png\",\"uid\":1685699633311,\"status\":\"success\"}]', 'CMS,免费CMS,免费开源Java CMS,CMS系统,Java CMS,CMS内容管理系统,企业CMS,HTML网页模板,CMS模板,CMS源码,网站源码,信创系统软件,安可系统,网站建设,模板网站,建站模板,建站工具,建站平台,建站工具', '站点版权信息,可配置', 'default', '基于java开发的一套java cms,也是轻量级开源内容管理系统,CMS简洁、安全、开源、免费,可运行在Linux、Windows、MacOSX、Solaris等各种平台上,专注为公司企业、个人站长快速建站提供解决方案,铭飞MS平台为您提供各类cms网站模板下载,公司网站、企业网站模板、网站后台系统模板、免费网站模板,10年建站公司老品牌值得信赖的cms!', '', 0, NULL, '2019-11-17 00:00:00', 'web', '2023-06-29 09:35:00', '57', NULL, '', 0);
+INSERT INTO `app` (`id`, `app_name`, `app_url`, `app_logo`, `app_keyword`, `app_copyright`, `app_style`, `app_description`, `app_pay`, `app_state`, `app_datetime`, `app_pay_date`, `app_dir`, `update_date`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1, '5.3.4 铭飞MCMS', 'http://localhost:8080/', '[{\"url\":\"/upload/1/appLogo/1609397756549.png\",\"name\":\"logo_small.png\",\"path\":\"/upload/1/appLogo/1609397756549.png\",\"uid\":1685699633311,\"status\":\"success\"}]', 'CMS,免费CMS,免费开源Java CMS,CMS系统,Java CMS,CMS内容管理系统,企业CMS,HTML网页模板,CMS模板,CMS源码,网站源码,信创系统软件,安可系统,网站建设,模板网站,建站模板,建站工具,建站平台,建站工具', '站点版权信息,可配置', 'default', '基于java开发的一套java cms,也是轻量级开源内容管理系统,CMS简洁、安全、开源、免费,可运行在Linux、Windows、MacOSX、Solaris等各种平台上,专注为公司企业、个人站长快速建站提供解决方案,铭飞MS平台为您提供各类cms网站模板下载,公司网站、企业网站模板、网站后台系统模板、免费网站模板,10年建站公司老品牌值得信赖的cms!', '', 0, NULL, '2019-11-17 00:00:00', 'web', '2023-06-29 09:35:00', '57', NULL, '', 0);
COMMIT;
-- ----------------------------
@@ -138,7 +138,7 @@ BEGIN;
INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_title`, `content_short_title`, `content_keyword`, `content_description`, `content_img`, `content_source`, `content_author`, `content_display`, `content_type`, `content_datetime`, `content_sort`, `content_tags`, `content_hit`, `content_out_link`, `has_detail_html`, `update_date`, `has_list_html`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1666653707267547136, 1666653706550321157, '

', 'MEC工程造价咨询管理软件', NULL, '', '支持分公司、跨地域协同管理,支持微信审批、通知更即时,与钉钉一样的审批,让审批流程更简单', '[{\"url\":\"blob:http://localhost:8080/605fb4e4-7874-4f30-9eb6-87c8dc4b046f\",\"name\":\"a.png\",\"path\":\"/upload/1/cms/content/1609837720097.png\",\"uid\":1609837720054,\"status\":\"success\"}]', '', '', '0', 'c', '2023-06-08 11:49:43', 0, NULL, 0, NULL, 0, '2023-06-08 11:49:43', 0, '57', '2023-06-08 11:49:43', '57', 0);
INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_title`, `content_short_title`, `content_keyword`, `content_description`, `content_img`, `content_source`, `content_author`, `content_display`, `content_type`, `content_datetime`, `content_sort`, `content_tags`, `content_hit`, `content_out_link`, `has_detail_html`, `update_date`, `has_list_html`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1666653707301101568, 1666653706550321157, '1、BIM引擎
2、项目管理
3、计划管理
4、进度管理
5、质量管理
6、填报管理
', 'BIMCms施工管理软件', NULL, '', 'BIM数字化构件施工模型', '[{\"url\":\"blob:http://localhost:8080/e267453c-5762-40af-ba47-b7979e11421e\",\"name\":\"a.png\",\"path\":\"/upload/1/cms/content/1609837616948.png\",\"uid\":1609837616874,\"status\":\"success\"}]', '', '', '0', 'c', '2023-06-08 11:49:44', 0, NULL, 0, NULL, 0, '2023-06-08 11:49:43', 0, '57', '2023-06-08 11:49:43', '57', 0);
INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_title`, `content_short_title`, `content_keyword`, `content_description`, `content_img`, `content_source`, `content_author`, `content_display`, `content_type`, `content_datetime`, `content_sort`, `content_tags`, `content_hit`, `content_out_link`, `has_detail_html`, `update_date`, `has_list_html`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1666653707418542080, 1666653706550321158, '
', '5.2.0稳定版本发布', NULL, '', '', '[{\"url\":\"blob:http://localhost:8080/e246f0df-08a8-41e8-9494-17db1970ba0d\",\"name\":\"5.png\",\"path\":\"/upload/1/cms/content/1609825459624.png\",\"uid\":1609825459171,\"status\":\"success\"}]', '', '', '0', 'c', '2023-06-08 11:49:49', 0, NULL, 41, NULL, 0, '2023-06-08 11:49:43', 0, '57', '2023-06-08 11:49:43', '57', 0);
-INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_title`, `content_short_title`, `content_keyword`, `content_description`, `content_img`, `content_source`, `content_author`, `content_display`, `content_type`, `content_datetime`, `content_sort`, `content_tags`, `content_hit`, `content_out_link`, `has_detail_html`, `update_date`, `has_list_html`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1666653707447902208, 1666653706550321158, 'http://doc.mingsoft.net/plugs-cms/
', 'mcms在线适用手册', NULL, '', 'MCms内容插件提供最基本的菜单、权限、角色、栏目、内容、静态化、等常用功能。', '[{\"url\":\"blob:http://localhost:8080/1a5a3605-d831-4123-8c18-de8197aa7295\",\"name\":\"a.png\",\"path\":\"/upload/1/cms/content/1609835836996.png\",\"uid\":1609835836971,\"status\":\"success\"}]', '', '', '0', '', '2023-06-08 11:49:50', 0, NULL, 20, NULL, 0, '2023-06-08 11:49:43', 0, '57', '2023-06-08 11:49:43', '57', 0);
+INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_title`, `content_short_title`, `content_keyword`, `content_description`, `content_img`, `content_source`, `content_author`, `content_display`, `content_type`, `content_datetime`, `content_sort`, `content_tags`, `content_hit`, `content_out_link`, `has_detail_html`, `update_date`, `has_list_html`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1666653707447902208, 1666653706550321158, 'http://doc.mingsoft.net/plugs-cms/
', 'mcms在线适用手册', NULL, '', 'MCms内容插件提供最基本的菜单、权限、角色、栏目、内容、静态化、等常用功能。', '[{\"url\":\"/upload/1/cms/content/1609835836996.png\",\"name\":\"a.png\",\"path\":\"/upload/1/cms/content/1609835836996.png\",\"uid\":1609835836971,\"status\":\"success\"}]', '', '', '0', '', '2023-06-08 11:49:50', 0, '', 23, '', 0, '2023-09-28 16:33:22', 0, '57', '2023-06-08 11:49:43', '57', 0);
INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_title`, `content_short_title`, `content_keyword`, `content_description`, `content_img`, `content_source`, `content_author`, `content_display`, `content_type`, `content_datetime`, `content_sort`, `content_tags`, `content_hit`, `content_out_link`, `has_detail_html`, `update_date`, `has_list_html`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1666653707494039552, 1666653706550321159, '国内的开源环境已经相当好,但是国内开发注重是应用,创新有但不多,从榜单可以看出,专门搞技术的还是少数,结合项目实践的站大多数,分享给你们,架构的时候可以参考这些解决方案,传送门:gogeeks.cn
zheng征项目(stars 5.6k)
基于Spring+SpringMVC+Mybatis分布式敏捷开发系统架构,提供整套公共微服务服务模块:集中权限管理(单点登录)、内容管理、支付中心、用户管理(支持第三方登录)、微信平台、存储系统、配置中心、日志分析、任务和通知等,支持服务治理、监控和追踪,努力为中小型企业打造全方位J2EE企业级开发解决方案。

地址:https://gitee.com/shuzheng/zheng
JFinal(stars 4.8k)
JFinal 是基于 Java 语言的极速 WEB + ORM 框架,其核心设计目标是开发迅速、代码量少、学习简单、功能强大、轻量级、易扩展、Restful。在拥有Java语言所有优势的同时再拥有ruby、python、php等动态语言的开发效率!为您节约更多时间,去陪恋人、家人和朋友 :)

地址:http://www.jfinal.com/
SpringBoot-Learning(stars 4.6k)
Spring Boot教程与Spring Cloud教程
地址:https://gitee.com/didispace/SpringBoot-Learning
iBase4J(stars 4.1k)
AVA分布式快速开发平台:SpringBoot,SpringMVC,Mybatis,mybatis-plus,motan/dubbo分布式,Redis缓存,Shiro权限管理,Spring-Session单点登录,Quartz分布式集群调度,Restful服务,QQ/微信登录,App token登录,微信/支付宝支付;日期转换、数据类型转换、序列化、汉字转拼音、身份证号码验证、数字转人民币、发送短信、发送邮件、加密解密、图片处理、excel导入导出、FTP/SFTP/fastDFS上传下载、二维码、XML读写、高精度计算、系统配置工具类等等。

地址:https://gitee.com/iBase4J/iBase4J
JeeSite(stars 3.1k)
JeeSite 是一个企业信息化开发基础平台,Java EE(J2EE)快速开发框架,使用经典技术组合(Spring、Spring MVC、Apache Shiro、MyBatis、Bootstrap UI),包括核心模块如:组织机构、角色用户、权限授权、数据权限、内容管理、工作流等。
地址:https://gitee.com/thinkgem/jeesite
jeewx(stars 2.6k)
Jeewx是一款开源、免费的微信管家系统(多触点管理平台)。采用JAVA语言,支持微信公众号、微信企业号、支付宝服务窗、QQ公众号、微博账号等多触点管理。Jeewx实现了微信、支付窗、微信企业号、微博等触点的基础管理功能,便于用户二次开发。2014年荣获CSDN开发商大会第一名

地址:https://gitee.com/jeecg/jeewx
MCMS建站系统(stars 2.5k)
完整开源!Java快速开发平台!基于Spring、SpringMVC、Mybatis架构,MStore提供更多好用的插件与模板(文章、商城、微信、论坛、会员、评论、支付、积分、工作流、任务调度等,同时提供上百套免费模板任意选择),价值源自分享!铭飞系统不仅一套简单好用的开源系统、更是一整套优质的开源生态内容体系。铭飞的使命就是降低开发成本提高开发效率,提供全方位的企业级开发解决方案,每月28定期更新版本

地址:https://gitee.com/mingSoft/MCMS
t-io(stars 2.3k)
t-io是基于jdk aio实现的易学易用、稳定耐操、性能强悍、将多线程运用到极致、内置功能丰富、核心代码只有3000多行(2017年05月13号统计)的即时通讯框架(广义上的即时通讯,并非指im),字母 t 寓意talent。

地址:https://gitee.com/tywo45/t-io
CMS(stars 2.1k)
一款使用Java语言开发的CMS,使用了Spring MVC,Spring,MyBatis等流行框架,提供首页大图管理、目录管理、文章管理和管理员管理等功能。是学习和二次开发的首选

地址:https://gitee.com/shishuo/CMS
hutool(stars 2k)
一个Java基础工具类,对文件、流、加密解密、转码、正则、线程、XML等JDK方法进行封装,组成各种Util工具类,同时提供以下组件: 1. 布隆过滤 2. 缓存 3. 数据库ORM(基于ActiveRecord思想)4. HTTP客户端 5. IO 6. JSON 7. 日志 8. System(JVM和系统信息等) 9. Setting(一种扩展Properties的配置文件)

', '国内最火的10款Java开源项目,都是国人开发,CMS居多', NULL, '', '价值源自分享!铭飞系统不仅一套简单好用的开源系统、更是一整套优质的开源生态内容体系。铭飞的使命就是降低开发成本提高开发效率,提供全方位的企业级开发解决方案,每月28定期更新版本', '[{\"url\":\"/upload/1/cms/content/1609835640813.jpeg\",\"name\":\"a.jpeg\",\"path\":\"/upload/1/cms/content/1609835640813.jpeg\",\"uid\":1609835640738,\"status\":\"success\"}]', '', '', '0', '', '2023-06-08 11:49:51', 0, NULL, 66, NULL, 0, '2023-06-08 11:49:43', 0, '57', '2023-06-08 11:49:43', '57', 0);
INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_title`, `content_short_title`, `content_keyword`, `content_description`, `content_img`, `content_source`, `content_author`, `content_display`, `content_type`, `content_datetime`, `content_sort`, `content_tags`, `content_hit`, `content_out_link`, `has_detail_html`, `update_date`, `has_list_html`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1666653707573731328, 1666653706550321160, ' 团队成立于2012年,是一群不断的以技术创新与软件研发为核心的学习型技术团队。团队在软件研发的技术领域,不断地积累通用、实用、好用的通用功能插件,实现系统模块化集成开发解决方案。方案适用于传统互联网、移动互联网、物联网,不仅大大降低软件产品在研发投入的成本,更能加快软件的研发进程!
使命:降低软件研发成
价值观:价值源自分享
愿景:享自由、享生活
', '公司介绍', NULL, '关键字', '团队成立于2012年,是一群不断的以技术创新与软件研发为核心的学习型技术团队。团队在软件研发的技术领域,不断地积累通用、实用、好用的通用功能插件,实现系统模块化集成开发解决方案。方案适用于传统互联网、移动互联网、物联网,不仅大大降低软件产品在研发投入的成本,更能加快软件的研发进程!', '[{\"url\":\"/upload/1/cms/content/1609838258663.png\",\"name\":\"a.png\",\"path\":\"/upload/1/cms/content/1609838258663.png\",\"uid\":1609838258513,\"status\":\"success\"}]', '', '', '0', '', '2023-06-08 11:49:52', 0, NULL, 0, NULL, 0, '2023-06-08 18:15:26', 0, '57', '2023-06-08 11:49:43', '57', 0);
INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_title`, `content_short_title`, `content_keyword`, `content_description`, `content_img`, `content_source`, `content_author`, `content_display`, `content_type`, `content_datetime`, `content_sort`, `content_tags`, `content_hit`, `content_out_link`, `has_detail_html`, `update_date`, `has_list_html`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1666653707686977536, 1666653706550321155, 'TEL:19970180163
客服QQ:942770163 商务QQ:3336073455
Email:service@mingsoft.net
Addr:江西省南昌市南昌高新技术产业开发区紫阳大道2999号紫阳明珠一期办公室楼503室

', '联系我们', NULL, '', '', '', '', '', '0', '', '2023-06-08 11:49:53', 0, NULL, 0, '', 0, '2023-06-08 11:49:43', 0, '57', '2023-06-08 11:49:43', '57', 0);
@@ -178,8 +178,8 @@ INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_titl
INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_title`, `content_short_title`, `content_keyword`, `content_description`, `content_img`, `content_source`, `content_author`, `content_display`, `content_type`, `content_datetime`, `content_sort`, `content_tags`, `content_hit`, `content_out_link`, `has_detail_html`, `update_date`, `has_list_html`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1666747315024973825, 1666653706550321156, '', '微信插件', '', '', '', '[{\"url\":\"/upload/1/cms/content/1686218500020.jpeg\",\"name\":\"1652093894689.jpeg\",\"path\":\"/upload/1/cms/content/1686218500020.jpeg\",\"uid\":1686218500003,\"status\":\"success\"}]', '', '', '0', '', '2023-06-08 18:01:31', 0, '', 0, '', 0, '2023-06-08 18:02:58', 0, '57', '2023-06-08 18:01:41', '57', 0);
INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_title`, `content_short_title`, `content_keyword`, `content_description`, `content_img`, `content_source`, `content_author`, `content_display`, `content_type`, `content_datetime`, `content_sort`, `content_tags`, `content_hit`, `content_out_link`, `has_detail_html`, `update_date`, `has_list_html`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1666747903594876929, 1329316146811314177, '', '新版本富文本编辑器', '', '', '因为百度编辑器已经停止维护,这里推荐更新最新的基于vue 版本的编辑器mce,直接下载源码覆盖使用,发布附件、视频、图文更加方便\n\n注意:如果文章发布有修改过,建议源码覆盖的时候注意进行git比对。(https://gitee.com/mingSoft/MCMS 记得watch\\start\\fork 这样代码有修改会第一时间通过邮箱通知)', '[{\"url\":\"/upload/1/cms/content/1686218640385.png\",\"name\":\"1652078211570.png\",\"path\":\"/upload/1/cms/content/1686218640385.png\",\"uid\":1686218640357,\"status\":\"success\"}]', '', '', '0', '', '2023-06-08 18:03:42', 0, '', 0, '', 0, '2023-06-08 18:04:44', 0, '57', '2023-06-08 18:04:02', '57', 0);
INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_title`, `content_short_title`, `content_keyword`, `content_description`, `content_img`, `content_source`, `content_author`, `content_display`, `content_type`, `content_datetime`, `content_sort`, `content_tags`, `content_hit`, `content_out_link`, `has_detail_html`, `update_date`, `has_list_html`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1666748214455717889, 1329316146811314177, '', '在线留言', '', '', '', '[{\"url\":\"blob:http://192.168.0.215:8080/830b687b-959f-4ce3-8ce2-27801d567d1d\",\"name\":\"1652079758611.jpeg\",\"path\":\"/upload/1/cms/content/1686218713768.jpeg\",\"uid\":1686218713749,\"status\":\"success\"}]', '', '', '0', '', '2023-06-08 18:04:51', 0, '', 0, '', 0, '2023-06-08 18:05:16', 0, NULL, '2023-06-08 18:05:16', '57', 0);
-INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_title`, `content_short_title`, `content_keyword`, `content_description`, `content_img`, `content_source`, `content_author`, `content_display`, `content_type`, `content_datetime`, `content_sort`, `content_tags`, `content_hit`, `content_out_link`, `has_detail_html`, `update_date`, `has_list_html`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1666748349411643394, 1329316146811314177, '', '自动静态化插件', '', '', '', '[{\"url\":\"blob:http://192.168.0.215:8080/44fe0845-2f47-40c1-80d2-4d3a7cf39d21\",\"name\":\"1652095443016.jpeg\",\"path\":\"/upload/1/cms/content/1686218746865.jpeg\",\"uid\":1686218746844,\"status\":\"success\"}]', '', '', '0', '', '2023-06-08 18:05:21', 0, '', 0, '', 0, '2023-06-08 18:05:48', 0, NULL, '2023-06-08 18:05:48', '57', 0);
-INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_title`, `content_short_title`, `content_keyword`, `content_description`, `content_img`, `content_source`, `content_author`, `content_display`, `content_type`, `content_datetime`, `content_sort`, `content_tags`, `content_hit`, `content_out_link`, `has_detail_html`, `update_date`, `has_list_html`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1666748457335279617, 1329316146811314177, '', '分享插件', '', '', '', '[{\"url\":\"blob:http://192.168.0.215:8080/9dd872c3-954e-4e99-b7d8-b88b009f2a17\",\"name\":\"1680171316440.png\",\"path\":\"/upload/1/cms/content/1686218772032.png\",\"uid\":1686218772009,\"status\":\"success\"}]', '', '', '0', '', '2023-06-08 18:05:55', 0, '', 0, '', 0, '2023-06-08 18:06:14', 0, NULL, '2023-06-08 18:06:14', '57', 0);
+INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_title`, `content_short_title`, `content_keyword`, `content_description`, `content_img`, `content_source`, `content_author`, `content_display`, `content_type`, `content_datetime`, `content_sort`, `content_tags`, `content_hit`, `content_out_link`, `has_detail_html`, `update_date`, `has_list_html`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1666748349411643394, 1329316146811314177, '', '自动静态化插件', '', '', '', '[{\"url\":\"/upload/1/cms/content/1686218746865.jpeg\",\"name\":\"1652095443016.jpeg\",\"path\":\"/upload/1/cms/content/1686218746865.jpeg\",\"uid\":1686218746844,\"status\":\"success\"}]', '', '', '0', '', '2023-06-08 18:05:21', 0, '', 0, '', 0, '2023-09-28 16:31:38', 0, '57', '2023-06-08 18:05:48', '57', 0);
+INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_title`, `content_short_title`, `content_keyword`, `content_description`, `content_img`, `content_source`, `content_author`, `content_display`, `content_type`, `content_datetime`, `content_sort`, `content_tags`, `content_hit`, `content_out_link`, `has_detail_html`, `update_date`, `has_list_html`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1666748457335279617, 1329316146811314177, '', '分享插件', '', '', '', '[{\"url\":\"/upload/1/cms/content/1686218772032.png\",\"name\":\"1680171316440.png\",\"path\":\"/upload/1/cms/content/1686218772032.png\",\"uid\":1686218772009,\"status\":\"success\"}]', '', '', '0', '', '2023-06-08 18:05:55', 0, '', 0, '', 0, '2023-09-28 16:31:32', 0, '57', '2023-09-28 16:28:49', '57', 0);
INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_title`, `content_short_title`, `content_keyword`, `content_description`, `content_img`, `content_source`, `content_author`, `content_display`, `content_type`, `content_datetime`, `content_sort`, `content_tags`, `content_hit`, `content_out_link`, `has_detail_html`, `update_date`, `has_list_html`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1674243446207381505, 1666653706550321166, '点击打开
', '信创国产化解决方案', '', '', '', '[{\"url\":\"blob:http://localhost:8080/dfc5bbe5-03fd-4b96-9941-066421106247\",\"name\":\"1609397756549.png .png\",\"path\":\"/upload/1/cms/content/1688005871192.png\",\"uid\":1688005870964,\"status\":\"success\"}]', '', '', '0', '', '2023-06-29 10:27:30', 0, '', 0, 'https://www.mingsoft.net/banben.html', 0, '2023-06-29 10:31:13', 0, '57', '2023-06-29 10:28:38', '57', 0);
INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_title`, `content_short_title`, `content_keyword`, `content_description`, `content_img`, `content_source`, `content_author`, `content_display`, `content_type`, `content_datetime`, `content_sort`, `content_tags`, `content_hit`, `content_out_link`, `has_detail_html`, `update_date`, `has_list_html`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1674243652642635777, 1666653706550321167, '点击打开
', '低代码开发解决方案', '', '', '', '[{\"url\":\"blob:http://localhost:8080/b369fa81-fd5e-41db-9377-b2538b556b03\",\"name\":\"1609397756549.png .png\",\"path\":\"/upload/1/cms/content/1688005911798.png\",\"uid\":1688005911720,\"status\":\"success\"}]', '', '', '0', '', '2023-06-29 10:28:39', 0, '', 0, 'https://www.mingsoft.net/', 0, '2023-06-29 10:31:53', 0, '57', '2023-06-29 10:29:27', '57', 0);
INSERT INTO `cms_content` (`id`, `category_id`, `content_details`, `content_title`, `content_short_title`, `content_keyword`, `content_description`, `content_img`, `content_source`, `content_author`, `content_display`, `content_type`, `content_datetime`, `content_sort`, `content_tags`, `content_hit`, `content_out_link`, `has_detail_html`, `update_date`, `has_list_html`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1674338953676128258, 1666653706550321162, '', '任务大厅', '', '', '', '[{\"url\":\"/upload/1/cms/content/1686278659721.jpg\",\"name\":\"a.png\",\"path\":\"/upload/1/cms/content/1686278659721.jpg\",\"uid\":16098386909801,\"status\":\"success\"}]', 'https://www.mingsoft.net/renwudating.html', '', '0', '', '2023-06-29 16:47:51', 0, '', 0, '', 0, '2023-06-29 17:05:47', 0, '57', '2023-06-29 17:05:47', '57', 0);
@@ -201,12 +201,15 @@ CREATE TABLE `cms_history_log` (
`create_by` varchar(11) DEFAULT NULL COMMENT '创建人',
`del` int(1) DEFAULT '0' COMMENT '删除标记',
PRIMARY KEY (`id`) USING BTREE
-) ENGINE=InnoDB AUTO_INCREMENT=99 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='文章浏览记录';
+) ENGINE=InnoDB AUTO_INCREMENT=102 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='文章浏览记录';
-- ----------------------------
-- Records of cms_history_log
-- ----------------------------
BEGIN;
+INSERT INTO `cms_history_log` (`id`, `content_id`, `people_id`, `hl_ip`, `hl_is_mobile`, `update_date`, `update_by`, `create_date`, `create_by`, `del`) VALUES (99, 1666653707447902208, NULL, '192.168.0.61', '0', NULL, NULL, '2023-09-28 16:32:37', NULL, 0);
+INSERT INTO `cms_history_log` (`id`, `content_id`, `people_id`, `hl_ip`, `hl_is_mobile`, `update_date`, `update_by`, `create_date`, `create_by`, `del`) VALUES (100, 1666653707447902208, NULL, '192.168.0.61', '0', NULL, NULL, '2023-09-28 16:32:42', NULL, 0);
+INSERT INTO `cms_history_log` (`id`, `content_id`, `people_id`, `hl_ip`, `hl_is_mobile`, `update_date`, `update_by`, `create_date`, `create_by`, `del`) VALUES (101, 1666653707447902208, NULL, '192.168.0.61', '0', NULL, NULL, '2023-09-28 16:33:08', NULL, 0);
COMMIT;
-- ----------------------------
@@ -241,9 +244,6 @@ CREATE TABLE `logger` (
-- Records of logger
-- ----------------------------
BEGIN;
-INSERT INTO `logger` (`id`, `log_error_msg`, `log_result`, `log_param`, `log_location`, `log_user`, `log_user_type`, `log_business_type`, `log_status`, `log_url`, `log_request_method`, `log_method`, `log_ip`, `log_title`, `BUSINESS_ID`, `update_date`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1690169027306364929, NULL, '{\"result\":true,\"code\":200}', '{\n \"ids\": \"1719\"\n}', '内网IP', 'msopen', 'manage', 'delete', 'success', '/ms/basic/model/delete.do', 'POST', 'net.mingsoft.basic.action.ModelAction.delete()', '127.0.0.1', '批量删除模块表', NULL, NULL, NULL, '2023-08-12 09:11:13', NULL, 0);
-INSERT INTO `logger` (`id`, `log_error_msg`, `log_result`, `log_param`, `log_location`, `log_user`, `log_user_type`, `log_business_type`, `log_status`, `log_url`, `log_request_method`, `log_method`, `log_ip`, `log_title`, `BUSINESS_ID`, `update_date`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1690169043987111937, NULL, '{\"result\":true,\"code\":200}', '{\n \"modelId\": \"1700\",\n \"menuStr\": \"[{\\\"del\\\":0,\\\"id\\\":\\\"2191\\\",\\\"modelTitle\\\":\\\"自定义字典\\\",\\\"modelDatetime\\\":\\\"2022-01-25 09:56:14\\\",\\\"modelId\\\":1993,\\\"modelUrl\\\":\\\"mdiy/dict/index.do\\\",\\\"modelCode\\\":\\\"15725929177747726\\\",\\\"modelSort\\\":0,\\\"modelIsMenu\\\":1,\\\"chick\\\":0,\\\"depth\\\":1,\\\"modelParentIds\\\":\\\"1993\\\",\\\"modelChildList\\\":[{\\\"del\\\":0,\\\"id\\\":\\\"2192\\\",\\\"modelTitle\\\":\\\"查看\\\",\\\"modelDatetime\\\":\\\"2022-01-25 09:56:14\\\",\\\"modelId\\\":2191,\\\"modelUrl\\\":\\\"mdiy:dict:view\\\",\\\"modelCode\\\":\\\"15725929177745034\\\",\\\"modelSort\\\":0,\\\"modelIsMenu\\\":0,\\\"chick\\\":0,\\\"depth\\\":2,\\\"modelParentIds\\\":\\\"1993,2191\\\"},{\\\"del\\\":0,\\\"id\\\":\\\"2193\\\",\\\"modelTitle\\\":\\\"新增\\\",\\\"modelDatetime\\\":\\\"2022-01-25 09:56:14\\\",\\\"modelId\\\":2191,\\\"modelUrl\\\":\\\"mdiy:dict:save\\\",\\\"modelCode\\\":\\\"15725929177742474\\\",\\\"modelSort\\\":0,\\\"modelIsMenu\\\":0,\\\"chick\\\":0,\\\"depth\\\":2,\\\"modelParentIds\\\":\\\"1993,2191\\\"},{\\\"del\\\":0,\\\"id\\\":\\\"2194\\\",\\\"modelTitle\\\":\\\"修改\\\",\\\"modelDatetime\\\":\\\"2022-01-25 09:56:14\\\",\\\"modelId\\\":2191,\\\"modelUrl\\\":\\\"mdiy:dict:update\\\",\\\"modelCode\\\":\\\"15725929177744138\\\",\\\"modelSort\\\":0,\\\"modelIsMenu\\\":0,\\\"chick\\\":0,\\\"depth\\\":2,\\\"modelParentIds\\\":\\\"1993,2191\\\"},{\\\"del\\\":0,\\\"id\\\":\\\"2195\\\",\\\"modelTitle\\\":\\\"删除\\\",\\\"modelDatetime\\\":\\\"2022-01-25 09:56:14\\\",\\\"modelId\\\":2191,\\\"modelUrl\\\":\\\"mdiy:dict:del\\\",\\\"modelCode\\\":\\\"15725929177748034\\\",\\\"modelSort\\\":0,\\\"modelIsMenu\\\":0,\\\"chick\\\":0,\\\"depth\\\":2,\\\"modelParentIds\\\":\\\"1993,2191\\\"},{\\\"del\\\":0,\\\"id\\\":\\\"2196\\\",\\\"modelTitle\\\":\\\"导入\\\",\\\"modelDatetime\\\":\\\"2022-01-25 09:56:14\\\",\\\"modelId\\\":2191,\\\"modelUrl\\\":\\\"mdiy:dict:importJson\\\",\\\"modelSort\\\":0,\\\"modelIsMenu\\\":0,\\\"chick\\\":0,\\\"depth\\\":2,\\\"modelParentIds\\\":\\\"1993,2191\\\"}]}]\"\n}', '内网IP', 'msopen', 'manage', 'insert', 'success', '/ms/basic/model/import.do', 'POST', 'net.mingsoft.basic.action.ModelAction.importMenu()', '127.0.0.1', '导入菜单', NULL, NULL, NULL, '2023-08-12 09:11:17', NULL, 0);
-INSERT INTO `logger` (`id`, `log_error_msg`, `log_result`, `log_param`, `log_location`, `log_user`, `log_user_type`, `log_business_type`, `log_status`, `log_url`, `log_request_method`, `log_method`, `log_ip`, `log_title`, `BUSINESS_ID`, `update_date`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1690169104095682562, NULL, '{\"result\":true,\"code\":200}', '[\n {\n \"notDel\": 0,\n \"dictValue\": \"politic\",\n \"dictLabel\": \"时政热点\",\n \"dictType\": \"文章标签\",\n \"dictSort\": 0,\n \"dictEnable\": true,\n \"createBy\": \"106\",\n \"createDate\": 1686208393000,\n \"del\": 0,\n \"id\": \"650\"\n }\n]', '内网IP', 'msopen', 'manage', 'insert', 'success', '/ms/mdiy/dict/importJson.do', 'POST', 'net.mingsoft.mdiy.action.DictAction.importJson()', '127.0.0.1', '导入自定义字典', NULL, NULL, NULL, '2023-08-12 09:11:31', NULL, 0);
COMMIT;
-- ----------------------------
@@ -323,7 +323,7 @@ CREATE TABLE `mdiy_dict` (
UNIQUE KEY `inx_unique` (`dict_value`,`dict_label`,`dict_type`) USING BTREE,
KEY `inx_dict_value` (`dict_value`) USING BTREE,
KEY `inx_dict_label` (`dict_label`) USING BTREE
-) ENGINE=InnoDB AUTO_INCREMENT=651 DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='字典表';
+) ENGINE=InnoDB AUTO_INCREMENT=652 DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='字典表';
-- ----------------------------
-- Records of mdiy_dict
@@ -342,7 +342,7 @@ INSERT INTO `mdiy_dict` (`id`, `dict_value`, `dict_label`, `dict_type`, `dict_de
INSERT INTO `mdiy_dict` (`id`, `dict_value`, `dict_label`, `dict_type`, `dict_description`, `is_child`, `dict_enable`, `dict_remarks`, `dict_sort`, `UPDATE_BY`, `UPDATE_DATE`, `CREATE_BY`, `CREATE_DATE`, `DEL`, `NOT_DEL`) VALUES (647, 'gj', '高级', '用户等级类型', NULL, NULL, '1', NULL, 0, NULL, NULL, NULL, NULL, 0, 1);
INSERT INTO `mdiy_dict` (`id`, `dict_value`, `dict_label`, `dict_type`, `dict_description`, `is_child`, `dict_enable`, `dict_remarks`, `dict_sort`, `UPDATE_BY`, `UPDATE_DATE`, `CREATE_BY`, `CREATE_DATE`, `DEL`, `NOT_DEL`) VALUES (648, 'people', '会员', '自定义模型类型', NULL, NULL, '1', NULL, 0, NULL, NULL, NULL, NULL, 0, 1);
INSERT INTO `mdiy_dict` (`id`, `dict_value`, `dict_label`, `dict_type`, `dict_description`, `is_child`, `dict_enable`, `dict_remarks`, `dict_sort`, `UPDATE_BY`, `UPDATE_DATE`, `CREATE_BY`, `CREATE_DATE`, `DEL`, `NOT_DEL`) VALUES (649, 'people', '会员', '自定义页面类型', NULL, NULL, '1', NULL, 0, NULL, NULL, NULL, NULL, 0, 1);
-INSERT INTO `mdiy_dict` (`id`, `dict_value`, `dict_label`, `dict_type`, `dict_description`, `is_child`, `dict_enable`, `dict_remarks`, `dict_sort`, `UPDATE_BY`, `UPDATE_DATE`, `CREATE_BY`, `CREATE_DATE`, `DEL`, `NOT_DEL`) VALUES (650, 'politic', '时政热点', '文章标签', NULL, NULL, '1', NULL, 0, NULL, NULL, '106', '2023-06-08 15:13:13', 0, 0);
+INSERT INTO `mdiy_dict` (`id`, `dict_value`, `dict_label`, `dict_type`, `dict_description`, `is_child`, `dict_enable`, `dict_remarks`, `dict_sort`, `UPDATE_BY`, `UPDATE_DATE`, `CREATE_BY`, `CREATE_DATE`, `DEL`, `NOT_DEL`) VALUES (650, '时政热点', '时政热点', '文章标签', NULL, NULL, '1', NULL, 0, '57', '2023-09-28 16:27:43', '106', '2023-06-08 15:13:13', 0, 0);
COMMIT;
-- ----------------------------
@@ -425,10 +425,10 @@ CREATE TABLE `mdiy_tag` (
-- Records of mdiy_tag
-- ----------------------------
BEGIN;
-INSERT INTO `mdiy_tag` (`id`, `tag_name`, `tag_type`, `tag_sql`, `tag_class`, `tag_description`, `UPDATE_BY`, `UPDATE_DATE`, `CREATE_BY`, `CREATE_DATE`, `DEL`, `NOT_DEL`) VALUES (3, 'arclist', 'list', '<#assign _typeid=\'\'/>\n<#assign _typetitle=\'\'/>\n<#-- 分页数,默认返回20条数据 -->\n<#assign _size=\'20\'/>\n<#if column?? && column.id?? && column.id?number gt 0>\n <#assign _typeid=\'${column.id}\'>\n#if>\n<#if typeid??>\n <#assign _typeid=\'${typeid}\'>\n#if>\n<#if typetitle??>\n <#assign _typetitle=\'${typetitle}\'>\n#if>\n<#if size??>\n <#assign _size=\'${size}\'>\n#if>\n\n<#if orderby?? >\n <#if orderby==\'date\'>\n <#assign _orderby=\'content_datetime\'>\n <#elseif orderby==\'updatedate\'>\n <#assign _orderby=\'cms_content.update_date\'>\n <#elseif orderby==\'hit\'>\n <#assign _orderby=\'content_hit\'>\n <#elseif orderby==\'sort\'>\n <#assign _orderby=\'content_sort\'>\n <#else>\n <#assign _orderby=\'cms_content.content_datetime\'>\n #if>\n<#else>\n <#assign _orderby=\'cms_content.content_datetime\'>\n#if>\n\nSELECT\n cms_content.id AS \"id\",\n content_title AS \"title\",\n content_short_title AS \"shorttitle\",\n content_author AS \"author\",\n content_source AS \"source\",\n content_out_link AS \"outlink\",\n\n category.category_title AS \"typetitle\",\n category.category_short_title AS \"typeshorttitle\",\n category.id AS \"typeid\",\n category.category_path AS \"typepath\",\n category.category_img AS \"typelitpic\",\n category.category_ico AS \"typeico\",\n category.category_keyword as \"typekeyword\",\n category.top_id as \"topid\",\n category.category_id as \"parentid\",\n category.category_parent_ids as \"parentids\",\n category.category_type AS \"type\",\n <#--列表页动态链接-->\n <#if isDo?? && isDo>\n CONCAT(\'${modelName}/list.do?style=${templateName!\"\"}&typeid=\', category.category_id) as \"typelink\",\n <#else>\n <#--栏目类型为链接-->\n <#if shortSwitch?? && shortSwitch>\n CONCAT(category.category_pinyin,\'.html\') AS \"typelink\",\n <#else>\n CONCAT(category.category_path,\'/index.html\') AS \"typelink\",\n #if>\n #if>\n content_description AS \"descrip\",\n content_hit AS \"hit\",\n content_type AS \"flag\",\n cms_content.content_keyword AS \"keyword\",\n content_img AS \"litpic\",\n <#--内容页动态链接-->\n <#if isDo?? && isDo>\n CONCAT(\'${modelName}/view.do?style=${templateName!\"\"}&id=\', cms_content.id) as \"link\",\n <#else>\n <#if shortSwitch?? && shortSwitch>\n CONCAT(cms_content.id,\'.html\') AS \"link\",\n <#else>\n CONCAT(CONCAT( category.category_path, \'/\' ), CONCAT(CASE category_type WHEN \'2\' THEN \'index\' ELSE cms_content.id END , \'.html\' )) as \"link\",\n #if>\n #if>\n <#if tableName??>${tableName}.*,#if>\n content_datetime AS \"date\"\nFROM\n cms_content\nLEFT JOIN\n cms_category as category\nON cms_content.category_id = category.id\n<#--判断是否有自定义模型表-->\n<#if tableName??>\n LEFT JOIN ${tableName} ON ${tableName}.link_id=cms_content.id\n#if>\nWHERE\n content_display=0\n and category_display=\'enable\'\n and cms_content.del=0\n\n<#--文章审核-->\n<#if contentApprove?? && contentApprove>\n and cms_content.progress_status=\'终审通过\'\n#if>\n<#--根据站点编号查询-->\n<#if appId?? >\n and cms_content.app_id=${appId}\n and cms_content.id>0\n#if>\n<#--判断是否有搜索分类集合,暂时移除 _typeid=\"\" 条件-->\n<#if search??>\n and category_is_search=\'enable\'\n <#-- 文章标签 -->\n <#if search.content_tag??>and FIND_IN_SET(\'${search.content_tag}\',content_tags) > 0#if>\n <#if search.categoryIds?has_content>and FIND_IN_SET(category.id,\'${search.categoryIds}\') > 0#if>\n <#--标题-->\n <#if search.content_title??> and content_title like CONCAT(CONCAT(\'%\',\'${search.content_title}\'),\'%\')#if>\n <#--作者-->\n <#if search.content_author??> and content_author like CONCAT(CONCAT(\'%\',\'${search.content_author}\'),\'%\')#if>\n <#--来源-->\n <#if search.content_source??> and content_source like CONCAT(CONCAT(\'%\',\'${search.content_source}\'),\'%\')#if>\n <#--属性-->\n <#if search.content_type??>\n and(<#list search.content_type?split(\',\') as item>\n <#if item?index gt 0> or#if>\n FIND_IN_SET(\'${item}\',cms_content.content_type) > 0\n #list>)\n #if>\n <#--描述-->\n <#if search.content_description??>\n and content_description like CONCAT(CONCAT(\'%\',\'${search.content_description}\'),\'%\')\n #if>\n <#--关键字-->\n <#if search.content_keyword??> and content_keyword like CONCAT(CONCAT(\'%\',\'${search.content_keyword}\'),\'%\')#if>\n <#--内容-->\n <#if search.content_details??> and content_details like CONCAT(CONCAT(\'%\',\'${search.content_details}\'),\'%\')#if>\n <#--自定义顺序-->\n <#if search.content_sort??> and content_sort=${search.content_sort}#if>\n <#--时间范围-->\n <#if search.content_datetime_start??&&search.content_datetime_end??>\n and content_datetime between \'${search.content_datetime_start}\' and \'${search.content_datetime_end}\'\n #if>\n<#else>\n <#--查询栏目-->\n <#if _typeid?has_content && _typeid?string != \'0\'>\n and (cms_content.category_id=${_typeid}\n or cms_content.category_id in (select id FROM cms_category where cms_category.del=0\n <#if _typetitle?has_content>\n and cms_category.category_title=\'${_typetitle}\'\n #if>\n and FIND_IN_SET(${_typeid},CATEGORY_PARENT_IDS) > 0))\n <#elseif typeids?has_content>\n and (\n <#list typeids?split(\",\") as item>\n <#if item.index > 1>\n or\n #if>\n (cms_content.category_id=${item}\n or FIND_IN_SET(\'${item}\', cms_content.category_ids) > 0\n or cms_content.category_id in (select id FROM cms_category where cms_category.del=0\n <#if _typetitle?has_content>\n and cms_category.category_title=\'${_typetitle}\'\n #if>\n and FIND_IN_SET(${item},CATEGORY_PARENT_IDS) > 0)\n )\n #list>\n )\n #if>\n#if>\n<#--判断搜索分类结束-->\n<#--标题-->\n<#if content_title??> and content_title like CONCAT(CONCAT(\'%\',\'${content_title}\'),\'%\')#if>\n<#--作者-->\n<#if content_author??> and content_author like CONCAT(CONCAT(\'%\',\'${content_author}\'),\'%\')#if>\n<#--来源-->\n<#if content_source??> and content_source like CONCAT(CONCAT(\'%\',\'${content_source}\'),\'%\')#if>\n<#--属性-->\n<#if content_type??> and content_type like CONCAT(CONCAT(\'%\',\'${content_type}\'),\'%\')#if>\n<#--描述-->\n<#if content_description??> and content_description like CONCAT(CONCAT(\'%\',\'${content_description}\'),\'%\')#if>\n<#--关键字-->\n<#if content_keyword??> and content_keyword like CONCAT(CONCAT(\'%\',\'${content_keyword}\'),\'%\')#if>\n<#--内容-->\n<#if content_details??> and content_details like CONCAT(CONCAT(\'%\',\'${content_details}\'),\'%\')#if>\n<#--自定义顺序-->\n<#if content_sort??> and content_sort=${content_sort}#if>\n<#--自定义模型-->\n<#if diyModel??>\n <#list diyModel as dm>\n <#assign json=\"${dm}\"?eval />\n and ${tableName}.${json.key} like CONCAT(CONCAT(\'%\',\'${json.value}\'),\'%\')\n #list>\n#if>\n<#--文章属性-->\n<#if flag?? >\n and(<#list flag?split(\',\') as item>\n <#if item?index gt 0> or#if>\n FIND_IN_SET(\'${item}\',cms_content.content_type) > 0\n #list>)\n#if>\n<#if noflag??>\n and(<#list noflag?split(\',\') as item>\n <#if item?index gt 0> and#if>\n FIND_IN_SET(\'${item}\',cms_content.content_type)=0\n #list> or cms_content.content_type is null)\n#if>\n\n <#--字段排序-->\n ORDER BY\n <#if topflag??>\n CASE\n <#list topflag?split(\",\") as item>\n WHEN FIND_IN_SET(\'${item}\',cms_content.content_type)>0 THEN\n ${item?index}\n #list>\n ELSE 100\n END,\n #if>\n ${_orderby}\n <#if order?? >\n <#if order==\'desc\'> desc#if>\n <#if order==\'asc\'> asc#if>\n <#else>\n desc\n #if>\n LIMIT\n <#--判断是否分页-->\n <#if ispaging?? && (pageTag.pageNo)??>\n ${((pageTag.pageNo-1)*_size?eval)?c},${_size?default(20)}\n <#else>\n ${_size?default(20)}\n #if>\n', NULL, '文章列表', NULL, NULL, NULL, NULL, 0, 1);
+INSERT INTO `mdiy_tag` (`id`, `tag_name`, `tag_type`, `tag_sql`, `tag_class`, `tag_description`, `UPDATE_BY`, `UPDATE_DATE`, `CREATE_BY`, `CREATE_DATE`, `DEL`, `NOT_DEL`) VALUES (3, 'arclist', 'list', '<#assign _typeid=\'\'/>\r\n<#assign _typetitle=\'\'/>\r\n<#-- 分页数,默认返回20条数据 -->\r\n<#assign _size=\'20\'/>\r\n<#if column?? && column.id?? && column.id?number gt 0>\r\n <#assign _typeid=\'${column.id}\'>\r\n#if>\r\n<#if typeid??>\r\n <#assign _typeid=\'${typeid}\'>\r\n#if>\r\n<#if typetitle??>\r\n <#assign _typetitle=\'${typetitle}\'>\r\n#if>\r\n<#if size??>\r\n <#assign _size=\'${size}\'>\r\n#if>\r\n\r\n<#if orderby?? >\r\n <#if orderby==\'date\'>\r\n <#assign _orderby=\'content_datetime\'>\r\n <#elseif orderby==\'updatedate\'>\r\n <#assign _orderby=\'cms_content.update_date\'>\r\n <#elseif orderby==\'hit\'>\r\n <#assign _orderby=\'content_hit\'>\r\n <#elseif orderby==\'sort\'>\r\n <#assign _orderby=\'content_sort\'>\r\n <#else>\r\n <#assign _orderby=\'cms_content.content_datetime\'>\r\n #if>\r\n<#else>\r\n <#assign _orderby=\'cms_content.content_datetime\'>\r\n#if>\r\n\r\nSELECT\r\n cms_content.id AS \"id\",\r\n content_title AS \"title\",\r\n content_short_title AS \"shorttitle\",\r\n content_author AS \"author\",\r\n content_source AS \"source\",\r\n content_out_link AS \"outlink\",\r\n content_tags AS \"tags\",\r\n\r\n category.category_title AS \"typetitle\",\r\n category.category_short_title AS \"typeshorttitle\",\r\n category.id AS \"typeid\",\r\n category.category_path AS \"typepath\",\r\n category.category_img AS \"typelitpic\",\r\n category.category_ico AS \"typeico\",\r\n category.category_keyword as \"typekeyword\",\r\n category.top_id as \"topid\",\r\n category.category_id as \"parentid\",\r\n category.category_parent_ids as \"parentids\",\r\n category.category_type AS \"type\",\r\n <#--列表页动态链接-->\r\n <#if isDo?? && isDo>\r\n CONCAT(\'${modelName}/list.do?style=${templateName!\"\"}&typeid=\', category.category_id) as \"typelink\",\r\n <#else>\r\n <#--栏目类型为链接-->\r\n <#if shortSwitch?? && shortSwitch>\r\n CONCAT(category.category_pinyin,\'.html\') AS \"typelink\",\r\n <#else>\r\n CONCAT(category.category_path,\'/index.html\') AS \"typelink\",\r\n #if>\r\n #if>\r\n content_description AS \"descrip\",\r\n content_hit AS \"hit\",\r\n content_type AS \"flag\",\r\n cms_content.content_keyword AS \"keyword\",\r\n content_img AS \"litpic\",\r\n <#--内容页动态链接-->\r\n <#if isDo?? && isDo>\r\n CONCAT(\'${modelName}/view.do?style=${templateName!\"\"}&id=\', cms_content.id) as \"link\",\r\n <#else>\r\n <#if shortSwitch?? && shortSwitch>\r\n CONCAT(cms_content.id,\'.html\') AS \"link\",\r\n <#else>\r\n CONCAT(CONCAT( category.category_path, \'/\' ), CONCAT(CASE category_type WHEN \'2\' THEN \'index\' ELSE cms_content.id END , \'.html\' )) as \"link\",\r\n #if>\r\n #if>\r\n <#if tableName??>${tableName}.*,#if>\r\n content_datetime AS \"date\"\r\nFROM\r\n cms_content\r\nLEFT JOIN\r\n cms_category as category\r\nON cms_content.category_id = category.id\r\n<#--判断是否有自定义模型表-->\r\n<#if tableName??>\r\n LEFT JOIN ${tableName} ON ${tableName}.link_id=cms_content.id\r\n#if>\r\nWHERE\r\n content_display=0\r\n and category_display=\'enable\'\r\n and cms_content.del=0\r\n\r\n<#--文章审核-->\r\n<#if contentApprove?? && contentApprove>\r\n and cms_content.progress_status=\'终审通过\'\r\n#if>\r\n<#--根据站点编号查询-->\r\n<#if appId?? >\r\n and cms_content.app_id=${appId}\r\n and cms_content.id>0\r\n#if>\r\n<#--判断是否有搜索分类集合,暂时移除 _typeid=\"\" 条件-->\r\n<#if search??>\r\n and category_is_search=\'enable\'\r\n <#-- 文章标签 -->\r\n <#if search.content_tag??>and FIND_IN_SET(\'${search.content_tag}\',content_tags) > 0#if>\r\n <#if search.categoryIds?has_content>\r\n and (\r\n <#list search.categoryIds?split(\",\") as item>\r\n <#if item?index gt 0>\r\n or\r\n #if>\r\n (cms_content.category_id=${item}\r\n or cms_content.category_id in (select id FROM cms_category where cms_category.del=0\r\n <#if _typetitle?has_content>\r\n and cms_category.category_title=\'${_typetitle}\'\r\n #if>\r\n and FIND_IN_SET(${item},CATEGORY_PARENT_IDS) > 0)\r\n )\r\n #list>\r\n )\r\n #if>\r\n <#--标题-->\r\n <#if search.content_title??> and content_title like CONCAT(CONCAT(\'%\',\'${search.content_title}\'),\'%\')#if>\r\n <#--作者-->\r\n <#if search.content_author??> and content_author like CONCAT(CONCAT(\'%\',\'${search.content_author}\'),\'%\')#if>\r\n <#--来源-->\r\n <#if search.content_source??> and content_source like CONCAT(CONCAT(\'%\',\'${search.content_source}\'),\'%\')#if>\r\n <#--属性-->\r\n <#if search.content_type??>\r\n and(<#list search.content_type?split(\',\') as item>\r\n <#if item?index gt 0> or#if>\r\n FIND_IN_SET(\'${item}\',cms_content.content_type) > 0\r\n #list>)\r\n #if>\r\n <#--描述-->\r\n <#if search.content_description??>\r\n and content_description like CONCAT(CONCAT(\'%\',\'${search.content_description}\'),\'%\')\r\n #if>\r\n <#--关键字-->\r\n <#if search.content_keyword??> and content_keyword like CONCAT(CONCAT(\'%\',\'${search.content_keyword}\'),\'%\')#if>\r\n <#--内容-->\r\n <#if search.content_details??> and content_details like CONCAT(CONCAT(\'%\',\'${search.content_details}\'),\'%\')#if>\r\n <#--自定义顺序-->\r\n <#if search.content_sort??> and content_sort=${search.content_sort}#if>\r\n <#--时间范围-->\r\n <#if search.content_datetime_start??&&search.content_datetime_end??>\r\n and content_datetime between \'${search.content_datetime_start}\' and \'${search.content_datetime_end}\'\r\n #if>\r\n<#else>\r\n <#--查询栏目-->\r\n <#if _typeid?has_content && _typeid?string != \'0\'>\r\n and (cms_content.category_id=${_typeid}\r\n or cms_content.category_id in (select id FROM cms_category where cms_category.del=0\r\n <#if _typetitle?has_content>\r\n and cms_category.category_title=\'${_typetitle}\'\r\n #if>\r\n and FIND_IN_SET(${_typeid},CATEGORY_PARENT_IDS) > 0))\r\n <#elseif typeids?has_content>\r\n and (\r\n <#list typeids?split(\",\") as item>\r\n <#if item?index gt 0>\r\n or\r\n #if>\r\n (cms_content.category_id=${item}\r\n or cms_content.category_id in (select id FROM cms_category where cms_category.del=0\r\n <#if _typetitle?has_content>\r\n and cms_category.category_title=\'${_typetitle}\'\r\n #if>\r\n and FIND_IN_SET(${item},CATEGORY_PARENT_IDS) > 0)\r\n )\r\n #list>\r\n )\r\n #if>\r\n#if>\r\n<#--判断搜索分类结束-->\r\n<#--标题-->\r\n<#if content_title??> and content_title like CONCAT(CONCAT(\'%\',\'${content_title}\'),\'%\')#if>\r\n<#--作者-->\r\n<#if content_author??> and content_author like CONCAT(CONCAT(\'%\',\'${content_author}\'),\'%\')#if>\r\n<#--来源-->\r\n<#if content_source??> and content_source like CONCAT(CONCAT(\'%\',\'${content_source}\'),\'%\')#if>\r\n<#--属性-->\r\n<#if content_type??> and content_type like CONCAT(CONCAT(\'%\',\'${content_type}\'),\'%\')#if>\r\n<#--描述-->\r\n<#if content_description??> and content_description like CONCAT(CONCAT(\'%\',\'${content_description}\'),\'%\')#if>\r\n<#--关键字-->\r\n<#if content_keyword??> and content_keyword like CONCAT(CONCAT(\'%\',\'${content_keyword}\'),\'%\')#if>\r\n<#--内容-->\r\n<#if content_details??> and content_details like CONCAT(CONCAT(\'%\',\'${content_details}\'),\'%\')#if>\r\n<#--自定义顺序-->\r\n<#if content_sort??> and content_sort=${content_sort}#if>\r\n<#--自定义模型-->\r\n<#if diyModel??>\r\n <#list diyModel as dm>\r\n <#assign json=\"${dm}\"?eval />\r\n and ${tableName}.${json.key} like CONCAT(CONCAT(\'%\',\'${json.value}\'),\'%\')\r\n #list>\r\n#if>\r\n<#--文章属性-->\r\n<#if flag?? >\r\n and(<#list flag?split(\',\') as item>\r\n <#if item?index gt 0> or#if>\r\n FIND_IN_SET(\'${item}\',cms_content.content_type) > 0\r\n #list>)\r\n#if>\r\n<#if noflag??>\r\n and(<#list noflag?split(\',\') as item>\r\n <#if item?index gt 0> and#if>\r\n FIND_IN_SET(\'${item}\',cms_content.content_type)=0\r\n #list> or cms_content.content_type is null)\r\n#if>\r\n\r\n <#--字段排序-->\r\n ORDER BY\r\n <#if topflag??>\r\n CASE\r\n <#list topflag?split(\",\") as item>\r\n WHEN FIND_IN_SET(\'${item}\',cms_content.content_type)>0 THEN\r\n ${item?index}\r\n #list>\r\n ELSE 100\r\n END,\r\n #if>\r\n ${_orderby}\r\n <#if order?? >\r\n <#if order==\'desc\'> desc#if>\r\n <#if order==\'asc\'> asc#if>\r\n <#else>\r\n desc\r\n #if>\r\n LIMIT\r\n <#--判断是否分页-->\r\n <#if ispaging?? && (pageTag.pageNo)??>\r\n ${((pageTag.pageNo-1)*_size?eval)?c},${_size?default(20)}\r\n <#else>\r\n ${_size?default(20)}\r\n #if>\r\n', NULL, '文章列表', NULL, NULL, NULL, NULL, 0, 1);
INSERT INTO `mdiy_tag` (`id`, `tag_name`, `tag_type`, `tag_sql`, `tag_class`, `tag_description`, `UPDATE_BY`, `UPDATE_DATE`, `CREATE_BY`, `CREATE_DATE`, `DEL`, `NOT_DEL`) VALUES (4, 'channel', 'list', '<#assign _typeid=\'0\'/>\n<#assign _size=\'9999\'/>\n<#if column?? && column.id?? && column.id?number gt 0>\n <#assign _typeid=\'${column.id}\'>\n <#assign selfid=\'${column.id}\'>\n#if>\n\n<#if typeid??>\n <#assign _typeid=\'${typeid}\'>\n#if>\n<#if size??>\n <#assign _size=\'${size}\'>\n#if>\n\nselect\n cms_category.id as \"id\",\n cms_category.id as \"typeid\",\n cms_category.category_title as \"typetitle\",\n cms_category.category_short_title as \"typeshorttitle\",\n <#--动态链接-->\n <#if isDo?? && isDo>\n IF(cms_category.category_type=2,CONCAT(\'${modelName}/view.do?style=${templateName!\"\"}&typeid=\', cms_category.id),CONCAT(\'${modelName}/list.do?style=${templateName!\"\"}&typeid=\', cms_category.id)) as \"typelink\",\n <#else>\n <#--栏目类型为链接-->\n <#if shortSwitch?? && shortSwitch>\n CONCAT(cms_category.category_pinyin,\'.html\') AS \"typelink\",\n <#else>\n CONCAT(cms_category.category_path,\'/index.html\') as \"typelink\",\n #if>\n #if>\n cms_category.category_keyword as \"typekeyword\",\n cms_category.category_diy_url as \"typeurl\",\n cms_category.category_flag as \"flag\",\n cms_category.category_id as \"parentid\",\n cms_category.category_parent_ids as \"parentids\",\n cms_category.category_descrip as \"typedescrip\",\n cms_category.category_type as \"type\",\n cms_category.category_path as \"typepath\",\n cms_category.leaf as \"typeleaf\",\n cms_category.category_img as \"typelitpic\" ,\n cms_category.category_ico as \"typeico\" ,\n <#if tableName??>${tableName}.*,#if>\n ( SELECT count(*) FROM cms_category cc WHERE cc.category_id = cms_category.id AND cc.del = 0 ) AS \"childsize\"\nfrom\n cms_category\n <#--判断是否有自定义模型表-->\n <#if tableName??>LEFT JOIN ${tableName} ON ${tableName}.link_id=cms_category.id#if>\nwhere\n cms_category.del=0\n and cms_category.category_display = \'enable\'\n <#--自定义模型-->\n <#if diyModel??>\n <#list diyModel as dm>\n <#assign json=\"${dm}\"?eval />\n and ${tableName}.${json.key} like CONCAT(\'%\',\'${json.value}\',\'%\')\n #list>\n #if>\n <#--根据站点编号查询-->\n <#if appId?? >\n and cms_category.app_id=${appId}\n #if>\n\n <#--栏目属性-->\n <#if flag?? >\n and\n (<#list flag?split(\',\') as item>\n <#if item?index gt 0> or#if>\n FIND_IN_SET(\'${item}\',cms_category.category_flag)\n #list>)\n #if>\n\n <#if noflag?? >\n and\n (<#list noflag?split(\',\') as item>\n <#if item?index gt 0> and#if>\n FIND_IN_SET(\'${item}\',cms_category.category_flag)=0\n #list> or cms_category.category_flag is null)\n #if>\n\n <#--type默认son-->\n <#if !type??||!type?has_content>\n <#assign type=\'son\'/>\n #if>\n\n <#if type?has_content>\n <#--顶级栏目(单个)-->\n <#if type==\'top\'>\n <#if _typeid != \'0\'>\n and (cms_category.id = cms_category.top_id or cms_category.top_id = 0)\n #if>\n\n <#elseif type==\'nav\'>\n and(cms_category.category_id=0 or cms_category.category_id is null)\n\n <#--同级栏目(多个)-->\n <#elseif type==\'level\'>\n <#if _typeid != \'0\'>\n and cms_category.category_id=(select category_id from cms_category where id=${_typeid})\n #if>\n\n <#--当前栏目(单个)-->\n <#elseif type==\'self\'>\n <#if _typeid != \'0\'>\n and cms_category.id=${_typeid}\n #if>\n\n <#--当前栏目的所属栏目(多个)-->\n <#elseif type==\'path\'>\n <#if _typeid != \'0\'>\n and cms_category.id in\n (<#if column?? && column.categoryParentIds??>${column.categoryParentIds},#if>${_typeid})\n #if>\n\n <#--子栏目(多个)-->\n <#elseif type==\'son\'>\n <#if _typeid != \'0\'>\n and cms_category.category_id=${_typeid}\n #if>\n\n <#--上一级栏目没有则取当前栏目(单个)-->\n <#elseif type==\'parent\'>\n <#if _typeid != \'0\'>\n and\n <#if column?? && column.categoryId??>\n cms_category.id=${column.categoryId}\n <#else>\n cms_category.id=${_typeid}\n #if>\n #if>\n #if>\n\n <#else> <#--默认顶级栏目-->\n and\n <#if _typeid != \'0\'>\n cms_category.id=${_typeid}\n <#else>\n (cms_category.category_id=0 or cms_category.category_id is null)\n #if>\n #if>\n\n <#--字段排序-->\n <#if type == \'path\'>\n ORDER BY cms_category.category_path asc\n <#else>\n <#if orderby?? >\n ORDER BY\n <#if orderby==\'date\'> cms_category.create_date\n <#elseif orderby==\'sort\'> cms_category.category_sort\n <#else>cms_category.id\n #if>\n #if>\n\n <#if order?? >\n <#if order==\'desc\'> desc#if>\n <#if order==\'asc\'> asc#if>\n #if>\n #if>\n LIMIT\n ${_size?default(9999)}', NULL, '通用栏目', NULL, NULL, NULL, NULL, 0, 1);
INSERT INTO `mdiy_tag` (`id`, `tag_name`, `tag_type`, `tag_sql`, `tag_class`, `tag_description`, `UPDATE_BY`, `UPDATE_DATE`, `CREATE_BY`, `CREATE_DATE`, `DEL`, `NOT_DEL`) VALUES (5, 'global', 'single', 'select\n APP_NAME as \"name\",\n app_logo as \"logo\",\n app_keyword as \"keyword\",\n app_description as \"descrip\",\n app_copyright as \"copyright\",\n \'${contextPath}\' as \"contextpath\",\n <#--动态解析 -->\n <#if isDo?? && isDo>\n \'${url}\' as \"url\",\n \'${url}\' as \"host\",\n \'/\' as \"html\",\n <#--使用地址栏的域名 -->\n <#else>\n <#if shortSwitch?? && shortSwitch>\n CONCAT(\'${url}\',\'${appDir}<#if appDir?has_content>/#if>\') as \"url\",\n \'<#if appDir?has_content>/#if>${appDir}/\' as \"html\",\n <#else>\n CONCAT(CONCAT(\'${url}\',\'${html}\'),\'<#if appDir?has_content>/${appDir}#if>\') as \"url\",\n CONCAT(CONCAT(\'/${html}\',\'<#if appDir?has_content>/${appDir}#if>\'),\'/\') as \"html\",\n #if>\n \'${url}\' as \"host\",\n #if>\n CONCAT(CONCAT(CONCAT(CONCAT(\'template/\',id),\'/\'),app_style),\'/\') as \"style\"\nfrom app\n <#--根据站点编号查询-->\n <#if appId?? >\n where id = ${appId}\n #if>', NULL, '全局', NULL, NULL, NULL, NULL, 0, 1);
-INSERT INTO `mdiy_tag` (`id`, `tag_name`, `tag_type`, `tag_sql`, `tag_class`, `tag_description`, `UPDATE_BY`, `UPDATE_DATE`, `CREATE_BY`, `CREATE_DATE`, `DEL`, `NOT_DEL`) VALUES (7, 'field', 'single', 'SELECT\n cms_content.id as \"id\",\n <#--这里会存在id覆盖的情况,所以需要在cms_content.id下面-->\n <#if tableName??>${tableName}.*,#if>\n <#--查询站点编号-->\n <#if appId??>\n cms_content.app_id as \"appId\",\n #if>\n content_title as \"title\",\n content_short_title AS \"shorttitle\",\n content_author as \"author\",\n content_source as \"source\",\n content_details as \"content\",\n content_datetime as \"date\",\n content_description as \"descrip\",\n content_keyword as \"keyword\",\n <#if contextPath?? && contextPath != \"/\">\n CONCAT(CONCAT( \'\') as \"hit\",\n <#else>\n CONCAT(CONCAT( \'\') as \"hit\",\n #if>\n content_type as \"flag\",\n category_title as \"typetitle\",\n cms_content.content_img as \"litpic\",\n <#--内容页动态链接-->\n <#if isDo?? && isDo>\n CONCAT(\'/mcms/view.do?id=\', cms_content.id) as \"link\",\n <#else>\n <#if shortSwitch?? && shortSwitch>\n CONCAT(cms_content.id, \'.html\' ) as \"link\",\n <#else>\n CONCAT(CONCAT( cms_category.category_path, \'/\' ), CONCAT(cms_content.id, \'.html\' )) as \"link\",\n #if>\n #if>\n cms_category.id as \"typeid\",\n cms_category.leaf as \"typeleaf\",\n cms_category.category_title as \"typetitle\",\n cms_category.category_short_title AS \"typeshorttitle\",\n cms_category.category_img as \"typelitpic\",\n cms_category.category_ico as \"typeico\",\n cms_category.category_path as \"typepath\",\n cms_category.top_id as \"topid\",\n cms_category.category_flag as \"typeflag\",\n cms_category.category_id as \"parentid\",\n cms_category.category_parent_ids as \"parentids\",\n cms_category.category_keyword as \"typekeyword\",\n cms_category.category_descrip as \"typedescrip\",\n <#--动态链接-->\n <#if isDo?? && isDo>\n CONCAT(\'/${modelName}/list.do?typeid=\', cms_category.id) as \"typelink\"\n <#else>\n <#if shortSwitch?? && shortSwitch>\n CONCAT(category_pinyin,\'.html\') AS \"typelink\"\n <#else>\n CONCAT(category_path,\'/index.html\') AS \"typelink\"\n #if>\n #if>\n\nFROM cms_content\n LEFT JOIN cms_category ON\n cms_category.id = cms_content.category_id\n <#--判断是否有自定义模型表-->\n <#if tableName??>left join ${tableName} on ${tableName}.link_id=cms_content.id#if>\nWHERE\n <#--如果是栏目列表页没有文章id所以只取栏目id-->\n <#if column??&&column.id??&&!id??>\n cms_category.id=${column.id} and\n #if>\n <#--根据站点编号查询-->\n <#if appId??>\n cms_content.app_id = ${appId} and\n #if>\n cms_content.del=0\n <#if id??> and cms_content.id=${id}#if>\n', NULL, '文章内容', NULL, NULL, NULL, NULL, 0, 1);
+INSERT INTO `mdiy_tag` (`id`, `tag_name`, `tag_type`, `tag_sql`, `tag_class`, `tag_description`, `UPDATE_BY`, `UPDATE_DATE`, `CREATE_BY`, `CREATE_DATE`, `DEL`, `NOT_DEL`) VALUES (7, 'field', 'single', 'SELECT\r\n cms_content.id as \"id\",\r\n <#--这里会存在id覆盖的情况,所以需要在cms_content.id下面-->\r\n <#if tableName??>${tableName}.*,#if>\r\n <#--查询站点编号-->\r\n <#if appId??>\r\n cms_content.app_id as \"appId\",\r\n #if>\r\n content_title as \"title\",\r\n content_short_title AS \"shorttitle\",\r\n content_author as \"author\",\r\n content_source as \"source\",\r\n content_out_link as \"outlink\",\r\n content_details as \"content\",\r\n content_datetime as \"date\",\r\n content_description as \"descrip\",\r\n content_keyword as \"keyword\",\r\n <#if contextPath?? && contextPath != \"/\">\r\n CONCAT(CONCAT( \'\') as \"hit\",\r\n <#else>\r\n CONCAT(CONCAT( \'\') as \"hit\",\r\n #if>\r\n content_type as \"flag\",\r\n content_tags as \"tags\",\r\n category_title as \"typetitle\",\r\n cms_content.content_img as \"litpic\",\r\n <#--内容页动态链接-->\r\n <#if isDo?? && isDo>\r\n CONCAT(\'/mcms/view.do?id=\', cms_content.id) as \"link\",\r\n <#else>\r\n <#if shortSwitch?? && shortSwitch>\r\n CONCAT(cms_content.id, \'.html\' ) as \"link\",\r\n <#else>\r\n CONCAT(CONCAT( cms_category.category_path, \'/\' ), CONCAT(cms_content.id, \'.html\' )) as \"link\",\r\n #if>\r\n #if>\r\n cms_category.id as \"typeid\",\r\n cms_category.leaf as \"typeleaf\",\r\n cms_category.category_title as \"typetitle\",\r\n cms_category.category_short_title AS \"typeshorttitle\",\r\n cms_category.category_img as \"typelitpic\",\r\n cms_category.category_ico as \"typeico\",\r\n cms_category.category_path as \"typepath\",\r\n cms_category.top_id as \"topid\",\r\n cms_category.category_flag as \"typeflag\",\r\n cms_category.category_id as \"parentid\",\r\n cms_category.category_parent_ids as \"parentids\",\r\n cms_category.category_keyword as \"typekeyword\",\r\n cms_category.category_descrip as \"typedescrip\",\r\n <#--动态链接-->\r\n <#if isDo?? && isDo>\r\n CONCAT(\'/${modelName}/list.do?typeid=\', cms_category.id) as \"typelink\"\r\n <#else>\r\n <#if shortSwitch?? && shortSwitch>\r\n CONCAT(category_pinyin,\'.html\') AS \"typelink\"\r\n <#else>\r\n CONCAT(category_path,\'/index.html\') AS \"typelink\"\r\n #if>\r\n #if>\r\n\r\nFROM cms_content\r\n LEFT JOIN cms_category ON\r\n cms_category.id = cms_content.category_id\r\n <#--判断是否有自定义模型表-->\r\n <#if tableName??>left join ${tableName} on ${tableName}.link_id=cms_content.id#if>\r\nWHERE\r\n <#--如果是栏目列表页没有文章id所以只取栏目id-->\r\n <#if column??&&column.id??&&!id??>\r\n cms_category.id=${column.id} and\r\n #if>\r\n <#--根据站点编号查询-->\r\n <#if appId??>\r\n cms_content.app_id = ${appId} and\r\n #if>\r\n cms_content.del=0\r\n <#if id??> and cms_content.id=${id}#if>\r\n', NULL, '文章内容', NULL, NULL, NULL, NULL, 0, 1);
INSERT INTO `mdiy_tag` (`id`, `tag_name`, `tag_type`, `tag_sql`, `tag_class`, `tag_description`, `UPDATE_BY`, `UPDATE_DATE`, `CREATE_BY`, `CREATE_DATE`, `DEL`, `NOT_DEL`) VALUES (8, 'pre', 'single', '<#assign select=\"\'\'\"/>\n<#if orderby?? >\n <#if orderby==\"date\">\n <#assign _orderby=\"content_datetime\">\n <#elseif orderby==\"updatedate\">\n <#assign _orderby=\"cms_content.update_date\">\n <#elseif orderby==\"hit\">\n <#assign _orderby=\"content_hit\">\n <#elseif orderby==\"sort\">\n <#assign _orderby=\"content_sort\">\n <#else><#assign _orderby=\"cms_content.id\">#if>\n<#else>\n <#assign _orderby=\"cms_content.id\">\n#if>\n<#--上一页-->\n<#if pageTag.preId??>\n SELECT\n cms_content.id as \"id\",\n content_title as \"title\",\n content_author as \"author\",\n content_source as \"source\",\n content_details as \"content\",\n category.category_title as \"typename\",\n category.category_id as \"typeid\",\n <#if isDo?? && isDo>\n CONCAT(\'/${modelName}/list.do?typeid=\', cms_category.id) as \"typelink\",\n <#else>\n <#if shortSwitch?? && shortSwitch>\n CONCAT(category.category_pinyin,\'.html\') AS \"typelink\",\n <#else>\n CONCAT(category.category_path,\'/index.html\') AS \"typelink\",\n #if>\n #if>\n content_img as \"litpic\",\n <#--内容页动态链接-->\n <#if isDo?? && isDo>\n CONCAT(\'${modelName}/view.do?id=\', cms_content.id,\'&orderby=${_orderby}\',\'&order=${order!\'ASC\'}\',\'&typeid=${typeid}\') as \"link\",\n <#else>\n <#if shortSwitch?? && shortSwitch>\n CONCAT(cms_content.id,\'.html\') AS \"link\",\n <#else>\n CONCAT(CONCAT(category_path,\'/\'),CONCAT(cms_content.id,\'.html\')) AS \"link\",\n #if>\n #if>\n content_description as \"descrip\",\n content_hit as \"hit\",\n content_type as \"flag\",\n content_keyword as \"keyword\"\n FROM cms_content\n LEFT JOIN cms_category category ON cms_content.category_id=category.id\n WHERE cms_content.id=${pageTag.preId}\n<#else>\n SELECT\n ${select} as \"id\",\n \'没有了\' as \"title\",\n ${select} as \"author\",\n ${select} as \"source\",\n ${select} as \"content\",\n ${select} as \"typename\",\n ${select} as \"typeid\",\n ${select} as \"typelink\",\n ${select} as \"litpic\",\n ${select} as \"typelink\",\n ${select} as \"date\",\n ${select} as \"descrip\",\n ${select} as \"hit\",\n ${select} as \"flag\",\n ${select} as \"keyword\"\n FROM dual\n#if>\n', NULL, '文章上一篇', NULL, NULL, NULL, NULL, 0, 1);
INSERT INTO `mdiy_tag` (`id`, `tag_name`, `tag_type`, `tag_sql`, `tag_class`, `tag_description`, `UPDATE_BY`, `UPDATE_DATE`, `CREATE_BY`, `CREATE_DATE`, `DEL`, `NOT_DEL`) VALUES (9, 'page', 'single', '<#if pageTag??>\nselect\n <#--是否开启短链接-->\n <#if shortSwitch?? && shortSwitch>\n \'${shortSwitch?string(\'true\',\'false\')}\' as \"shortSwitch\",\n #if>\n <#if !(pageTag.indexUrl??)>\n <#--判断是否有栏目对象,用于搜索不传栏目-->\n <#if column??>\n <#if shortSwitch?? && shortSwitch>\n <#assign path=column.categoryPinyin/>\n <#else>\n <#assign path=column.categoryPath/>\n #if>\n <#else>\n <#assign path=\'\' />\n #if>\n <#--总记录数、总页数-->\n \'${pageTag.total}\' as \"total\",\n \'${pageTag.size}\' as \"size\",\n\n <#--记录总数-->\n \'${pageTag.rcount}\' as \"rcount\",\n <#--当前页码-->\n \'${pageTag.pageNo}\' as \"cur\",\n <#--首页-->\n <#if shortSwitch?? && shortSwitch>\n CONCAT(\'${path}\', \'.html\') as \"index\",\n <#else>\n CONCAT(\'${path}\', \'/index.html\') as \"index\",\n #if>\n <#--上一页-->\n <#if (pageTag.pageNo?eval-1) gt 1>\n <#if shortSwitch?? && shortSwitch>\n CONCAT(\'${path}\',\'-${pageTag.pageNo?eval-1}.html\') as \"pre\",\n <#else>\n CONCAT(\'${path}\',\'/list-${pageTag.pageNo?eval-1}.html\') as \"pre\",\n #if>\n <#else>\n <#if shortSwitch?? && shortSwitch>\n CONCAT(\'${path}\',\'.html\') as \"pre\",\n <#else>\n CONCAT(\'${path}\',\'/index.html\') as \"pre\",\n #if>\n #if>\n <#--下一页-->\n <#if pageTag.total lte 1>\n <#if shortSwitch?? && shortSwitch>\n CONCAT(\'${path}\', \'.html\') as \"next\",\n CONCAT(\'${path}\', \'.html\') as \"last\"\n <#else>\n CONCAT(\'${path}\', \'/index.html\') as \"next\",\n CONCAT(\'${path}\', \'/index.html\') as \"last\"\n #if>\n <#else>\n <#if pageTag.pageNo?eval gte pageTag.total>\n <#if shortSwitch?? && shortSwitch>\n CONCAT(\'${path}\',\'-${pageTag.total}.html\') as \"next\",\n <#else>\n CONCAT(\'${path}\',\'/list-${pageTag.total}.html\') as \"next\",\n #if>\n <#else>\n <#if shortSwitch?? && shortSwitch>\n CONCAT(\'${path}\',\'-${pageTag.pageNo?eval+1}.html\') as \"next\",\n <#else>\n CONCAT(\'${path}\',\'/list-${pageTag.pageNo?eval+1}.html\') as \"next\",\n #if>\n #if>\n <#--最后一页-->\n <#if shortSwitch?? && shortSwitch>\n CONCAT(\'${path}\',\'-${pageTag.total}.html\') as \"last\"\n <#else>\n CONCAT(\'${path}\',\'/list-${pageTag.total}.html\') as \"last\"\n #if>\n #if>\n <#else>\n <#--判断是否是搜索页面-->\n \'${pageTag.indexUrl}\' as \"index\",\n \'${pageTag.lastUrl}\' as \"last\",\n \'${pageTag.preUrl}\' as \"pre\",\n \'${pageTag.nextUrl}\' as \"next\",\n \'${pageTag.total}\' as \"total\",\n \'${pageTag.size}\' as \"size\",\n \'${pageTag.rcount}\' as \"rcount\",\n \'${pageTag.pageNo}\' as \"cur\"\n #if>\n from dual\n#if>', NULL, '通用分页', NULL, NULL, NULL, NULL, 0, 1);
INSERT INTO `mdiy_tag` (`id`, `tag_name`, `tag_type`, `tag_sql`, `tag_class`, `tag_description`, `UPDATE_BY`, `UPDATE_DATE`, `CREATE_BY`, `CREATE_DATE`, `DEL`, `NOT_DEL`) VALUES (10, 'next', 'single', '<#assign select=\"\'\'\"/>\n<#if orderby?? >\n <#if orderby==\"date\">\n <#assign _orderby=\"content_datetime\">\n <#elseif orderby==\"updatedate\">\n <#assign _orderby=\"cms_content.update_date\">\n <#elseif orderby==\"hit\">\n <#assign _orderby=\"content_hit\">\n <#elseif orderby==\"sort\">\n <#assign _orderby=\"content_sort\">\n <#else>\n <#assign _orderby=\"cms_content.id\">#if>\n <#else>\n <#assign _orderby=\"cms_content.id\">\n #if>\n<#--开始-->\n<#if pageTag.nextId??>\n SELECT\n cms_content.id as \"id\",\n content_title as \"title\",\n content_author as \"author\",\n content_source as \"source\",\n content_details as \"content\",\n category.category_title as \"typename\",\n category.category_id as \"typeid\",\n <#if isDo?? && isDo>\n CONCAT(\'/${modelName}/list.do?typeid=\', cms_category.id) as \"typelink\",\n <#else>\n <#if shortSwitch?? && shortSwitch>\n CONCAT(category.category_pinyin,\'.html\') AS \"typelink\",\n <#else>\n CONCAT(category.category_path,\'/index.html\') AS \"typelink\",\n #if>\n #if>\n content_img as \"litpic\",\n <#--内容页动态链接-->\n <#if isDo?? && isDo>\n CONCAT(\'${modelName}/view.do?id=\', cms_content.id,\'&orderby=${_orderby}\',\'&order=${order!\'ASC\'}\',\'&typeid=${typeid}\') as \"link\",\n <#else>\n <#if shortSwitch?? && shortSwitch>\n CONCAT(cms_content.id,\'.html\') AS \"link\",\n <#else>\n CONCAT(CONCAT(category_path,\'/\'),CONCAT(cms_content.id,\'.html\')) AS \"link\",\n #if>\n #if>\n content_description as \"descrip\",\n content_hit as \"hit\",\n content_type as \"flag\",\n content_keyword as \"keyword\"\n FROM cms_content\n LEFT JOIN cms_category category ON cms_content.category_id=category.id\n WHERE cms_content.id=${pageTag.nextId}\n<#else>\n SELECT\n ${select} as \"id\",\n \'没有了\' as \"title\",\n ${select} as \"author\",\n ${select} as \"source\",\n ${select} as \"content\",\n ${select} as \"typename\",\n ${select} as \"typeid\",\n ${select} as \"typelink\",\n ${select} as \"litpic\",\n ${select} as \"link\",\n ${select} as \"date\",\n ${select} as \"descrip\",\n ${select} as \"hit\",\n ${select} as \"flag\",\n ${select} as \"keyword\"\n FROM dual\n#if>\n', NULL, '文章下一篇', NULL, NULL, NULL, NULL, 0, 1);