From 0cdb315acacdc0bbf981c448fc9554bbc1b9b172 Mon Sep 17 00:00:00 2001 From: wujj <1027418825@qq.com> Date: Thu, 9 Jan 2020 16:53:46 +0800 Subject: [PATCH] 5.0sql --- doc/db-mcms-5.0.sql | 61 +++++++++++++++++++-------------------------- 1 file changed, 25 insertions(+), 36 deletions(-) diff --git a/doc/db-mcms-5.0.sql b/doc/db-mcms-5.0.sql index 5650339a..2d9f2a2d 100644 --- a/doc/db-mcms-5.0.sql +++ b/doc/db-mcms-5.0.sql @@ -1,7 +1,7 @@ /* - Navicat Premium Data Transfer + Navicat MySQL Data Transfer - Source Server : 线上数据库 + Source Server : imingsoft.cn Source Server Type : MySQL Source Server Version : 50725 Source Host : imingsoft.cn:3307 @@ -11,7 +11,7 @@ Target Server Version : 50725 File Encoding : 65001 - Date: 07/01/2020 18:38:10 + Date: 09/01/2020 16:50:35 */ SET NAMES utf8mb4; @@ -78,7 +78,7 @@ CREATE TABLE `cms_category` ( `create_date` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `create_by` int(11) NULL DEFAULT NULL COMMENT '创建人', PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 165 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '分类' ROW_FORMAT = Dynamic; +) ENGINE = InnoDB AUTO_INCREMENT = 151 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '分类' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of cms_category @@ -124,7 +124,7 @@ INSERT INTO `cms_category` VALUES (136, '52', '/52/136', NULL, 0, 1, 50, '2016-0 INSERT INTO `cms_category` VALUES (138, '63', '/63/138', NULL, 0, 1, 50, '2016-04-29 17:15:49', '0', NULL, NULL, '我们为您提供网站策划、网页设计、程序开发、网站推广、域名注册、虚拟主机、企业邮箱等网站建设相关服务;为您提供iOS/Android/Windows Phone等移动平台的APP应用开发;为您提供办公系统、客户关系管理系统、电子政务系统等行业应用系统的开发;为您提供软件定制开发和系统集成服务。', '', 'service.htm', 'service.htm', 0, '2', '63', '服务中心', 0, NULL, NULL, NULL, NULL); INSERT INTO `cms_category` VALUES (141, '19', '/19/141', NULL, 0, 1, 50, '2016-05-04 14:42:07', '0', NULL, NULL, '', '', 'contact.htm', 'contact.htm', 2, '2', '19', '联系我们', 0, NULL, NULL, NULL, NULL); INSERT INTO `cms_category` VALUES (142, '19', '/19/142', NULL, 0, 1, 50, '2016-05-04 14:42:31', '0', NULL, NULL, '', '', 'advice.htm', NULL, 1, '2', '19', '在线留言', 0, NULL, NULL, NULL, NULL); -INSERT INTO `cms_category` VALUES (146, NULL, '/146', NULL, 0, 1, 50, '2016-05-19 17:49:37', '0', NULL, NULL, '', '', 'advertises.htm', 'about.htm', 0, '2', '0', '人才招聘', 0, NULL, NULL, NULL, NULL); +INSERT INTO `cms_category` VALUES (146, NULL, '/146', '', 0, 1, 50, '2016-05-19 17:49:37', '0', NULL, '[]', '', '', 'about.htm', 'about.htm', 0, '2', '', '人才招聘', 0, '2020-01-09 11:21:38', NULL, NULL, NULL); INSERT INTO `cms_category` VALUES (147, '100', '/100/147', NULL, 0, 1, 50, '2016-06-02 17:23:49', '0', NULL, NULL, '', '', 'index.html', 'index.html', 0, '1', '100', '长图', 0, NULL, NULL, NULL, NULL); INSERT INTO `cms_category` VALUES (148, '100', '/100/148', NULL, 0, 1, 50, '2016-06-02 17:24:21', '0', NULL, NULL, '', '', 'index.html', 'index.html', 0, '1', '100', '短图', 0, NULL, NULL, NULL, NULL); INSERT INTO `cms_category` VALUES (149, NULL, '/149', NULL, 0, 1, 50, '2018-07-09 11:07:41', NULL, NULL, '[]', '', '', 'case-list.htm', 'case-list.htm', 1, '1', '', '网站案例', 0, '2019-12-28 17:49:38', NULL, NULL, NULL); @@ -156,7 +156,7 @@ CREATE TABLE `cms_content` ( `create_date` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `create_by` int(11) NULL DEFAULT NULL COMMENT '创建人', PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 228 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '文章' ROW_FORMAT = Dynamic; +) ENGINE = InnoDB AUTO_INCREMENT = 223 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '文章' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of cms_content @@ -297,7 +297,7 @@ CREATE TABLE `manager` ( PRIMARY KEY (`manager_id`) USING BTREE, INDEX `fk_manager_role_1`(`manager_roleid`) USING BTREE, CONSTRAINT `manager_ibfk_1` FOREIGN KEY (`manager_roleid`) REFERENCES `role` (`role_id`) ON DELETE SET NULL ON UPDATE NO ACTION -) ENGINE = InnoDB AUTO_INCREMENT = 62 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '管理员表' ROW_FORMAT = Dynamic; +) ENGINE = InnoDB AUTO_INCREMENT = 59 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '管理员表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of manager @@ -329,7 +329,7 @@ CREATE TABLE `mdiy_dict` ( INDEX `dict_value`(`dict_value`) USING BTREE, INDEX `dict_label`(`dict_label`) USING BTREE, CONSTRAINT `mdiy_dict_ibfk_1` FOREIGN KEY (`app_id`) REFERENCES `app` (`app_id`) ON DELETE CASCADE ON UPDATE NO ACTION -) ENGINE = InnoDB AUTO_INCREMENT = 643 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '字典表' ROW_FORMAT = Dynamic; +) ENGINE = InnoDB AUTO_INCREMENT = 645 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '字典表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of mdiy_dict @@ -344,6 +344,7 @@ INSERT INTO `mdiy_dict` VALUES (639, 1, '0', '单条记录标签', '标签类型 INSERT INTO `mdiy_dict` VALUES (640, 1, '1', '多记录标签', '标签类型', NULL, '0', 0, NULL, NULL, 0, NULL, 0, NULL, 3); INSERT INTO `mdiy_dict` VALUES (641, 1, '2', '功能标签', '标签类型', NULL, '0', 0, NULL, NULL, 0, NULL, 0, NULL, 3); INSERT INTO `mdiy_dict` VALUES (642, 1, 'cms', '文章', '自定义页面类型', NULL, NULL, 0, '0', NULL, 0, '2019-12-28 14:32:46', 0, NULL, 0); +INSERT INTO `mdiy_dict` VALUES (643, 1, 't', '推荐', '栏目属性', NULL, NULL, 0, '0', NULL, 0, '2020-01-09 10:38:26', 0, NULL, 0); -- ---------------------------- -- Table structure for mdiy_form @@ -361,7 +362,7 @@ CREATE TABLE `mdiy_form` ( PRIMARY KEY (`form_id`) USING BTREE, INDEX `fk_mdiy_form`(`form_app_id`) USING BTREE, CONSTRAINT `mdiy_form_ibfk_1` FOREIGN KEY (`form_app_id`) REFERENCES `app` (`app_id`) ON DELETE CASCADE ON UPDATE NO ACTION -) ENGINE = InnoDB AUTO_INCREMENT = 38 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '自定义表单表' ROW_FORMAT = Dynamic; +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '自定义表单表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for mdiy_model @@ -411,7 +412,7 @@ CREATE TABLE `mdiy_page` ( INDEX `index_page_app_id`(`page_app_id`) USING BTREE, INDEX `index_page_model_id`(`page_model_id`) USING BTREE, CONSTRAINT `mdiy_page_ibfk_1` FOREIGN KEY (`page_app_id`) REFERENCES `app` (`app_id`) ON DELETE CASCADE ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '自定义页面表' ROW_FORMAT = Compact; +) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '自定义页面表' ROW_FORMAT = Compact; -- ---------------------------- -- Records of mdiy_page @@ -419,7 +420,7 @@ CREATE TABLE `mdiy_page` ( INSERT INTO `mdiy_page` VALUES (1, 1, 0, 'people/register.htm', '注册', NULL, 'register', NULL, NULL, NULL, NULL, 0); INSERT INTO `mdiy_page` VALUES (2, 1, 0, 'people/login.htm', '登入', NULL, 'login', NULL, NULL, NULL, NULL, 0); INSERT INTO `mdiy_page` VALUES (3, 1, 0, 'people/center.htm', '个人中心', NULL, 'people/center', NULL, NULL, NULL, NULL, 0); -INSERT INTO `mdiy_page` VALUES (4, 1, 0, 'people/passworld-change.htm', '修改密码', NULL, 'people/password-change', NULL, NULL, NULL, NULL, 0); +INSERT INTO `mdiy_page` VALUES (4, 1, 0, 'people/passworld-change.htm', '修改密码', 'cms', 'people/password-change', NULL, NULL, NULL, '2020-01-09 14:46:52', 0); -- ---------------------------- -- Table structure for mdiy_post_feedback @@ -431,7 +432,7 @@ CREATE TABLE `mdiy_post_feedback` ( `words` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '留言', `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '意见反馈' ROW_FORMAT = Dynamic; +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '意见反馈' ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for mdiy_tag @@ -473,8 +474,8 @@ CREATE TABLE `mdiy_tag_sql` ( -- ---------------------------- -- Records of mdiy_tag_sql -- ---------------------------- -INSERT INTO `mdiy_tag_sql` VALUES (5, 3, '<#assign _typeid=\"\"/>\r\n<#assign _size=\"20\"/>\r\n<#if column?? && column.id?? && column.id?number gt 0>\r\n <#assign _typeid=\"${column.id}\">\r\n\r\n<#if typeid??>\r\n <#assign _typeid=\"${typeid}\">\r\n\r\n<#if size??>\r\n <#assign _size=\"${size}\">\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=\"content_updatetime\">\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><#assign _orderby=\"cms_content.id\">\r\n <#else>\r\n <#assign _orderby=\"cms_content.id\">\r\n \r\nSELECT\r\n cms_content.id AS id,\r\n @rownum := @rownum + 1 AS `index`,\r\n LEFT (content_title, ${titlelen ?default(40)}) AS title,\r\n content_title AS fulltitle,\r\n content_author AS author,\r\n content_source AS source,\r\n content_details AS content,\r\n category.category_title AS typename,\r\n category.category_id AS typeid,\r\n category.category_img AS typelitpic,\r\n <#--列表页动态链接-->\r\n <#if isDo?? && isDo>\r\n CONCAT(\"/${modelName}/list.do?typeid=\", category.category_id) as typelink,\r\n <#else>\r\n (SELECT \"index.html\") AS typelink,\r\n \r\n ( CASE content_img WHEN \'\' THEN content_img ELSE CONVERT ( JSON_UNQUOTE( JSON_EXTRACT( content_img -> \'$[0]\', \'$.path\' ) ) USING utf8 ) END ) AS litpic,\r\n <#--内容页动态链接-->\r\n <#if isDo?? && isDo>\r\n CONCAT(\"/${modelName}/view.do?id=\", cms_content.id,\"&orderby=${_orderby}\",\"&order=${order!\'ASC\'}\") as link,\r\n <#else>\r\n\r\n CONCAT(category.category_path,\"/\",cms_content.id,\".html\") AS link,\r\n \r\n content_datetime AS date,<#if tableName??>${tableName}.*,\r\n content_description AS descrip,\r\n content_hit AS hit,\r\n content_type AS flag,\r\n category_title AS typetitle,\r\n cms_content.content_keyword AS keyword \r\nFROM\r\n (SELECT @rownum := 0) r,\r\n cms_content\r\n LEFT JOIN cms_category as category ON content_category_id = category.id\r\n <#--判断是否有自定义模型表-->\r\n <#if tableName??>LEFT JOIN ${tableName} ON ${tableName}.link_id=cms_content.id \r\nWHERE \r\n content_display=0 \r\n <#--根据站点编号查询-->\r\n <#if appId?? >\r\n and cms_content.app_id=${appId}\r\n and cms_content.id>0\r\n \r\n <#--判断是否有搜索分类集合-->\r\n <#if search??>\r\n <#if search.categoryIds??>and FIND_IN_SET(category.id,\'${search.categoryIds}\')\r\n <#--标题-->\r\n <#if search.content_title??> and content_title like CONCAT(\"%\",\'${search.content_title}\',\"%\")\r\n <#--作者-->\r\n <#if search.content_author??> and content_author like CONCAT(\"%\",\'${search.content_author}\',\"%\")\r\n <#--来源-->\r\n <#if search.content_source??> and content_source like CONCAT(\"%\",\'${search.content_source}\',\"%\")\r\n <#--属性-->\r\n <#if search.content_type??> and content_type like CONCAT(\"%\",\'${search.content_type}\',\"%\")\r\n <#--图片-->\r\n <#if search.content_img??> and content_img like CONCAT(\"%\",\'${search.content_img}\',\"%\")\r\n <#--描述-->\r\n <#if search.content_description??> and content_description like CONCAT(\"%\",\'${search.content_description}\',\"%\")\r\n <#--关键字-->\r\n <#if search.content_keyword??> and content_keyword like CONCAT(\"%\",\'${search.content_keyword}\',\"%\")\r\n <#--内容-->\r\n <#if search.content_details??> and content_details like CONCAT(\"%\",\'${search.content_details}\',\"%\")\r\n <#--自定义顺序-->\r\n <#if search.content_sort??> and content_sort=${search.content_sort}\r\n <#else><#--查询栏目-->\r\n <#if _typeid?has_content> and (content_category_id=${_typeid} or content_category_id in \r\n (select id FROM cms_category where cms_category.del=0 and find_in_set(${_typeid},CATEGORY_PARENT_ID))) \r\n \r\n <#--标题-->\r\n <#if content_title??> and content_title like CONCAT(\"%\",\'${content_title}\',\"%\")\r\n <#--作者-->\r\n <#if content_author??> and content_author like CONCAT(\"%\",\'${content_author}\',\"%\")\r\n <#--来源-->\r\n <#if content_source??> and content_source like CONCAT(\"%\",\'${content_source}\',\"%\")\r\n <#--属性-->\r\n <#if content_type??> and content_type like CONCAT(\"%\",\'${content_type}\',\"%\")\r\n <#--图片-->\r\n <#if content_img??> and content_img like CONCAT(\"%\",\'${content_img}\',\"%\")\r\n <#--描述-->\r\n <#if content_description??> and content_description like CONCAT(\"%\",\'${content_description}\',\"%\")\r\n <#--关键字-->\r\n <#if content_keyword??> and content_keyword like CONCAT(\"%\",\'${content_keyword}\',\"%\")\r\n <#--内容-->\r\n <#if content_details??> and content_details like CONCAT(\"%\",\'${content_details}\',\"%\")\r\n <#--自定义顺序-->\r\n <#if content_sort??> and content_sort=${content_sort}\r\n <#--自定义模型-->\r\n <#if diyModel??> \r\n <#list diyModel as dm>\r\n and ${tableName}.${dm.key} = \"${dm.value}\" \r\n \r\n \r\n <#--文章属性-->\r\n <#if flag?? >\r\n and cms_content.content_type like CONCAT(\'%\',\'${flag}\',\'%\') \r\n \r\n <#if noflag?? >\r\n and cms_content.content_type not like CONCAT(\'%\',\'${noflag}\',\'%\') \r\n \r\n <#--字段排序-->\r\n <#if orderby?? >\r\n ORDER BY \r\n <#if orderby==\"date\"> content_datetime\r\n <#elseif orderby==\"updatedate\"> content_updatetime\r\n <#elseif orderby==\"hit\"> content_hit\r\n <#elseif orderby==\"sort\"> content_sort\r\n <#else>cms_content.id\r\n <#else>\r\n ORDER BY cms_content.id\r\n \r\n <#if order?? >\r\n <#if order==\"desc\"> desc\r\n <#if order==\"asc\"> asc\r\n \r\n LIMIT \r\n <#--判断是否分页-->\r\n <#if ispaging?? && (pageTag.pageNo)??>${((pageTag.pageNo-1)*_size?eval)?c},${_size?default(20)}\r\n <#else>${_size?default(20)}', 1); -INSERT INTO `mdiy_tag_sql` VALUES (6, 4, '<#assign _typeid=\"\"/>\r\n<#if column?? && column.id?? && column.id?number gt 0>\r\n <#assign _typeid=\"${column.id}\">\r\n\r\n<#if typeid??>\r\n <#assign _typeid=\"${typeid}\">\r\n\r\nselect \r\n @rownum := @rownum + 1 AS typeindex,\r\n id,\r\n id as typeid,\r\n category_title as typetitle,\r\n <#--返回父id集合-->\r\n category_parent_id as pids,\r\n <#--栏目选中的样式-->\r\n IF(<#if _typeid?has_content>${_typeid}<#else>0 = id ,\"${class!\'\'}\",\"\") as class,\r\n <#--动态链接-->\r\n <#if isDo?? && isDo>\r\n CONCAT(\"/${modelName}/list.do?typeid=\", id) as typelink,\r\n <#else>\r\n CONCAT(category_path,\"/index.html\") as typelink,\r\n \r\n category_keyword as typekeyword,\r\n category_diy_url as typeurl,\r\n category_flag as flag,\r\n category_descrip as typedescrip,\r\n category_img as typelitpic \r\n(select count(*) from cms_category c where c.category_id=typeid and c.del=0) as childsize,\r\n from (SELECT @rownum := 0) r,cms_category \r\n where \r\n cms_category.del=0 \r\n <#--根据站点编号查询-->\r\n <#if appId?? >\r\n and cms_category.app_id=${appId}\r\n \r\n <#--栏目属性-->\r\n <#if flag?? >\r\n and category_flag like CONCAT(\'%\',\'${flag}\',\'%\') \r\n \r\n <#if noflag?? >\r\n and category_flag not like CONCAT(\'%\',\'${noflag}\',\'%\') \r\n \r\n<#if type?has_content>\r\n <#--顶级栏目(单个)-->\r\n <#if type==\"top\">\r\n and id=(select left(category_parent_id,LOCATE(\",\",category_parent_id)-1) from cms_category where category_id = ${_typeid})\r\n <#elseif type==\"nav\">\r\n and(category_id=0 or category_id is null)\r\n <#--同级栏目(多个)-->\r\n <#elseif type==\"level\">\r\n and\r\n <#if _typeid?has_content>\r\n category_id=(select category_id from cms_category where id=${_typeid})\r\n <#else>\r\n 1=1\r\n \r\n <#--当前栏目(单个)-->\r\n <#elseif type==\"self\">\r\n and \r\n <#if _typeid?has_content>\r\n id=${_typeid}\r\n <#else>\r\n 1=1\r\n \r\n <#--当前栏目的所属栏目(多个)-->\r\n <#elseif type==\"path\">\r\n and \r\n <#if _typeid?has_content>\r\n id in (<#if column?? && column.categoryParentId??>${column.categoryParentId},${_typeid})\r\n <#else>\r\n 1=1\r\n \r\n <#--子栏目(多个)-->\r\n <#elseif type==\"son\">\r\n and \r\n <#if _typeid?has_content>\r\n category_id=${_typeid}\r\n <#else>\r\n 1=1\r\n \r\n <#--上一级栏目没有则取当前栏目(单个)-->\r\n <#elseif type==\"parent\">\r\n and \r\n <#if _typeid?has_content>\r\n <#if column?? && column.categoryId??>\r\n id=${column.categoryId}\r\n <#else>\r\n id=${_typeid}\r\n \r\n <#else>\r\n 1=1\r\n \r\n <#--子栏目或同级栏目(多个)-->\r\n <#elseif type==\"sonOrLevel\">\r\n and \r\n <#if _typeid?has_content>\r\n category_id= if((SELECT count(*) FROM cms_category\r\n WHERE id=${_typeid})>0,${_typeid},(select id from cms_category where id=${_typeid}))\r\n <#else>\r\n 1=1\r\n \r\n \r\n<#else> <#--默认son-->\r\n and\r\n <#if _typeid?has_content>\r\n category_id=${_typeid}\r\n <#else>\r\n (category_id=0 or category_id is null)\r\n \r\n\r\n<#--字段排序-->\r\n <#if orderby?? >\r\n ORDER BY \r\n <#if orderby==\"date\"> category_datetime\r\n <#elseif orderby==\"sort\"> category_sort\r\n <#else>cms_content.id\r\n <#else>\r\n ORDER BY id\r\n \r\n <#if order?? >\r\n <#if order==\"desc\"> desc\r\n <#if order==\"asc\"> asc\r\n ', 1); +INSERT INTO `mdiy_tag_sql` VALUES (5, 3, '<#assign _typeid=\"\"/>\r\n<#assign _size=\"20\"/>\r\n<#if column?? && column.id?? && column.id?number gt 0>\r\n <#assign _typeid=\"${column.id}\">\r\n\r\n<#if typeid??>\r\n <#assign _typeid=\"${typeid}\">\r\n\r\n<#if size??>\r\n <#assign _size=\"${size}\">\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=\"content_updatetime\">\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><#assign _orderby=\"cms_content.id\">\r\n <#else>\r\n <#assign _orderby=\"cms_content.id\">\r\n \r\nSELECT\r\n cms_content.id AS id,\r\n @rownum := @rownum + 1 AS `index`,\r\n LEFT (content_title, ${titlelen ?default(40)}) AS title,\r\n content_title AS fulltitle,\r\n content_author AS author,\r\n content_source AS source,\r\n content_details AS content,\r\n category.category_title AS typename,\r\n category.category_id AS typeid,\r\n ( CASE category.category_img WHEN \'\' THEN category.category_img ELSE CONVERT ( JSON_UNQUOTE( JSON_EXTRACT( category.category_img -> \'$[0]\', \'$.path\' ) ) USING utf8 ) END ) AS typelitpic,\r\n <#--列表页动态链接-->\r\n <#if isDo?? && isDo>\r\n CONCAT(\"/${modelName}/list.do?typeid=\", category.category_id) as typelink,\r\n <#else>\r\n (SELECT \"index.html\") AS typelink,\r\n \r\n ( CASE content_img WHEN \'\' THEN content_img ELSE CONVERT ( JSON_UNQUOTE( JSON_EXTRACT( content_img -> \'$[0]\', \'$.path\' ) ) USING utf8 ) END ) AS litpic,\r\n <#--内容页动态链接-->\r\n <#if isDo?? && isDo>\r\n CONCAT(\"/${modelName}/view.do?id=\", cms_content.id,\"&orderby=${_orderby}\",\"&order=${order!\'ASC\'}\") as link,\r\n <#else>\r\n\r\n CONCAT(category.category_path,\"/\",cms_content.id,\".html\") AS link,\r\n \r\n content_datetime AS date,<#if tableName??>${tableName}.*,\r\n content_description AS descrip,\r\n content_hit AS hit,\r\n content_type AS flag,\r\n category_title AS typetitle,\r\n cms_content.content_keyword AS keyword \r\nFROM\r\n (SELECT @rownum := 0) r,\r\n cms_content\r\n LEFT JOIN cms_category as category ON content_category_id = category.id\r\n <#--判断是否有自定义模型表-->\r\n <#if tableName??>LEFT JOIN ${tableName} ON ${tableName}.link_id=cms_content.id \r\nWHERE \r\n content_display=0 \r\n <#--根据站点编号查询-->\r\n <#if appId?? >\r\n and cms_content.app_id=${appId}\r\n and cms_content.id>0\r\n \r\n <#--判断是否有搜索分类集合-->\r\n <#if search??>\r\n <#if search.categoryIds??>and FIND_IN_SET(category.id,\'${search.categoryIds}\')\r\n <#--标题-->\r\n <#if search.content_title??> and content_title like CONCAT(\"%\",\'${search.content_title}\',\"%\")\r\n <#--作者-->\r\n <#if search.content_author??> and content_author like CONCAT(\"%\",\'${search.content_author}\',\"%\")\r\n <#--来源-->\r\n <#if search.content_source??> and content_source like CONCAT(\"%\",\'${search.content_source}\',\"%\")\r\n <#--属性-->\r\n <#if search.content_type??> and content_type like CONCAT(\"%\",\'${search.content_type}\',\"%\")\r\n <#--描述-->\r\n <#if search.content_description??> and content_description like CONCAT(\"%\",\'${search.content_description}\',\"%\")\r\n <#--关键字-->\r\n <#if search.content_keyword??> and content_keyword like CONCAT(\"%\",\'${search.content_keyword}\',\"%\")\r\n <#--内容-->\r\n <#if search.content_details??> and content_details like CONCAT(\"%\",\'${search.content_details}\',\"%\")\r\n <#--自定义顺序-->\r\n <#if search.content_sort??> and content_sort=${search.content_sort}\r\n <#else><#--查询栏目-->\r\n <#if _typeid?has_content> and (content_category_id=${_typeid} or content_category_id in \r\n (select id FROM cms_category where cms_category.del=0 and find_in_set(${_typeid},CATEGORY_PARENT_ID))) \r\n \r\n <#--标题-->\r\n <#if content_title??> and content_title like CONCAT(\"%\",\'${content_title}\',\"%\")\r\n <#--作者-->\r\n <#if content_author??> and content_author like CONCAT(\"%\",\'${content_author}\',\"%\")\r\n <#--来源-->\r\n <#if content_source??> and content_source like CONCAT(\"%\",\'${content_source}\',\"%\")\r\n <#--属性-->\r\n <#if content_type??> and content_type like CONCAT(\"%\",\'${content_type}\',\"%\")\r\n <#--描述-->\r\n <#if content_description??> and content_description like CONCAT(\"%\",\'${content_description}\',\"%\")\r\n <#--关键字-->\r\n <#if content_keyword??> and content_keyword like CONCAT(\"%\",\'${content_keyword}\',\"%\")\r\n <#--内容-->\r\n <#if content_details??> and content_details like CONCAT(\"%\",\'${content_details}\',\"%\")\r\n <#--自定义顺序-->\r\n <#if content_sort??> and content_sort=${content_sort}\r\n <#--自定义模型-->\r\n <#if diyModel??> \r\n <#list diyModel as dm>\r\n and ${tableName}.${dm.key} like CONCAT(\"%\",\'${dm.value}\',\"%\") \r\n \r\n \r\n <#--文章属性-->\r\n <#if flag?? >\r\n and cms_content.content_type like CONCAT(\'%\',\'${flag}\',\'%\') \r\n \r\n <#if noflag?? >\r\n and cms_content.content_type not like CONCAT(\'%\',\'${noflag}\',\'%\') \r\n \r\n <#--字段排序-->\r\n <#if orderby?? >\r\n ORDER BY \r\n <#if orderby==\"date\"> content_datetime\r\n <#elseif orderby==\"updatedate\"> content_updatetime\r\n <#elseif orderby==\"hit\"> content_hit\r\n <#elseif orderby==\"sort\"> content_sort\r\n <#else>cms_content.id\r\n <#else>\r\n ORDER BY cms_content.id\r\n \r\n <#if order?? >\r\n <#if order==\"desc\"> desc\r\n <#if order==\"asc\"> asc\r\n \r\n LIMIT \r\n <#--判断是否分页-->\r\n <#if ispaging?? && (pageTag.pageNo)??>${((pageTag.pageNo-1)*_size?eval)?c},${_size?default(20)}\r\n <#else>${_size?default(20)}', 1); +INSERT INTO `mdiy_tag_sql` VALUES (6, 4, '<#assign _typeid=\"\"/>\r\n<#if column?? && column.id?? && column.id?number gt 0>\r\n <#assign _typeid=\"${column.id}\">\r\n <#assign selfid=\"${column.id}\">\r\n\r\n<#if typeid??>\r\n <#assign _typeid=\"${typeid}\">\r\n\r\nselect \r\n @rownum := @rownum + 1 AS typeindex,\r\n id,\r\n id as typeid,\r\n category_title as typetitle,\r\n <#--返回父id集合-->\r\n category_parent_id as pids,\r\n <#--栏目选中的样式-->\r\n IF(<#if selfid?has_content>${selfid}<#else>${_typeid} = id ,\"${class!\'\'}\",\"\") as class,\r\n <#--动态链接-->\r\n <#if isDo?? && isDo>\r\n CONCAT(\"/${modelName}/list.do?typeid=\", id) as typelink,\r\n <#else>\r\n CONCAT(category_path,\"/index.html\") as typelink,\r\n \r\n category_keyword as typekeyword,\r\n category_diy_url as typeurl,\r\n category_flag as flag,\r\n category_descrip as typedescrip,\r\n ( CASE category_img WHEN \'\' THEN category_img ELSE CONVERT ( JSON_UNQUOTE( JSON_EXTRACT( category_img -> \'$[0]\', \'$.path\' ) ) USING utf8 ) END ) as typelitpic ,\r\n(select count(*) from cms_category c where c.category_id=typeid and c.del=0) as childsize\r\n from (SELECT @rownum := 0) r,cms_category \r\n where \r\n cms_category.del=0 \r\n <#--根据站点编号查询-->\r\n <#if appId?? >\r\n and cms_category.app_id=${appId}\r\n \r\n <#--栏目属性-->\r\n <#if flag?? >\r\n and category_flag like CONCAT(\'%\',\'${flag}\',\'%\') \r\n \r\n <#if noflag?? >\r\n and category_flag not like CONCAT(\'%\',\'${noflag}\',\'%\') \r\n \r\n<#if type?has_content>\r\n <#--顶级栏目(单个)-->\r\n <#if type==\"top\">\r\n and id=(select left(category_parent_id,LOCATE(\",\",category_parent_id)-1) from cms_category where category_id = ${_typeid})\r\n <#elseif type==\"nav\">\r\n and(category_id=0 or category_id is null)\r\n <#--同级栏目(多个)-->\r\n <#elseif type==\"level\">\r\n and\r\n <#if _typeid?has_content>\r\n category_id=(select category_id from cms_category where id=${_typeid})\r\n <#else>\r\n 1=1\r\n \r\n <#--当前栏目(单个)-->\r\n <#elseif type==\"self\">\r\n and \r\n <#if _typeid?has_content>\r\n id=${_typeid}\r\n <#else>\r\n 1=1\r\n \r\n <#--当前栏目的所属栏目(多个)-->\r\n <#elseif type==\"path\">\r\n and \r\n <#if _typeid?has_content>\r\n id in (<#if column?? && column.categoryParentId??>${column.categoryParentId},${_typeid})\r\n <#else>\r\n 1=1\r\n \r\n <#--子栏目(多个)-->\r\n <#elseif type==\"son\">\r\n and \r\n <#if _typeid?has_content>\r\n category_id=${_typeid}\r\n <#else>\r\n 1=1\r\n \r\n <#--上一级栏目没有则取当前栏目(单个)-->\r\n <#elseif type==\"parent\">\r\n and \r\n <#if _typeid?has_content>\r\n <#if column?? && column.categoryId??>\r\n id=${column.categoryId}\r\n <#else>\r\n id=${_typeid}\r\n \r\n <#else>\r\n 1=1\r\n \r\n <#--子栏目或同级栏目(多个)-->\r\n <#elseif type==\"sonOrLevel\">\r\n and \r\n <#if _typeid?has_content>\r\n category_id= if((SELECT count(*) FROM cms_category\r\n WHERE id=${_typeid})>0,${_typeid},(select id from cms_category where id=${_typeid}))\r\n <#else>\r\n 1=1\r\n \r\n \r\n<#else> <#--默认son-->\r\n and\r\n <#if _typeid?has_content>\r\n category_id=${_typeid}\r\n <#else>\r\n (category_id=0 or category_id is null)\r\n \r\n\r\n<#--字段排序-->\r\n <#if orderby?? >\r\n ORDER BY \r\n <#if orderby==\"date\"> category_datetime\r\n <#elseif orderby==\"sort\"> category_sort\r\n <#else>cms_content.id\r\n <#else>\r\n ORDER BY id\r\n \r\n <#if order?? >\r\n <#if order==\"desc\"> desc\r\n <#if order==\"asc\"> asc\r\n ', 1); INSERT INTO `mdiy_tag_sql` VALUES (7, 5, 'select \r\nAPP_NAME as name,\r\napp_logo as logo,\r\napp_keyword as keyword,\r\napp_description as descrip,\r\napp_copyright as copyright,\r\n<#--动态解析 -->\r\n<#if isDo?? && isDo>\r\n\"${url}\" as url,\r\n\"${url}\" as host,\r\n<#--使用地址栏的域名 -->\r\n<#elseif url??>\r\nCONCAT(\"${url}\",\"/${html}/\",app_id,\"/<#if m??>${m}\") as url,\r\n\"${url}\" as host,\r\n<#else>\r\nCONCAT(REPLACE(REPLACE(TRIM(substring_index(app_url,\"\\n\",1)), CHAR(10),\'\'), CHAR(13),\'\'),\"/html/\",app_id,\"/<#if m??>${m}\") as url,\r\nREPLACE(REPLACE(TRIM(substring_index(app_url,\"\\n\",1)), CHAR(10),\'\'), CHAR(13),\'\') as host,\r\n\r\nCONCAT(\"templets/\",app_id,\"/\",<#if m??>CONCAT(app_style,\"/${m}\")<#else>app_style) as style <#-- 判断是否为手机端 -->\r\nfrom app where app_id = ${appId} limit 1', 1); INSERT INTO `mdiy_tag_sql` VALUES (8, 7, 'SELECT \r\ncms_content.id as id,\r\nleft(content_title,${titlelen?default(40)}) as title,\r\ncontent_title as fulltitle,\r\ncontent_author as author, \r\ncontent_source as source, \r\ncontent_details as content,\r\ncategory_title as typetitle,\r\ncms_category.id as typeid,\r\ncategory_img AS typelitpic,\r\n<#--动态链接-->\r\n<#if isDo?? && isDo>\r\nCONCAT(\"/${modelName}/list.do?typeid=\", category.id) as typelink,\r\n<#else>\r\n(SELECT \"index.html\") as typelink,\r\n\r\ncontent_img as litpic,\r\n<#--内容页动态链接-->\r\n<#if isDo?? && isDo>\r\nCONCAT(\"/mcms/view.do?id=\", cms_content.id) as link,\r\n<#else>\r\ncontent_url AS link,\r\n\r\ncontent_datetime as date,\r\ncontent_description as descrip,\r\nCONCAT(\"\") as hit,\r\ncontent_type as flag,\r\ncategory_title as typetitle,\r\n<#if tableName??>${tableName}.*,\r\ncontent_keyword as keyword\r\nFROM cms_content\r\nLEFT JOIN cms_category ON content_category_id=cms_category.id \r\n<#--判断是否有自定义模型表-->\r\n<#if tableName??>left join ${tableName} on ${tableName}.link_id=cms_content.id\r\nWHERE \r\n1=1\r\n<#if id??> and cms_content.id=${id}', 1); INSERT INTO `mdiy_tag_sql` VALUES (9, 8, '<#assign select=\"(SELECT \'\')\"/>\r\n<#if orderby?? >\r\n <#if orderby==\"date\"> \r\n <#assign _orderby=\"content_datetime\">\r\n <#elseif orderby==\"updatedate\">\r\n <#assign _orderby=\"content_updatetime\">\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><#assign _orderby=\"cms_content.id\">\r\n <#else>\r\n <#assign _orderby=\"cms_content.id\">\r\n \r\n<#if (pageTag.preId) gt 0>\r\nSELECT \r\ncms_content.id as id,\r\nleft(content_title,${titlelen?default(40)}) as title,\r\ncontent_title as fulltitle,\r\ncontent_author as author, \r\ncontent_source as source, \r\ncontent_details as content,\r\ncategory.category_title as typename,\r\ncategory.category_id as typeid,\r\n(SELECT \"index.html\") as typelink,\r\ncontent_img as litpic,\r\n<#--内容页动态链接-->\r\n <#if isDo?? && isDo>\r\n CONCAT(\"/${modelName}/view.do?id=\", cms_content.id,\"&orderby=${_orderby}\",\"&order=${order!\'ASC\'}\") as link,\r\n <#else>\r\n CONCAT(category_path,\"/\",cms_content.id,\".html\") AS link,\r\n \r\ncontent_datetime as date,\r\ncontent_description as descrip,\r\ncontent_hit as hit,\r\ncontent_type as flag,\r\ncontent_keyword as keyword \r\nFROM cms_content \r\nLEFT JOIN cms_category as category ON content_category_id=category.id \r\nWHERE cms_content.id=${pageTag.preId}\r\n<#else>\r\nSELECT \r\n${select} as id,\r\n${select} as title,\r\n${select} as fulltitle,\r\n${select} as author, \r\n${select} as source, \r\n${select} as content,\r\n${select} as typename,\r\n${select} as typeid,\r\n${select} as typelink,\r\n${select} as litpic,\r\n${select} as link,\r\n${select} as date,\r\n${select} as descrip,\r\n${select} as hit,\r\n${select} as flag,\r\n${select} as keyword FROM cms_content\r\n', NULL); @@ -515,15 +516,15 @@ CREATE TABLE `model` ( -- ---------------------------- INSERT INTO `model` VALUES (23, '权限管理', '01000000', NULL, '', '2014-09-08 08:12:22', 'icon-quanxianguanli', 0, 5, 1, NULL, NULL); INSERT INTO `model` VALUES (84, '系统设置', '12000000', NULL, '', '2014-12-18 18:30:24', 'icon-xitongguanli', 0, 3, 1, NULL, NULL); -INSERT INTO `model` VALUES (86, '应用设置', '12010000', 84, 'app/-1/edit.do', '2014-12-18 18:31:59', '', 0, NULL, 1, NULL, NULL); +INSERT INTO `model` VALUES (86, '应用设置', '12010000', 84, 'app/-1/edit.do', '2014-12-18 18:31:59', '', 0, 0, 1, '84', NULL); INSERT INTO `model` VALUES (87, '模版管理', '12020000', 84, 'template/index.do', '2014-12-18 18:32:50', '', 0, 0, 1, '84', NULL); -INSERT INTO `model` VALUES (182, '修改', '12010004', 86, 'app:update', '2017-09-04 14:14:42', '', 0, 0, 0, '', NULL); +INSERT INTO `model` VALUES (182, '修改', '12010004', 86, 'app:update', '2017-09-04 14:14:42', '', 0, 0, 0, '84,86', NULL); INSERT INTO `model` VALUES (183, '菜单管理', '01030000', 23, 'model/index.do', '2017-09-04 11:09:26', '', 0, 0, 1, '23', NULL); -INSERT INTO `model` VALUES (184, '查看', '01030001', 183, 'model:view', '2017-09-04 11:10:43', '', 0, 0, 0, '', NULL); -INSERT INTO `model` VALUES (201, '新增', '01030002', 183, 'model:save', '2019-12-27 10:26:29', NULL, 0, NULL, 0, NULL, NULL); -INSERT INTO `model` VALUES (202, '修改', '01030004', 183, 'model:update', '2019-12-27 10:26:33', NULL, 0, NULL, 0, NULL, NULL); -INSERT INTO `model` VALUES (204, '上传', '12020002', 87, 'template:upload', '2019-12-27 10:26:37', '', 0, 0, 0, '87', NULL); -INSERT INTO `model` VALUES (217, '会员中心', '07000000', NULL, NULL, '2018-10-28 19:30:44', 'icon-huiyuanzhongxin', 0, 0, 1, NULL, NULL); +INSERT INTO `model` VALUES (184, '查看', '01030001', 183, 'model:view', '2017-09-04 11:10:43', '', 0, 0, 0, '23,183', NULL); +INSERT INTO `model` VALUES (201, '新增', '01030002', 183, 'model:save', '2019-12-27 10:26:29', NULL, 0, 0, 0, '23,183', NULL); +INSERT INTO `model` VALUES (202, '修改', '01030004', 183, 'model:update', '2019-12-27 10:26:33', NULL, 0, 0, 0, '23,183', NULL); +INSERT INTO `model` VALUES (204, '上传', '12020002', 87, 'template:upload', '2019-12-27 10:26:37', '', 0, 0, 0, '84,87', NULL); +INSERT INTO `model` VALUES (217, '会员中心', '07000000', NULL, '', '2018-10-28 19:30:44', 'icon-huiyuanzhongxin', 0, 0, 1, NULL, NULL); INSERT INTO `model` VALUES (218, '用户管理', '07020100', 217, 'people/peopleUser/index.do', '2018-10-28 19:30:44', NULL, 0, 0, 1, '217', NULL); INSERT INTO `model` VALUES (219, '修改', '07020104', 218, 'people:user:update', '2018-10-28 19:30:44', '', 0, 0, 0, '217,218', NULL); INSERT INTO `model` VALUES (220, '删除', '07020103', 218, 'people:user:del', '2018-10-28 19:30:44', '', 0, 0, 0, '217,218', NULL); @@ -567,8 +568,8 @@ INSERT INTO `model` VALUES (663, '删除', '15737980803547570', 411, 'manager:de INSERT INTO `model` VALUES (664, '更新', '15737980853527702', 411, 'manager:update', '2019-11-18 14:21:08', '', 0, 0, 0, '23,411', NULL); INSERT INTO `model` VALUES (665, '新增', '15735981803267702', 411, 'manager:save', '2019-11-18 14:21:42', '', 0, 0, 0, '23,411', NULL); INSERT INTO `model` VALUES (668, '删除', '668', 183, 'model:del', '2019-11-18 14:35:49', '', 0, 0, 0, '23,183', NULL); -INSERT INTO `model` VALUES (672, '删除', '5434345', 87, 'template:del', '2019-11-18 15:05:09', '', 0, 0, 0, '87', NULL); -INSERT INTO `model` VALUES (673, '更新', '452435345', 87, 'template:update', '2019-11-18 15:05:35', '', 0, 0, 0, '87', NULL); +INSERT INTO `model` VALUES (672, '删除', '5434345', 87, 'template:del', '2019-11-18 15:05:09', '', 0, 0, 0, '84,87', NULL); +INSERT INTO `model` VALUES (673, '更新', '452435345', 87, 'template:update', '2019-11-18 15:05:35', '', 0, 0, 0, '84,87', NULL); INSERT INTO `model` VALUES (685, '系统日志', '65123656532', 84, 'basic/systemLog/index.do', '2019-11-21 17:13:50', '', 0, 0, 1, '84', NULL); INSERT INTO `model` VALUES (686, '查看', '351463145634', 685, 'basic:systemlog:view', '2019-11-21 17:14:24', '', 0, 0, 0, '84,685', NULL); INSERT INTO `model` VALUES (706, '内容管理', '02000000', NULL, '', '2019-11-22 16:14:59', 'icon-neirongguanli', 0, 5, 1, NULL, NULL); @@ -813,18 +814,6 @@ CREATE TABLE `system_log` ( `create_date` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `create_by` int(11) NULL DEFAULT NULL COMMENT '创建人', PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 1321 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '系统日志' ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of system_log --- ---------------------------- -INSERT INTO `system_log` VALUES (1313, NULL, 'success', '{\n \"result\":true,\n \"code\":200,\n \"data\":{\n \"createBy\":0,\n \"del\":0,\n \"fieldMap\":{\n \"phone\":\"phone\",\n \"name\":\"name\",\n \"words\":\"words\"\n },\n \"id\":\"41\",\n \"modelAppId\":1,\n \"modelCustomType\":\"post\",\n \"modelField\":\"[\\r\\n{\\r\\n \\\"model\\\":\\\"name\\\",\\r\\n \\\"key\\\":\\\"name\\\",\\r\\n \\\"javaType\\\":\\\"String\\\",\\r\\n \\\"jdbcType\\\":\\\"VARCHAR\\\",\\r\\n \\\"name\\\":\\\"姓名\\\",\\r\\n \\\"type\\\":\\\"input\\\"\\r\\n }\\r\\n ,{\\r\\n \\\"model\\\":\\\"phone\\\",\\r\\n \\\"key\\\":\\\"phone\\\",\\r\\n \\\"javaType\\\":\\\"String\\\",\\r\\n \\\"jdbcType\\\":\\\"VARCHAR\\\",\\r\\n \\\"name\\\":\\\"手机\\\",\\r\\n \\\"type\\\":\\\"input\\\"\\r\\n }\\r\\n ,{\\r\\n \\\"model\\\":\\\"words\\\",\\r\\n \\\"key\\\":\\\"words\\\",\\r\\n \\\"javaType\\\":\\\"String\\\",\\r\\n \\\"jdbcType\\\":\\\"VARCHAR\\\",\\r\\n \\\"name\\\":\\\"留言\\\",\\r\\n \\\"type\\\":\\\"textarea\\\"\\r\\n }\\r\\n]\",\n \"modelJson\":\"{\\\"html\\\":\\\"\\\\r\\\\n\\\",\\\"script\\\":\\\" var custom_model = Vue.component(\\\\\\\"custom-model\\\\\\\",{\\\\r\\\\n el: \'#custom-model\',\\\\r\\\\n data() {\\\\r\\\\n return {\\\\r\\\\n modelId:0,\\\\r\\\\n //表单数据\\\\r\\\\n form: {\\\\r\\\\n linkId:0,\\\\r\\\\n // 姓名\\\\r\\\\n name:\'\',\\\\r\\\\n // 手机\\\\r\\\\n phone:\'\',\\\\r\\\\n // 留言\\\\r\\\\n words:\'\',\\\\r\\\\n },\\\\r\\\\n rules:{\\\\r\\\\n },\\\\r\\\\n\\\\r\\\\n }\\\\r\\\\n },\\\\r\\\\n watch:{\\\\r\\\\n },\\\\r\\\\n computed:{\\\\r\\\\n },\\\\r\\\\n methods: {\\\\r\\\\n validate(){\\\\r\\\\n var b = false\\\\r\\\\n this.$refs.form.validate((valid) => {\\\\r\\\\n b = valid;\\\\r\\\\n });\\\\r\\\\n return b;\\\\r\\\\n },\\\\r\\\\n save() {\\\\r\\\\n var that = this;\\\\r\\\\n var success = false;\\\\r\\\\n var url = ms.manager + \\\\\\\"/mdiy/model/data/save.do\\\\\\\"\\\\r\\\\n if (that.form.id > 0) {\\\\r\\\\n url = ms.manager + \\\\\\\"/mdiy/model/data/update.do\\\\\\\";\\\\r\\\\n }\\\\r\\\\n this.$refs.form.validate((valid) => {\\\\r\\\\n if (valid) {\\\\r\\\\n var data = JSON.parse(JSON.stringify(that.form));\\\\r\\\\n data.modelId = that.modelId;\\\\r\\\\n ms.http.post(url, data).then(function (res) {\\\\r\\\\n if (res.data.id > 0) {\\\\r\\\\n success = true;\\\\r\\\\n }\\\\r\\\\n });\\\\r\\\\n } else {\\\\r\\\\n return false;\\\\r\\\\n }\\\\r\\\\n })\\\\r\\\\n return success;\\\\r\\\\n },\\\\r\\\\n //获取当前意见反馈\\\\r\\\\n get(id) {\\\\r\\\\n var that = this;\\\\r\\\\n ms.http.get(ms.manager + \\\\\\\"/mdiy/model/data.do\\\\\\\", {modelId:this.modelId,linkId:id}).then(function (res) {\\\\r\\\\n if(res.result&&res.data){\\\\r\\\\n that.form = res.data;\\\\r\\\\n }\\\\r\\\\n }).catch(function (err) {\\\\r\\\\n console.log(err);\\\\r\\\\n });\\\\r\\\\n },\\\\r\\\\n },\\\\r\\\\n created() {\\\\r\\\\n this.get(this.form.linkId);\\\\r\\\\n }\\\\r\\\\n });\\\\r\\\\n\\\\r\\\\n\\\"}\",\n \"modelName\":\"意见反馈\",\n \"modelTableName\":\"mdiy_post_feedback\",\n \"modelType\":\"\",\n \"sqlWhereList\":[],\n \"updateBy\":0\n }\n}', '{\n \"modelType\":[\"\"],\n \"modelJson\":[\"{\\\"html\\\":\\\"\\\\r\\\\n\\\",\\\"field\\\":\\\"[\\\\r\\\\n{\\\\r\\\\n \\\\\\\"model\\\\\\\":\\\\\\\"name\\\\\\\",\\\\r\\\\n \\\\\\\"key\\\\\\\":\\\\\\\"name\\\\\\\",\\\\r\\\\n \\\\\\\"javaType\\\\\\\":\\\\\\\"String\\\\\\\",\\\\r\\\\n \\\\\\\"jdbcType\\\\\\\":\\\\\\\"VARCHAR\\\\\\\",\\\\r\\\\n \\\\\\\"name\\\\\\\":\\\\\\\"姓名\\\\\\\",\\\\r\\\\n \\\\\\\"type\\\\\\\":\\\\\\\"input\\\\\\\"\\\\r\\\\n }\\\\r\\\\n ,{\\\\r\\\\n \\\\\\\"model\\\\\\\":\\\\\\\"phone\\\\\\\",\\\\r\\\\n \\\\\\\"key\\\\\\\":\\\\\\\"phone\\\\\\\",\\\\r\\\\n \\\\\\\"javaType\\\\\\\":\\\\\\\"String\\\\\\\",\\\\r\\\\n \\\\\\\"jdbcType\\\\\\\":\\\\\\\"VARCHAR\\\\\\\",\\\\r\\\\n \\\\\\\"name\\\\\\\":\\\\\\\"手机\\\\\\\",\\\\r\\\\n \\\\\\\"type\\\\\\\":\\\\\\\"input\\\\\\\"\\\\r\\\\n }\\\\r\\\\n ,{\\\\r\\\\n \\\\\\\"model\\\\\\\":\\\\\\\"words\\\\\\\",\\\\r\\\\n \\\\\\\"key\\\\\\\":\\\\\\\"words\\\\\\\",\\\\r\\\\n \\\\\\\"javaType\\\\\\\":\\\\\\\"String\\\\\\\",\\\\r\\\\n \\\\\\\"jdbcType\\\\\\\":\\\\\\\"VARCHAR\\\\\\\",\\\\r\\\\n \\\\\\\"name\\\\\\\":\\\\\\\"留言\\\\\\\",\\\\r\\\\n \\\\\\\"type\\\\\\\":\\\\\\\"textarea\\\\\\\"\\\\r\\\\n }\\\\r\\\\n]\\\",\\\"title\\\":\\\"意见反馈\\\",\\\"script\\\":\\\" var custom_model = Vue.component(\\\\\\\"custom-model\\\\\\\",{\\\\r\\\\n el: \'#custom-model\',\\\\r\\\\n data() {\\\\r\\\\n return {\\\\r\\\\n modelId:0,\\\\r\\\\n //表单数据\\\\r\\\\n form: {\\\\r\\\\n linkId:0,\\\\r\\\\n // 姓名\\\\r\\\\n name:\'\',\\\\r\\\\n // 手机\\\\r\\\\n phone:\'\',\\\\r\\\\n // 留言\\\\r\\\\n words:\'\',\\\\r\\\\n },\\\\r\\\\n rules:{\\\\r\\\\n },\\\\r\\\\n\\\\r\\\\n }\\\\r\\\\n },\\\\r\\\\n watch:{\\\\r\\\\n },\\\\r\\\\n computed:{\\\\r\\\\n },\\\\r\\\\n methods: {\\\\r\\\\n validate(){\\\\r\\\\n var b = false\\\\r\\\\n this.$refs.form.validate((valid) => {\\\\r\\\\n b = valid;\\\\r\\\\n });\\\\r\\\\n return b;\\\\r\\\\n },\\\\r\\\\n save() {\\\\r\\\\n var that = this;\\\\r\\\\n var success = false;\\\\r\\\\n var url = ms.manager + \\\\\\\"/mdiy/model/data/save.do\\\\\\\"\\\\r\\\\n if (that.form.id > 0) {\\\\r\\\\n url = ms.manager + \\\\\\\"/mdiy/model/data/update.do\\\\\\\";\\\\r\\\\n }\\\\r\\\\n this.$', '内网IP', '/ms-mcms/ms/mdiy/post/importJson.do', 'msopen', 'manage', 'POST', 'net.mingsoft.mdiy.action.PostAction.importJson()', 'insert', '127.0.0.1', '导入', 0, NULL, NULL, '2020-01-07 14:05:43', NULL); -INSERT INTO `system_log` VALUES (1314, NULL, 'success', '{\n \"result\":true,\n \"code\":200\n}', '{\n \"modelId\":[\"41\"],\n \"ids\":[\"1\"]\n}', '内网IP', '/ms-mcms/ms/mdiy/post/data/delete.do', 'msopen', 'manage', 'POST', 'net.mingsoft.mdiy.action.PostAction.delete()', 'delete', '127.0.0.1', '批量删除自数据接口', 0, NULL, NULL, '2020-01-07 14:09:56', NULL); -INSERT INTO `system_log` VALUES (1315, NULL, 'success', '{\n \"result\":true,\n \"code\":200,\n \"data\":{\n \"appId\":1,\n \"contentAuthor\":\"\",\n \"contentCategoryId\":\"149\",\n \"contentDatetime\":\"2018-07-09 11:12:00\",\n \"contentDescription\":\"x\",\n \"contentDetails\":\"

