Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
site-project
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
site-project
Commits
ed22fa00
Commit
ed22fa00
authored
Dec 20, 2024
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门户搜素接口
parent
70908d2f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/DataClassificationServiceImpl.java
+8
-0
cloud-site-service/src/main/resources/mapper/InformationMapper.xml
+1
-1
No files found.
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/DataClassificationServiceImpl.java
View file @
ed22fa00
...
...
@@ -2,6 +2,7 @@ package com.yizhi.site.application.service.impl;
import
java.util.*
;
import
java.util.logging.Logger
;
import
java.util.stream.Collectors
;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.yizhi.site.application.domain.DataClassification
;
...
...
@@ -19,6 +20,7 @@ import com.yizhi.site.application.vo.site.ClassificationVO;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -151,6 +153,12 @@ public class DataClassificationServiceImpl extends ServiceImpl<DataClassificatio
vo
.
setData
(
selectVoByMap
);
}
}
// 名称检索
if
(
CollectionUtil
.
isNotEmpty
(
list
)){
if
(
ObjectUtils
.
isNotEmpty
(
siteComponyIdVO
.
getBannerName
())){
list
=
list
.
stream
().
filter
(
a
->
ObjectUtils
.
isNotEmpty
(
a
.
getName
())&&
a
.
getName
().
indexOf
(
siteComponyIdVO
.
getBannerName
())>=
0
).
collect
(
Collectors
.
toList
());
}
}
return
list
;
}
...
...
cloud-site-service/src/main/resources/mapper/InformationMapper.xml
View file @
ed22fa00
...
...
@@ -192,7 +192,7 @@
<include
refid=
"Base_Column_List"
/>
from information where 1=1 and site_id=#{siteId} and state=#{state}
<if
test=
"fileName != null || fileName != ''"
>
and
file_name like CONCAT('%', '${fileName}', '%'
)
and
(file_name like CONCAT('%', '${fileName}', '%' ) or key_words like CONCAT('%', '${fileName}', '%' )
)
</if>
</select>
...
...
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