Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
193d144a
Commit
193d144a
authored
Dec 16, 2020
by
xierz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、适配oracle
2、更改高级搜索的时间空间,格式化时间日期值
parent
ea461213
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
IContentDao.xml
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
+20
-3
No files found.
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
View file @
193d144a
...
@@ -235,6 +235,7 @@
...
@@ -235,6 +235,7 @@
<if
test=
"createDate != null"
>
and ct.create_date=#{createDate}
</if>
<if
test=
"createDate != null"
>
and ct.create_date=#{createDate}
</if>
<if
test=
"updateBy > 0"
>
and ct.update_by=#{updateBy}
</if>
<if
test=
"updateBy > 0"
>
and ct.update_by=#{updateBy}
</if>
<if
test=
"updateDate != null"
>
and update_date=#{updateDate}
</if>
<if
test=
"updateDate != null"
>
and update_date=#{updateDate}
</if>
<include
refid=
"net.mingsoft.base.dao.IBaseDao.sqlWhere"
></include>
</where>
</where>
)ct ORDER BY ct.content_datetime desc,content_sort desc
)ct ORDER BY ct.content_datetime desc,content_sort desc
</select>
</select>
...
@@ -253,10 +254,20 @@
...
@@ -253,10 +254,20 @@
(select id FROM cms_category where find_in_set('${categoryId}',CATEGORY_PARENT_IDS)>0))
(select id FROM cms_category where find_in_set('${categoryId}',CATEGORY_PARENT_IDS)>0))
</if>
</if>
<if
test=
"beginTime!=null and beginTime!=''"
>
<if
test=
"beginTime!=null and beginTime!=''"
>
and content_datetime
>
= #{beginTime}
<if
test=
"_databaseId == 'mysql'"
>
and content_datetime
>
= #{beginTime}
</if>
<if
test=
"_databaseId == 'oracle'"
>
and content_datetime
>
= to_date(#{beginTime}, 'yyyy-mm-dd hh24:mi:ss')
</if>
</if>
</if>
<if
test=
"endTime!=null and endTime!=''"
>
<if
test=
"endTime!=null and endTime!=''"
>
and content_datetime
>
= #{endTime}
<if
test=
"_databaseId == 'mysql'"
>
and content_datetime
>
= #{endTime}
</if>
<if
test=
"_databaseId == 'oracle'"
>
and content_datetime
>
= to_date(#{endTime}, 'yyyy-mm-dd hh24:mi:ss')
</if>
</if>
</if>
<if
test=
"flag!=null and flag!=''"
>
<if
test=
"flag!=null and flag!=''"
>
and ct.content_type in ( #{flag})
and ct.content_type in ( #{flag})
...
@@ -319,7 +330,13 @@
...
@@ -319,7 +330,13 @@
and a.content_details like CONCAT(CONCAT("%",#{map.content_details}),"%")
and a.content_details like CONCAT(CONCAT("%",#{map.content_details}),"%")
</if>
</if>
<if
test=
"map.content_datetime_start!=null and map.content_datetime_end!=null"
>
<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
test=
"_databaseId == 'mysql'"
>
and a.content_datetime between #{map.content_datetime_start} and #{map.content_datetime_end}
</if>
<if
test=
"_databaseId == 'oracle'"
>
and a.content_datetime
>
to_date(#{map.content_datetime_start}, 'yyyy-mm-dd hh24:mi:ss')
and a.content_datetime
<
to_date(#{map.content_datetime_end}, 'yyyy-mm-dd hh24:mi:ss')
</if>
</if>
</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=
""
...
...
Write
Preview
Markdown
is supported
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