洛龙区人民政府门户网作为洛阳市洛龙区电子政务(网上行政)建设的重要组成部分,是政府信息公开的法定载体,是政府面向社会服务的平台,是公众与政府交流互动的桥梁,是宣传洛龙的主要窗口,对于促进政府信息公开、推进依法行政、接受公众监督、改进行政管理、全面履行政府职能和建设阳光政府具有重要意义。

\",\n \"contentDisplay\":\"0\",\n \"contentHit\":0,\n \"contentImg\":\"[{\\\"path\\\":\\\"/upload/1//article/1531105970322.jpg\\\",\\\"url\\\":\\\"/ms-mcms/upload/1//article/1531105970322.jpg\\\",\\\"uid\\\":1578390819577,\\\"status\\\":\\\"success\\\"}]\",\n \"contentKeyword\":\"x\",\n \"contentSort\":0,\n \"contentSource\":\"http://www.luolong.gov.cn/ \",\n \"contentTitle\":\"洛阳洛龙\",\n \"contentType\":\"f\",\n \"contentUrl\":\"/149\\\\222.html\",\n \"createBy\":0,\n \"del\":0,\n \"id\":\"222\",\n \"order\":\"\",\n \"remarks\":\"\",\n \"sqlWhereList\":[],\n \"updateBy\":0,\n \"updateDate\":\"2020-01-07 17:53:47\"\n }\n}', '{\n \"createDate\":[\"\"],\n \"id\":[\"222\"],\n \"remarks\":[\"\"],\n \"updateDate\":[\"\"],\n \"order\":[\"\"],\n \"contentTitle\":[\"洛阳洛龙\"],\n \"contentCategoryId\":[\"149\"],\n \"contentType\":[\"f\"],\n \"contentDisplay\":[\"0\"],\n \"contentAuthor\":[\"\"],\n \"contentSource\":[\"http://www.luolong.gov.cn/ \"],\n \"contentDatetime\":[\"2018-07-09 11:12:00\"],\n \"contentSort\":[\"0\"],\n \"contentImg\":[\"[{\\\"path\\\":\\\"/upload/1//article/1531105970322.jpg\\\",\\\"url\\\":\\\"/ms-mcms/upload/1//article/1531105970322.jpg\\\",\\\"uid\\\":1578390819577,\\\"status\\\":\\\"success\\\"}]\"],\n \"contentDescription\":[\"x\"],\n \"contentKeyword\":[\"x\"],\n \"contentDetails\":[\"

