Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
539a5660
Commit
539a5660
authored
Jan 13, 2023
by
msgroup
Committed by
mingsoft
Jan 13, 2023
Browse files
up: 5.3.0 待发布
parent
02785bd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/5.2.12-up-5.3.0.sql
0 → 100644
View file @
539a5660
ALTER
TABLE
`role_model`
ADD
COLUMN
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
ADD
PRIMARY
KEY
(
`id`
);
UPDATE
`model`
SET
`model_id`
=
84
,
`model_parent_ids`
=
'84'
,
`model_code`
=
'12010000'
,
`model_title`
=
'应用设置'
,
`model_url`
=
'basic/app/-1/edit.do'
,
`model_icon`
=
''
,
`model_sort`
=
2
,
`model_ismenu`
=
1
,
`IS_CHILD`
=
NULL
,
`model_datetime`
=
'2014-12-19 22:31:59'
,
`UPDATE_BY`
=
'57'
,
`UPDATE_DATE`
=
'2023-01-03 13:51:29'
,
`CREATE_BY`
=
NULL
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
86
;
UPDATE
`model`
SET
`model_id`
=
86
,
`model_parent_ids`
=
'84,86'
,
`model_code`
=
'12010004'
,
`model_title`
=
'修改'
,
`model_url`
=
'basic:app:update'
,
`model_icon`
=
''
,
`model_sort`
=
0
,
`model_ismenu`
=
0
,
`IS_CHILD`
=
NULL
,
`model_datetime`
=
'2017-09-05 16:14:42'
,
`UPDATE_BY`
=
NULL
,
`UPDATE_DATE`
=
NULL
,
`CREATE_BY`
=
NULL
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
182
;
UPDATE
`model`
SET
`model_id`
=
86
,
`model_parent_ids`
=
'84,86'
,
`model_code`
=
'12010004'
,
`model_title`
=
'查看'
,
`model_url`
=
'basic:app:view'
,
`model_icon`
=
''
,
`model_sort`
=
0
,
`model_ismenu`
=
0
,
`IS_CHILD`
=
NULL
,
`model_datetime`
=
'2022-05-07 14:13:36'
,
`UPDATE_BY`
=
'57'
,
`UPDATE_DATE`
=
'2023-01-03 13:51:03'
,
`CREATE_BY`
=
NULL
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
1765
;
UPDATE
`model`
SET
`model_id`
=
411
,
`model_parent_ids`
=
'23,411'
,
`model_code`
=
'412'
,
`model_title`
=
'查看'
,
`model_url`
=
'basic:manager:view'
,
`model_icon`
=
''
,
`model_sort`
=
0
,
`model_ismenu`
=
0
,
`IS_CHILD`
=
NULL
,
`model_datetime`
=
'2019-08-04 12:56:13'
,
`UPDATE_BY`
=
'57'
,
`UPDATE_DATE`
=
'2023-01-03 11:57:03'
,
`CREATE_BY`
=
NULL
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
412
;
UPDATE
`model`
SET
`model_id`
=
411
,
`model_parent_ids`
=
'23,411'
,
`model_code`
=
'15737980803547570'
,
`model_title`
=
'删除'
,
`model_url`
=
'basic:manager:del'
,
`model_icon`
=
''
,
`model_sort`
=
0
,
`model_ismenu`
=
0
,
`IS_CHILD`
=
NULL
,
`model_datetime`
=
'2019-11-19 18:19:35'
,
`UPDATE_BY`
=
'57'
,
`UPDATE_DATE`
=
'2023-01-06 14:33:09'
,
`CREATE_BY`
=
NULL
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
663
;
UPDATE
`model`
SET
`model_id`
=
411
,
`model_parent_ids`
=
'23,411'
,
`model_code`
=
'15737980853527702'
,
`model_title`
=
'更新'
,
`model_url`
=
'basic:manager:update'
,
`model_icon`
=
''
,
`model_sort`
=
0
,
`model_ismenu`
=
0
,
`IS_CHILD`
=
NULL
,
`model_datetime`
=
'2019-11-19 18:21:08'
,
`UPDATE_BY`
=
'57'
,
`UPDATE_DATE`
=
'2023-01-06 14:33:32'
,
`CREATE_BY`
=
NULL
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
664
;
UPDATE
`model`
SET
`model_id`
=
411
,
`model_parent_ids`
=
'23,411'
,
`model_code`
=
'15735981803267702'
,
`model_title`
=
'新增'
,
`model_url`
=
'basic:manager:save'
,
`model_icon`
=
''
,
`model_sort`
=
0
,
`model_ismenu`
=
0
,
`IS_CHILD`
=
NULL
,
`model_datetime`
=
'2019-11-19 18:21:42'
,
`UPDATE_BY`
=
'57'
,
`UPDATE_DATE`
=
'2023-01-07 15:06:12'
,
`CREATE_BY`
=
NULL
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
665
;
UPDATE
`model`
SET
`model_id`
=
23
,
`model_parent_ids`
=
'23'
,
`model_code`
=
'01030000'
,
`model_title`
=
'菜单管理'
,
`model_url`
=
'basic/model/index.do'
,
`model_icon`
=
''
,
`model_sort`
=
0
,
`model_ismenu`
=
1
,
`IS_CHILD`
=
NULL
,
`model_datetime`
=
'2017-09-05 13:09:26'
,
`UPDATE_BY`
=
'57'
,
`UPDATE_DATE`
=
'2023-01-03 10:46:19'
,
`CREATE_BY`
=
NULL
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
183
;
UPDATE
`model`
SET
`model_id`
=
183
,
`model_parent_ids`
=
'23,183'
,
`model_code`
=
'01030001'
,
`model_title`
=
'查看'
,
`model_url`
=
'basic:model:view'
,
`model_icon`
=
''
,
`model_sort`
=
0
,
`model_ismenu`
=
0
,
`IS_CHILD`
=
NULL
,
`model_datetime`
=
'2017-09-05 13:10:43'
,
`UPDATE_BY`
=
NULL
,
`UPDATE_DATE`
=
NULL
,
`CREATE_BY`
=
NULL
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
184
;
UPDATE
`model`
SET
`model_id`
=
183
,
`model_parent_ids`
=
'23,183'
,
`model_code`
=
'01030002'
,
`model_title`
=
'新增'
,
`model_url`
=
'basic:model:save'
,
`model_icon`
=
NULL
,
`model_sort`
=
0
,
`model_ismenu`
=
0
,
`IS_CHILD`
=
NULL
,
`model_datetime`
=
'2019-12-28 14:26:29'
,
`UPDATE_BY`
=
NULL
,
`UPDATE_DATE`
=
NULL
,
`CREATE_BY`
=
NULL
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
201
;
UPDATE
`model`
SET
`model_id`
=
183
,
`model_parent_ids`
=
'23,183'
,
`model_code`
=
'01030004'
,
`model_title`
=
'修改'
,
`model_url`
=
'basic:model:update'
,
`model_icon`
=
''
,
`model_sort`
=
0
,
`model_ismenu`
=
0
,
`IS_CHILD`
=
NULL
,
`model_datetime`
=
'2019-12-28 14:26:33'
,
`UPDATE_BY`
=
'57'
,
`UPDATE_DATE`
=
'2023-01-06 15:10:56'
,
`CREATE_BY`
=
NULL
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
202
;
UPDATE
`model`
SET
`model_id`
=
183
,
`model_parent_ids`
=
'23,183'
,
`model_code`
=
'668'
,
`model_title`
=
'删除'
,
`model_url`
=
'basic:model:del'
,
`model_icon`
=
''
,
`model_sort`
=
0
,
`model_ismenu`
=
0
,
`IS_CHILD`
=
NULL
,
`model_datetime`
=
'2019-11-19 18:35:49'
,
`UPDATE_BY`
=
'57'
,
`UPDATE_DATE`
=
'2023-01-06 15:09:37'
,
`CREATE_BY`
=
NULL
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
668
;
UPDATE
`model`
SET
`model_id`
=
406
,
`model_parent_ids`
=
'23,406'
,
`model_code`
=
'407'
,
`model_title`
=
'新增'
,
`model_url`
=
'basic:role:save'
,
`model_icon`
=
''
,
`model_sort`
=
0
,
`model_ismenu`
=
0
,
`IS_CHILD`
=
NULL
,
`model_datetime`
=
'2019-08-03 19:19:10'
,
`UPDATE_BY`
=
'57'
,
`UPDATE_DATE`
=
'2023-01-07 14:58:52'
,
`CREATE_BY`
=
NULL
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
407
;
UPDATE
`model`
SET
`model_id`
=
406
,
`model_parent_ids`
=
'23,406'
,
`model_code`
=
'408'
,
`model_title`
=
'修改'
,
`model_url`
=
'basic:role:update'
,
`model_icon`
=
''
,
`model_sort`
=
0
,
`model_ismenu`
=
0
,
`IS_CHILD`
=
NULL
,
`model_datetime`
=
'2019-08-03 19:19:34'
,
`UPDATE_BY`
=
'57'
,
`UPDATE_DATE`
=
'2023-01-06 09:59:49'
,
`CREATE_BY`
=
NULL
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
408
;
UPDATE
`model`
SET
`model_id`
=
406
,
`model_parent_ids`
=
'23,406'
,
`model_code`
=
'409'
,
`model_title`
=
'删除'
,
`model_url`
=
'basic:role:del'
,
`model_icon`
=
''
,
`model_sort`
=
0
,
`model_ismenu`
=
0
,
`IS_CHILD`
=
NULL
,
`model_datetime`
=
'2019-08-03 19:19:59'
,
`UPDATE_BY`
=
'57'
,
`UPDATE_DATE`
=
'2023-01-03 11:42:47'
,
`CREATE_BY`
=
NULL
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
409
;
UPDATE
`model`
SET
`model_id`
=
406
,
`model_parent_ids`
=
'23,406'
,
`model_code`
=
'409'
,
`model_title`
=
'查看'
,
`model_url`
=
'basic:role:view'
,
`model_icon`
=
''
,
`model_sort`
=
0
,
`model_ismenu`
=
0
,
`IS_CHILD`
=
NULL
,
`model_datetime`
=
'2022-05-07 14:12:58'
,
`UPDATE_BY`
=
'57'
,
`UPDATE_DATE`
=
'2023-01-03 11:42:51'
,
`CREATE_BY`
=
NULL
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
1764
;
UPDATE
`model`
SET
`model_id`
=
84
,
`model_parent_ids`
=
'84'
,
`model_code`
=
'12020000'
,
`model_title`
=
'模版管理'
,
`model_url`
=
'basic/template/index.do'
,
`model_icon`
=
''
,
`model_sort`
=
1
,
`model_ismenu`
=
1
,
`IS_CHILD`
=
NULL
,
`model_datetime`
=
'2014-12-19 22:32:50'
,
`UPDATE_BY`
=
NULL
,
`UPDATE_DATE`
=
NULL
,
`CREATE_BY`
=
NULL
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
87
;
UPDATE
`model`
SET
`model_id`
=
87
,
`model_parent_ids`
=
'84,87'
,
`model_code`
=
'12020002'
,
`model_title`
=
'上传'
,
`model_url`
=
'basic:template:upload'
,
`model_icon`
=
''
,
`model_sort`
=
0
,
`model_ismenu`
=
0
,
`IS_CHILD`
=
''
,
`model_datetime`
=
'2019-12-28 14:26:37'
,
`UPDATE_BY`
=
''
,
`UPDATE_DATE`
=
NULL
,
`CREATE_BY`
=
''
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
204
;
UPDATE
`model`
SET
`model_id`
=
87
,
`model_parent_ids`
=
'84,87'
,
`model_code`
=
'5434345'
,
`model_title`
=
'删除'
,
`model_url`
=
'basic:template:del'
,
`model_icon`
=
''
,
`model_sort`
=
0
,
`model_ismenu`
=
0
,
`IS_CHILD`
=
''
,
`model_datetime`
=
'2019-11-19 19:05:09'
,
`UPDATE_BY`
=
''
,
`UPDATE_DATE`
=
NULL
,
`CREATE_BY`
=
''
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
672
;
UPDATE
`model`
SET
`model_id`
=
87
,
`model_parent_ids`
=
'84,87'
,
`model_code`
=
'12010004'
,
`model_title`
=
'查看'
,
`model_url`
=
'basic:template:view'
,
`model_icon`
=
''
,
`model_sort`
=
0
,
`model_ismenu`
=
0
,
`IS_CHILD`
=
''
,
`model_datetime`
=
'2022-05-07 14:17:03'
,
`UPDATE_BY`
=
'57'
,
`UPDATE_DATE`
=
'2022-05-07 14:17:18'
,
`CREATE_BY`
=
''
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
1767
;
UPDATE
`model`
SET
`model_id`
=
87
,
`model_parent_ids`
=
'84,87'
,
`model_code`
=
'452435345'
,
`model_title`
=
'更新'
,
`model_url`
=
'basic:template:update'
,
`model_icon`
=
''
,
`model_sort`
=
0
,
`model_ismenu`
=
0
,
`IS_CHILD`
=
''
,
`model_datetime`
=
'2019-11-19 19:05:35'
,
`UPDATE_BY`
=
''
,
`UPDATE_DATE`
=
NULL
,
`CREATE_BY`
=
''
,
`CREATE_DATE`
=
NULL
,
`DEL`
=
0
WHERE
`id`
=
673
;
UPDATE
`mdiy_tag`
SET
`tag_sql`
=
'<#assign _typeid=
\'\'
/>
\r\n
<#assign _typetitle=
\'\'
/>
\r\n
<#assign _size=
\'
20
\'
/>
\r\n\r\n
<#if column?? && column.id?? && column.id?number gt 0>
\r\n
<#assign _typeid=
\'
${column.id}
\'
>
\r\n
</#if>
\r\n\r\n
<#if typeid??>
\r\n
<#assign _typeid=
\'
${typeid}
\'
>
\r\n
</#if>
\r\n\r\n
<#if typetitle??>
\r\n
<#assign _typetitle=
\'
${typetitle}
\'
>
\r\n
</#if>
\r\n\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=
\'
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>
\r\n
<#assign _orderby=
\'
cms_content.id
\'
>
\r\n
</#if>
\r\n
<#else>
\r\n
<#assign _orderby=
\'
cms_content.id
\'
>
\r\n
</#if>
\r\n\r\n
SELECT
\r\n
cms_content.id AS id,
\r\n
content_title AS title,
\r\n
content_title AS fulltitle,
\r\n
content_author AS author,
\r\n
content_source AS source,
\r\n
content_out_link AS outlink,
\r\n
category.category_title AS typetitle,
\r\n
category.id AS typeid,
\r\n
category.category_path AS typepath,
\r\n
category.category_img AS typelitpic,
\r\n
category.category_keyword as typekeyword,
\r\n
category.top_id as topId,
\r\n
category.category_parent_ids as parentids,
\r\n
category.category_type AS
\"
type
\"
,
\r\n\r\n
<#--列表页动态链接-->
\r\n
<#if isDo?? && isDo>
\r\n
CONCAT(
\'
${modelName}/list.do?style=${appTemplate!
\"\"
}&typeid=
\'
, category.category_id) as typelink,
\r\n
<#else>
\r\n
<#if shortSwitch?? && shortSwitch>
\r\n\r\n
(SELECT CONCAT(category.category_pinyin,
\'
.html
\'
)) AS typelink,
\r\n
<#else>
\r\n
\r\n
(SELECT CONCAT(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
<#--内容页动态链接-->
\r\n
<#if isDo?? && isDo>
\r\n
CONCAT(
\'
${modelName}/view.do?style=${appTemplate!
\"\"
}&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(category.category_path,
\'
/
\'
,cms_content.id,
\'
.html
\'
) AS
\"
link
\"
,
\r\n
</#if>
\r\n
</#if>
\r\n\r\n
<#if tableName??>${tableName}.*,</#if>
\r\n
content_datetime AS
\"
date
\"\r\n
FROM
\r\n
cms_content LEFT JOIN cms_category as category
\r\n
ON cms_content.category_id = category.id
\r\n\r\n
<#--判断是否有自定义模型表-->
\r\n
<#if tableName??>
\r\n
LEFT JOIN ${tableName} ON ${tableName}.link_id=cms_content.id
\r\n
</#if>
\r\n
WHERE
\r\n
content_display=0
\r\n
and cms_content.del=0
\r\n\r\n
<#--gov 判断发布到-->
\r\n
<#if style?? >
\r\n
and(
\r\n
<#list style?split(
\'
,
\'
) as item>
\r\n
<#if item?index gt 0> or</#if>
\r\n
FIND_IN_SET(
\'
${item}
\'
,cms_content.content_style)
\r\n
</#list>)
\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
<#--判断是否有搜索分类集合-->
\r\n
<#if search?? >
\r\n
<#if search.categoryIds?has_content>and FIND_IN_SET(category.id,
\'
${search.categoryIds}
\'
)</#if>
\r\n
<#--标题-->
\r\n
<#if search.content_title??> and content_title like CONCAT(
\'
%
\'
,
\'
${search.content_title}
\'
,
\'
%
\'
)</#if>
\r\n
<#--作者-->
\r\n
<#if search.content_author??> and content_author like CONCAT(
\'
%
\'
,
\'
${search.content_author}
\'
,
\'
%
\'
)</#if>
\r\n
<#--来源-->
\r\n
<#if search.content_source??> and content_source like CONCAT(
\'
%
\'
,
\'
${search.content_source}
\'
,
\'
%
\'
)</#if>
\r\n
<#--属性-->
\r\n
<#if search.content_type??> and (
\r\n
<#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)
\r\n
</#list>)
\r\n
</#if>
\r\n\r\n
<#--描述-->
\r\n
<#if search.content_description??>
\r\n
and content_description like CONCAT(
\'
%
\'
,
\'
${search.content_description}
\'
,
\'
%
\'
)
\r\n
</#if>
\r\n\r\n
<#--关键字-->
\r\n
<#if search.content_keyword??> and content_keyword like CONCAT(
\'
%
\'
,
\'
${search.content_keyword}
\'
,
\'
%
\'
)</#if>
\r\n\r\n
<#--内容-->
\r\n
<#if search.content_details??> and content_details like CONCAT(
\'
%
\'
,
\'
${search.content_details}
\'
,
\'
%
\'
)</#if>
\r\n\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>
\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}
\'
</#if> and FIND_IN_SET(${_typeid},CATEGORY_PARENT_IDS)))
\r\n
</#if>
\r\n
</#if>
\r\n
<#--标题-->
\r\n
<#if content_title??> and content_title like CONCAT(
\'
%
\'
,
\'
${content_title}
\'
,
\'
%
\'
)</#if>
\r\n
<#--作者-->
\r\n
<#if content_author??> and content_author like CONCAT(
\'
%
\'
,
\'
${content_author}
\'
,
\'
%
\'
)</#if>
\r\n
<#--来源-->
\r\n
<#if content_source??> and content_source like CONCAT(
\'
%
\'
,
\'
${content_source}
\'
,
\'
%
\'
)</#if>
\r\n
<#--属性-->
\r\n
<#if content_type??> and content_type like CONCAT(
\'
%
\'
,
\'
${content_type}
\'
,
\'
%
\'
)</#if>
\r\n
<#--描述-->
\r\n
<#if content_description??> and content_description like CONCAT(
\'
%
\'
,
\'
${content_description}
\'
,
\'
%
\'
)</#if>
\r\n
<#--关键字-->
\r\n
<#if content_keyword??> and content_keyword like CONCAT(
\'
%
\'
,
\'
${content_keyword}
\'
,
\'
%
\'
)</#if>
\r\n
<#--内容-->
\r\n
<#if content_details??> and content_details like 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(
\'
%
\'
,
\'
${json.value}
\'
,
\'
%
\'
)
\r\n
</#list>
\r\n
</#if>
\r\n
<#--文章属性-->
\r\n
<#if flag?? >
\r\n
and(
\r\n
<#list flag?split(
\'
,
\'
) as item>
\r\n
<#if item?index gt 0> or</#if>
\r\n
FIND_IN_SET(
\'
${item}
\'
,cms_content.content_type)
\r\n
</#list>)
\r\n
</#if>
\r\n
<#if noflag??>
\r\n
and(
\r\n
<#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
<#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>
\r\n
cms_content.id
\r\n
</#if>
\r\n
<#else>
\r\n
ORDER BY cms_content.id
\r\n
</#if>
\r\n\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
'
WHERE
`id`
=
3
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment