Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dcs-doc-expand
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
INET-TWO
server
dcs-doc-expand
Commits
479dc468
Commit
479dc468
authored
Nov 11, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重新计算案信息
parent
2f594b4d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
22 deletions
+19
-22
ExtTransferDocumentServiceImpl.java
...ent/core/service/impl/ExtTransferDocumentServiceImpl.java
+19
-22
No files found.
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/impl/ExtTransferDocumentServiceImpl.java
View file @
479dc468
...
@@ -292,47 +292,44 @@ public class ExtTransferDocumentServiceImpl<V extends ExtTransferDocumentVO> imp
...
@@ -292,47 +292,44 @@ public class ExtTransferDocumentServiceImpl<V extends ExtTransferDocumentVO> imp
private
void
updateExtFilesByBelongingCaseFile
(
List
<
ExtFilesVO
>
extFilesVOList
)
{
private
void
updateExtFilesByBelongingCaseFile
(
List
<
ExtFilesVO
>
extFilesVOList
)
{
for
(
ExtFilesVO
extFilesVO
:
extFilesVOList
)
{
for
(
ExtFilesVO
extFilesVO
:
extFilesVOList
)
{
String
volumeNumber
=
extFilesVO
.
getVolumeNumber
();
Long
targetId
=
extFilesVO
.
getId
();
int
pageNumber
=
0
;
//文件页数
int
pageNumber
=
0
;
//文件页数
String
secretCode
=
""
;
//最大密级
String
secretCode
=
""
;
//最大密级
Integer
secretCodeDictSeq
=
-
99
;
//初始化最小值
Integer
secretCodeDictSeq
=
-
99
;
//初始化最小值
String
storagePeriod
=
""
;
//最大年限
String
storagePeriod
=
""
;
//最大年限
Integer
storagePeriodDictSeq
=
-
99
;
//初始化最小值
Integer
storagePeriodDictSeq
=
-
99
;
//初始化最小值
// 案卷下的文档
// 案卷下的文档
SearchQueryCondition
queryDoc
=
SearchQueryCondition
.
builder
()
SearchQueryCondition
searchProgram
=
SearchUtil
.
buildQueryWithOpenAttr
(
"targetId"
,
SearchItem
.
Operator
.
EQ
,
targetId
,
"source"
);
.
openProp
(
SearchQueryCondition
.
builder
().
name
(
"source"
).
build
())
List
<
ExtFilesDocLinkVO
>
extFilesDocLinkVOList
=
extFilesDocLinkService
.
findRecursion
(
searchProgram
).
getContent
();
.
searchItems
(
SearchItems
.
builder
()
.
item
(
new
SearchItem
(
"belongingCaseFile"
,
SearchItem
.
Operator
.
EQ
,
volumeNumber
,
null
))
.
operator
(
SearchItems
.
BooleanOperator
.
AND
).
build
()).
build
();
List
<
ExtTransferDocLinkVO
>
extTransferDocLinkVOList
=
extTransferDocLinkService
.
findRecursion
(
queryDoc
).
getContent
();
extTransferDocLinkVOList
=
extTransferDocLinkVOList
.
stream
().
filter
(
obj
->
!
obj
.
getSource
().
getArchivingStatus
().
equals
(
ExtDxDocumentServiceImpl
.
ARCHIVE_INVALIDATED
)
&&
!
obj
.
getSource
().
getArchivingStatus
().
equals
(
ExtDxDocumentServiceImpl
.
ARCHIVE_NOT_RECEIVED
))
.
collect
(
Collectors
.
toList
());
for
(
Ext
TransferDocLinkVO
extTransferDocLinkVO
:
extTransfer
DocLinkVOList
)
{
for
(
Ext
FilesDocLinkVO
extFilesDocLinkVO
:
extFiles
DocLinkVOList
)
{
// 最大密级
// 最大密级
String
secretCodeDoc
=
ext
Transfer
DocLinkVO
.
getSource
().
getSecretCode
();
String
secretCodeDoc
=
ext
Files
DocLinkVO
.
getSource
().
getSecretCode
();
DictDataVO
secretCodeDocMax
=
this
.
getCompareMax
(
Constants
.
SECRET_CODE
,
secretCodeDoc
,
secretCodeDictSeq
);
DictDataVO
secretCodeDocMax
=
this
.
getCompareMax
(
Constants
.
SECRET_CODE
,
secretCodeDoc
,
secretCodeDictSeq
);
if
(
ObjectUtils
.
isNotEmpty
(
secretCodeDocMax
))
{
if
(
ObjectUtils
.
isNotEmpty
(
secretCodeDocMax
))
{
secretCodeDictSeq
=
secretCodeDocMax
.
getDictSeq
();
secretCodeDictSeq
=
secretCodeDocMax
.
getDictSeq
();
secretCode
=
secretCodeDocMax
.
getDictKey
();
secretCode
=
secretCodeDocMax
.
getDictKey
();
}
}
// 最大年限
// 最大年限
SearchQueryCondition
search
=
SearchUtil
.
buildQuery
(
"sourceId"
,
SearchItem
.
Operator
.
EQ
,
extFilesDocLinkVO
.
getSourceId
());
List
<
ExtTransferDocLinkVO
>
extTransferDocLinkVOList
=
extTransferDocLinkService
.
findRecursion
(
search
).
getContent
();
if
(
CollectionUtils
.
isNotEmpty
(
extTransferDocLinkVOList
))
{
ExtTransferDocLinkVO
extTransferDocLinkVO
=
extTransferDocLinkVOList
.
get
(
0
);
String
storagePeriodDoc
=
extTransferDocLinkVO
.
getStoragePeriod
();
String
storagePeriodDoc
=
extTransferDocLinkVO
.
getStoragePeriod
();
DictDataVO
storagePeriodDocMax
=
this
.
getCompareMax
(
Constants
.
DOC_STORAGE_PERIOD
,
storagePeriodDoc
,
storagePeriodDictSeq
);
DictDataVO
storagePeriodDocMax
=
this
.
getCompareMax
(
Constants
.
DOC_STORAGE_PERIOD
,
storagePeriodDoc
,
storagePeriodDictSeq
);
if
(
ObjectUtils
.
isNotEmpty
(
storagePeriodDocMax
))
{
if
(
ObjectUtils
.
isNotEmpty
(
storagePeriodDocMax
))
{
storagePeriodDictSeq
=
storagePeriodDocMax
.
getDictSeq
();
storagePeriodDictSeq
=
storagePeriodDocMax
.
getDictSeq
();
storagePeriod
=
storagePeriodDocMax
.
getDictKey
();
storagePeriod
=
storagePeriodDocMax
.
getDictKey
();
}
}
pageNumber
+=
extTransferDocLinkVO
.
getPageNumber
()
==
null
?
0
:
extTransferDocLinkVO
.
getPageNumber
();
pageNumber
+=
extTransferDocLinkVO
.
getPageNumber
()
==
null
?
0
:
extTransferDocLinkVO
.
getPageNumber
();
}
}
}
ExtFilesUpdateVO
filesUpdateVO
=
new
ExtFilesUpdateVO
();
ExtFilesUpdateVO
filesUpdateVO
=
new
ExtFilesUpdateVO
();
filesUpdateVO
.
setSecretCode
(
secretCode
);
filesUpdateVO
.
setSecretCode
(
secretCode
);
filesUpdateVO
.
setStoragePeriod
(
storagePeriod
);
filesUpdateVO
.
setStoragePeriod
(
storagePeriod
);
filesUpdateVO
.
setFileNumber
(
ext
Transfer
DocLinkVOList
.
size
());
filesUpdateVO
.
setFileNumber
(
ext
Files
DocLinkVOList
.
size
());
filesUpdateVO
.
setPageNumber
(
pageNumber
);
filesUpdateVO
.
setPageNumber
(
pageNumber
);
extFilesService
.
updateExtFiles
(
extFilesVO
,
filesUpdateVO
);
extFilesService
.
updateExtFiles
(
extFilesVO
,
filesUpdateVO
);
}
}
...
...
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