洛龙区人民政府门户网作为洛阳市洛龙区电子政务(网上行政)建设的重要组成部分,是政府信息公开的法定载体,是政府面向社会服务的平台,是公众与政府交流互动的桥梁,是宣传洛龙的主要窗口,对于促进政府信息公开、推进依法行政、接受公众监督、改进行政管理、全面履行政府职能和建设阳光政府具有重要意义。

\"],\n \"contentUrl\":[\"/149\\\\222.html\"],\n \"appId\":[\"1\"],\n \"contentHit\":[\"0\"]\n}', '内网IP', '/ms-mcms/ms/cms/content/update.do', 'msopen', 'manage', 'POST', 'net.mingsoft.cms.action.ContentAction.update()', 'update', '127.0.0.1', '更新文章', 0, NULL, NULL, '2020-01-07 17:53:47', NULL); -INSERT INTO `system_log` VALUES (1316, NULL, 'success', '{\n \"result\":true,\n \"code\":200,\n \"data\":{\n \"appId\":1,\n \"contentAuthor\":\"\",\n \"contentCategoryId\":\"149\",\n \"contentDatetime\":\"2018-07-09 11:12:00\",\n \"contentDescription\":\"\",\n \"contentDetails\":\"

洛龙区人民政府门户网作为洛阳市洛龙区电子政务(网上行政)建设的重要组成部分,是政府信息公开的法定载体,是政府面向社会服务的平台,是公众与政府交流互动的桥梁,是宣传洛龙的主要窗口,对于促进政府信息公开、推进依法行政、接受公众监督、改进行政管理、全面履行政府职能和建设阳光政府具有重要意义。

