Commit d3f9a701 authored by sgjj's avatar sgjj

修复文章属性栏目属性筛选,添加时间范围搜索

parent 4355dbcf
This diff is collapsed.
This diff is collapsed.
...@@ -326,7 +326,9 @@ ...@@ -326,7 +326,9 @@
and a.content_source like CONCAT("%",#{map.content_source},"%") and a.content_source like CONCAT("%",#{map.content_source},"%")
</if> </if>
<if test="map.content_type!=null"> <if test="map.content_type!=null">
and a.content_type like CONCAT("%",#{map.content_type},"%") and <foreach item="item" index="index" collection="map.content_type.split(',')" open="(" separator="or" close=")">
FIND_IN_SET('${item}',a.content_type)
</foreach>
</if> </if>
<if test="map.content_description!=null"> <if test="map.content_description!=null">
and a.content_description like CONCAT("%",#{map.content_description},"%") and a.content_description like CONCAT("%",#{map.content_description},"%")
...@@ -337,6 +339,9 @@ ...@@ -337,6 +339,9 @@
<if test="map.content_details!=null"> <if test="map.content_details!=null">
and a.content_details like CONCAT("%",#{map.content_details},"%") and a.content_details like CONCAT("%",#{map.content_details},"%")
</if> </if>
<if test="map.content_datetime_start!=null and map.content_datetime_end!=null">
and a.content_datetime between #{map.content_datetime_start} and #{map.content_datetime_end}
</if>
<if test="tableName!=null and tableName!='' and diyMap!=null"> <if test="tableName!=null and tableName!='' and diyMap!=null">
<foreach item="item" index="index" collection="diyList" open="" <foreach item="item" index="index" collection="diyList" open=""
separator="" close=""> separator="" close="">
......
...@@ -21,10 +21,8 @@ ...@@ -21,10 +21,8 @@
<el-form-item label="栏目名称" prop="categoryTitle"> <el-form-item label="栏目名称" prop="categoryTitle">
<template slot='label'>栏目名称 <template slot='label'>栏目名称
<el-popover slot="label" placement="top-start" title="提示" trigger="hover"> <el-popover slot="label" placement="top-start" title="提示" trigger="hover">
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" <a href="http://doc.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html"
target="_blank">{ms:field.typetitle/}</a> target="_blank">${'$'}{field.typetitle}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html"
target="_blank">[field.typetitle/]</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
</template> </template>
...@@ -157,8 +155,8 @@ ...@@ -157,8 +155,8 @@
<el-form-item prop="categoryDiyUrl"> <el-form-item prop="categoryDiyUrl">
<template slot='label'>自定义链接 <template slot='label'>自定义链接
<el-popover slot="label" placement="top-start" title="提示" trigger="hover"> <el-popover slot="label" placement="top-start" title="提示" trigger="hover">
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html" <a href="http://doc.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html"
target="_blank">[field.typeurl/]</a> target="_blank">${'$'}{field.typeurl}</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
</template> </template>
...@@ -174,8 +172,8 @@ ...@@ -174,8 +172,8 @@
<el-form-item label="栏目管理关键字" prop="categoryKeyword" > <el-form-item label="栏目管理关键字" prop="categoryKeyword" >
<template slot='label'>栏目关键字 <template slot='label'>栏目关键字
<el-popover slot="label" placement="top-start" title="提示" trigger="hover"> <el-popover slot="label" placement="top-start" title="提示" trigger="hover">
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html" <a href="http://doc.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html"
target="_blank">[field.typekeyword/]</a> target="_blank">${'$'}{field.typekeyword}</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
</template> </template>
...@@ -190,8 +188,8 @@ ...@@ -190,8 +188,8 @@
<el-form-item label="栏目管理描述" prop="categoryDescrip"> <el-form-item label="栏目管理描述" prop="categoryDescrip">
<template slot='label'>栏目描述 <template slot='label'>栏目描述
<el-popover slot="label" placement="top-start" title="提示" trigger="hover"> <el-popover slot="label" placement="top-start" title="提示" trigger="hover">
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html" <a href="http://doc.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html"
target="_blank">[field.typedescrip/]</a> target="_blank">${'$'}{field.typedescrip}</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
</template> </template>
...@@ -206,10 +204,8 @@ ...@@ -206,10 +204,8 @@
<el-form-item label="" prop="categoryImg" > <el-form-item label="" prop="categoryImg" >
<template slot='label'>缩略图 <template slot='label'>缩略图
<el-popover slot="label" placement="top-start" title="提示" trigger="hover"> <el-popover slot="label" placement="top-start" title="提示" trigger="hover">
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/nei-rong-biao-qian-ms-field.html" <a href="http://doc.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html"
target="_blank">{ms:field.typelitpic/}</a> target="_blank">${'$'}{field.typelitpic}</a>
<a href="http://doc.ms.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html"
target="_blank">[field.typelitpic/]</a>
<i class="el-icon-question" slot="reference"></i> <i class="el-icon-question" slot="reference"></i>
</el-popover> </el-popover>
</template> </template>
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
{ms:arclist size=10 ispaging=true} {ms:arclist size=10 ispaging=true}
<li> <li>
<a href="{ms:global.url/}/[field.link/]"> <a href="{ms:global.url/}/[field.link/]">
[field.title/] ${field.title}
<span class="ms-content-main-li-time">[field.date?string("yyyy-MM-dd")/]</span> <span class="ms-content-main-li-time">${field.date?string("yyyy-MM-dd")}</span>
</a> </a>
</li> </li>
{/ms:arclist} {/ms:arclist}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment