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
987dc164
Commit
987dc164
authored
Nov 06, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移交单下文件清单-退档,解除关系,重新计算案卷信息
parent
a968250a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
6 deletions
+27
-6
ExtTransferDocumentController.java
...cument/core/controller/ExtTransferDocumentController.java
+2
-3
ExtTransferDocumentService.java
...dcs/document/core/service/ExtTransferDocumentService.java
+1
-1
ExtTransferDocumentServiceImpl.java
...ent/core/service/impl/ExtTransferDocumentServiceImpl.java
+24
-2
No files found.
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/controller/ExtTransferDocumentController.java
View file @
987dc164
...
...
@@ -56,9 +56,8 @@ public class ExtTransferDocumentController<V extends ExtTransferDocumentVO, S ex
@ApiOperation
(
value
=
"移交单下文件清单-退档"
,
notes
=
"移交单下文件清单退档"
)
@PostMapping
(
value
=
"/returnDocument"
)
public
ApiResult
returnDocument
(
@RequestParam
(
"id"
)
Long
id
,
@RequestParam
(
"docId"
)
Long
docId
)
{
extTransferDocumentService
.
returnDocument
(
id
,
docId
);
public
ApiResult
returnDocument
(
@RequestParam
(
"transferDocLink"
)
Long
transferDocLink
)
{
extTransferDocumentService
.
returnDocument
(
transferDocLink
);
return
ApiResult
.
ok
(
ApiResult
.
SUCCESS
,
"退档成功"
);
}
}
...
...
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/ExtTransferDocumentService.java
View file @
987dc164
...
...
@@ -32,7 +32,7 @@ public interface ExtTransferDocumentService<V extends ExtTransferDocumentVO> ext
void
updateArchivingStatus
(
Long
id
);
void
returnDocument
(
Long
id
,
Long
docId
);
void
returnDocument
(
Long
transferDocLink
);
void
saveFilesDocLink
(
List
<
ExtFilesUpdateVO
>
extFilesUpdateVOList
);
}
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/impl/ExtTransferDocumentServiceImpl.java
View file @
987dc164
...
...
@@ -44,6 +44,7 @@ import org.springframework.stereotype.Service;
import
java.time.LocalDateTime
;
import
java.time.ZoneId
;
import
java.util.Arrays
;
import
java.util.Collection
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -187,8 +188,29 @@ public class ExtTransferDocumentServiceImpl<V extends ExtTransferDocumentVO> imp
}
@Override
public
void
returnDocument
(
Long
id
,
Long
docId
)
{
public
void
returnDocument
(
Long
transferDocLink
)
{
SearchQueryCondition
searchProgram
=
SearchUtil
.
buildQuery
(
"id"
,
SearchItem
.
Operator
.
EQ
,
transferDocLink
);
List
<
ExtTransferDocLinkVO
>
transferDocLinkVOList
=
extTransferDocLinkService
.
findRecursion
(
searchProgram
).
getContent
();
ExtTransferDocLinkVO
extTransferDocLinkVO
=
transferDocLinkVOList
.
get
(
0
);
// 1.更新文档状态为档案未接收
Long
sourceId
=
extTransferDocLinkVO
.
getSourceId
();
extDxDocumentService
.
updateArchivingStatus
(
sourceId
,
ExtDxDocumentServiceImpl
.
ARCHIVE_NOT_RECEIVED
);
// 2.删除绑定关系
String
belongingCaseFile
=
extTransferDocLinkVO
.
getBelongingCaseFile
();
if
(
StringUtils
.
isNotBlank
(
belongingCaseFile
))
{
List
<
ExtFilesVO
>
extFilesVOList
=
extFilesService
.
findRecursionByVolumeNumber
(
belongingCaseFile
);
Long
id
=
extFilesVOList
.
get
(
0
).
getId
();
SearchQueryCondition
queryDoc
=
SearchQueryCondition
.
builder
()
.
searchItems
(
SearchItems
.
builder
()
.
item
(
new
SearchItem
(
"targetId"
,
SearchItem
.
Operator
.
EQ
,
id
,
null
))
.
item
(
new
SearchItem
(
"sourceId"
,
SearchItem
.
Operator
.
EQ
,
sourceId
,
null
))
.
operator
(
SearchItems
.
BooleanOperator
.
AND
).
build
()).
build
();
ExtFilesDocLinkVO
extFilesDocLinkVO
=
(
ExtFilesDocLinkVO
)
extFilesDocLinkService
.
findRecursion
(
queryDoc
).
getContent
().
get
(
0
);
ExtFilesVO
target
=
extFilesDocLinkVO
.
getTarget
();
extFilesDocLinkService
.
delete
(
extFilesDocLinkVO
.
getId
());
// 3.重新计算案卷信息
this
.
updateExtFilesByBelongingCaseFile
(
Arrays
.
asList
(
target
),
""
);
}
}
@Override
...
...
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