Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
荆蔚杰
/
java.archive
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ffb9f9d6
authored
2021-12-10 17:14:40 +0800
by
荆蔚杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
档案目录修改保存判断方式修改
1 parent
76e562c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/main/java/com/pashanhoo/archive/service/impl/DgArchivesServiceImpl.java
src/main/java/com/pashanhoo/archive/service/impl/DgArchivesServiceImpl.java
View file @
ffb9f9d
package
com
.
pashanhoo
.
archive
.
service
.
impl
;
import
cn.hutool.core.util.StrUtil
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.pashanhoo.archive.entity.DgArchivesConverter
;
...
...
@@ -246,8 +247,8 @@ public class DgArchivesServiceImpl extends ServiceImpl<DgArchivesMapper, DgArchi
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
updateCatalog
(
List
<
UpdateDgArchivesCatalogRequest
>
requests
)
{
List
<
UpdateDgArchivesCatalogRequest
>
updateCatalogs
=
requests
.
stream
().
filter
(
item
->
!
item
.
getBsmCatalog
().
isEmpty
(
)).
collect
(
Collectors
.
toList
());
List
<
UpdateDgArchivesCatalogRequest
>
addCatalogs
=
requests
.
stream
().
filter
(
item
->
item
.
getBsmCatalog
().
isEmpty
(
)).
collect
(
Collectors
.
toList
());
List
<
UpdateDgArchivesCatalogRequest
>
updateCatalogs
=
requests
.
stream
().
filter
(
item
->
!
StrUtil
.
isNullOrUndefined
(
item
.
getBsmCatalog
()
)).
collect
(
Collectors
.
toList
());
List
<
UpdateDgArchivesCatalogRequest
>
addCatalogs
=
requests
.
stream
().
filter
(
item
->
StrUtil
.
isNullOrUndefined
(
item
.
getBsmCatalog
()
)).
collect
(
Collectors
.
toList
());
//存量数据更新.
String
bsmArchive
=
updateCatalogs
.
stream
().
map
(
UpdateDgArchivesCatalogRequest:
:
getBsmArchives
).
findFirst
().
orElse
(
null
);
...
...
Please
register
or
sign in
to post a comment