\",\n \"contentDisplay\":\"0\",\n \"contentHit\":0,\n \"contentImg\":\"[{\\\"path\\\":\\\"/upload/1//article/1531105970322.jpg\\\",\\\"url\\\":\\\"/ms-mcms/upload/1//article/1531105970322.jpg\\\",\\\"uid\\\":1578390819577,\\\"status\\\":\\\"success\\\"}]\",\n \"contentKeyword\":\"\",\n \"contentSort\":0,\n \"contentSource\":\"http://www.luolong.gov.cn/ \",\n \"contentTitle\":\"洛阳洛龙\",\n \"contentType\":\"f\",\n \"contentUrl\":\"/149\\\\222.html\",\n \"createBy\":0,\n \"del\":0,\n \"id\":\"222\",\n \"order\":\"\",\n \"remarks\":\"\",\n \"sqlWhereList\":[],\n \"updateBy\":0,\n \"updateDate\":\"2020-01-07 17:53:54\"\n }\n}', '{\n \"createDate\":[\"\"],\n \"id\":[\"222\"],\n \"remarks\":[\"\"],\n \"updateDate\":[\"2020-01-07 17:53:47\"],\n \"order\":[\"\"],\n \"contentTitle\":[\"洛阳洛龙\"],\n \"contentCategoryId\":[\"149\"],\n \"contentType\":[\"f\"],\n \"contentDisplay\":[\"0\"],\n \"contentAuthor\":[\"\"],\n \"contentSource\":[\"http://www.luolong.gov.cn/ \"],\n \"contentDatetime\":[\"2018-07-09 11:12:00\"],\n \"contentSort\":[\"0\"],\n \"contentImg\":[\"[{\\\"path\\\":\\\"/upload/1//article/1531105970322.jpg\\\",\\\"url\\\":\\\"/ms-mcms/upload/1//article/1531105970322.jpg\\\",\\\"uid\\\":1578390819577,\\\"status\\\":\\\"success\\\"}]\"],\n \"contentDescription\":[\"\"],\n \"contentKeyword\":[\"\"],\n \"contentDetails\":[\"

