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
1217c1c4
Commit
1217c1c4
authored
Dec 21, 2020
by
xierz
Browse files
oracle适配
parent
3839154e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/cms/dao/ICategoryDao.java
View file @
1217c1c4
...
...
@@ -20,7 +20,6 @@
*/
package
net.mingsoft.cms.dao
;
import
com.baomidou.mybatisplus.annotation.SqlParser
;
import
net.mingsoft.base.dao.IBaseDao
;
import
net.mingsoft.cms.entity.CategoryEntity
;
import
org.springframework.stereotype.Component
;
...
...
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
View file @
1217c1c4
...
...
@@ -307,13 +307,13 @@
and FIND_IN_SET(a.category_id,#{ids})>0
</if>
<if
test=
"map.content_title!=null"
>
and a.content_title like CONCAT(CONCAT(
"%"
,#{map.content_title}),
"%"
)
and a.content_title like CONCAT(CONCAT(
'%'
,#{map.content_title}),
'%'
)
</if>
<if
test=
"map.content_author!=null"
>
and a.content_author like CONCAT(CONCAT(
"%"
,#{map.content_author}),
"%"
)
and a.content_author like CONCAT(CONCAT(
'%'
,#{map.content_author}),
'%'
)
</if>
<if
test=
"map.content_source!=null"
>
and a.content_source like CONCAT(CONCAT(
"%"
,#{map.content_source}),
"%"
)
and a.content_source like CONCAT(CONCAT(
'%'
,#{map.content_source}),
'%'
)
</if>
<if
test=
"map.content_type!=null"
>
and
<foreach
item=
"item"
index=
"index"
collection=
"map.content_type.split(',')"
open=
"("
separator=
"or"
close=
")"
>
...
...
@@ -321,13 +321,13 @@
</foreach>
</if>
<if
test=
"map.content_description!=null"
>
and a.content_description like CONCAT(CONCAT(
"%"
,#{map.content_description}),
"%"
)
and a.content_description like CONCAT(CONCAT(
'%'
,#{map.content_description}),
'%'
)
</if>
<if
test=
"map.content_keyword!=null"
>
and a.content_keyword like CONCAT(CONCAT(
"%"
,#{map.content_keyword}),
"%"
)
and a.content_keyword like CONCAT(CONCAT(
'%'
,#{map.content_keyword}),
'%'
)
</if>
<if
test=
"map.content_details!=null"
>
and a.content_details like CONCAT(CONCAT(
"%"
,#{map.content_details}),
"%"
)
and a.content_details like CONCAT(CONCAT(
'%'
,#{map.content_details}),
'%'
)
</if>
<if
test=
"map.content_datetime_start!=null and map.content_datetime_end!=null"
>
<if
test=
"_databaseId == 'mysql'"
>
...
...
@@ -341,7 +341,7 @@
<if
test=
"tableName!=null and tableName!='' and diyMap!=null"
>
<foreach
item=
"item"
index=
"index"
collection=
"diyList"
open=
""
separator=
""
close=
""
>
and d.${field.key} like CONCAT(CONCAT(
"%"
,#{item.value}),
"%"
)
and d.${field.key} like CONCAT(CONCAT(
'%'
,#{item.value}),
'%'
)
</foreach>
</if>
</where>
...
...
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