洛龙区人民政府门户网作为洛阳市洛龙区电子政务(网上行政)建设的重要组成部分,是政府信息公开的法定载体,是政府面向社会服务的平台,是公众与政府交流互动的桥梁,是宣传洛龙的主要窗口,对于促进政府信息公开、推进依法行政、接受公众监督、改进行政管理、全面履行政府职能和建设阳光政府具有重要意义。

\"],\n \"contentUrl\":[\"/149\\\\222.html\"],\n \"appId\":[\"1\"],\n \"contentHit\":[\"0\"]\n}', '内网IP', '/ms-mcms/ms/cms/content/update.do', 'msopen', 'manage', 'POST', 'net.mingsoft.cms.action.ContentAction.update()', 'update', '127.0.0.1', '更新文章', 0, NULL, NULL, '2020-01-07 17:53:55', NULL); -INSERT INTO `system_log` VALUES (1317, '\r\n### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column \'page_type\' in \'field list\'\r\n### The error may involve net.mingsoft.mdiy.dao.IPageDao.saveEntity-Inline\r\n### The error occurred while setting parameters\r\n### SQL: insert into mdiy_page ( page_app_id, page_path, page_title, page_key, page_type, CREATE_DATE ) values ( ?, ?, ?, ?, ?, ? )\r\n### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column \'page_type\' in \'field list\'\n; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column \'page_type\' in \'field list\'', 'error', 'null', '{\n \"pageTitle\":[\"xxx\"],\n \"pagePath\":[\"footer.htm\"],\n \"pageKey\":[\"xxx\"],\n \"pageType\":[\"cms\"]\n}', '内网IP', '/ms-mcms/ms/mdiy/page/save.do', 'msopen', 'manage', 'POST', 'net.mingsoft.mdiy.action.PageAction.save()', 'insert', '127.0.0.1', '保存自定义页面接口', 0, NULL, NULL, '2020-01-07 17:55:01', NULL); -INSERT INTO `system_log` VALUES (1318, NULL, 'success', '{\n \"result\":true,\n \"code\":200,\n \"data\":{\n \"createBy\":0,\n \"createDate\":\"2020-01-07 18:00:48\",\n \"del\":0,\n \"pageAppId\":1,\n \"pageId\":5,\n \"pageKey\":\"index\",\n \"pagePath\":\"index.htm\",\n \"pageTitle\":\"index\",\n \"pageType\":\"cms\",\n \"sqlWhereList\":[],\n \"updateBy\":0\n }\n}', '{\n \"pageTitle\":[\"index\"],\n \"pagePath\":[\"index.htm\"],\n \"pageKey\":[\"index\"],\n \"pageType\":[\"cms\"]\n}', '内网IP', '/ms-mcms/ms/mdiy/page/save.do', 'msopen', 'manage', 'POST', 'net.mingsoft.mdiy.action.PageAction.save()', 'insert', '127.0.0.1', '保存自定义页面接口', 0, NULL, NULL, '2020-01-07 18:00:49', NULL); -INSERT INTO `system_log` VALUES (1319, '\r\n### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column \'UPDATE_DATE\' in \'field list\'\r\n### The error may involve net.mingsoft.mdiy.dao.IPageDao.updateEntity-Inline\r\n### The error occurred while setting parameters\r\n### SQL: update mdiy_page SET page_app_id=?, page_path=?, page_title=?, page_key=?, page_type=?, CREATE_DATE=?, UPDATE_DATE=? where page_id = ?\r\n### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column \'UPDATE_DATE\' in \'field list\'\n; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column \'UPDATE_DATE\' in \'field list\'', 'error', 'null', '{\n \"createDate\":[\"2020-01-07 18:00:49\"],\n \"id\":[\"\"],\n \"remarks\":[\"\"],\n \"updateDate\":[\"\"],\n \"order\":[\"\"],\n \"pageId\":[\"5\"],\n \"pageModelId\":[\"\"],\n \"pageAppId\":[\"1\"],\n \"pagePath\":[\"index.htm\"],\n \"pageTitle\":[\"index\"],\n \"pageKey\":[\"mcms\"],\n \"pageType\":[\"cms\"]\n}', '内网IP', '/ms-mcms/ms/mdiy/page/update.do', 'msopen', 'manage', 'POST', 'net.mingsoft.mdiy.action.PageAction.update()', 'update', '127.0.0.1', '更新自定义页面接口', 0, NULL, NULL, '2020-01-07 18:01:03', NULL); -INSERT INTO `system_log` VALUES (1320, '\r\n### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column \'del\' in \'where clause\'\r\n### The error may involve defaultParameterMap\r\n### The error occurred while setting parameters\r\n### SQL: delete from mdiy_page WHERE page_id in (?) and del != 3\r\n### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column \'del\' in \'where clause\'\n; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column \'del\' in \'where clause\'', 'error', 'null', '[\n {\n \"createBy\":0,\n \"createDate\":\"2020-01-07 18:00:49\",\n \"del\":0,\n \"pageAppId\":1,\n \"pageId\":5,\n \"pageKey\":\"index\",\n \"pagePath\":\"index.htm\",\n \"pageTitle\":\"index\",\n \"pageType\":\"cms\",\n \"sqlWhereList\":[],\n \"updateBy\":0\n }\n]', '内网IP', '/ms-mcms/ms/mdiy/page/delete.do', 'msopen', 'manage', 'POST', 'net.mingsoft.mdiy.action.PageAction.delete()', 'delete', '127.0.0.1', '批量删除自定义页面接口', 0, NULL, NULL, '2020-01-07 18:02:23', NULL); +) ENGINE = InnoDB AUTO_INCREMENT = 1340 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '系统日志' ROW_FORMAT = Dynamic; SET FOREIGN_KEY_CHECKS = 1;