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
8fce2047
Commit
8fce2047
authored
Nov 11, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除移交单接口,编制状态下先删除link关系,在删除移交单
parent
479dc468
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
0 deletions
+27
-0
ExtTransferDocumentController.java
...cument/core/controller/ExtTransferDocumentController.java
+8
-0
ExtTransferDocumentService.java
...dcs/document/core/service/ExtTransferDocumentService.java
+2
-0
ExtTransferDocumentServiceImpl.java
...ent/core/service/impl/ExtTransferDocumentServiceImpl.java
+17
-0
No files found.
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/controller/ExtTransferDocumentController.java
View file @
8fce2047
...
...
@@ -78,6 +78,14 @@ public class ExtTransferDocumentController<V extends ExtTransferDocumentVO, S ex
autoTaskService
.
generateTransferDocumentWordSign
(
extTransferDocumentVO
);
return
ApiResult
.
ok
(
ApiResult
.
SUCCESS
,
"生成移交单附件成功"
);
}
@ApiOperation
(
value
=
"生成移交单附件"
,
notes
=
"生成移交单附件"
)
@DeleteMapping
(
value
=
"/batchByIds"
)
public
ApiResult
batchByIds
(
@RequestParam
(
"ids"
)
String
ids
)
{
extTransferDocumentService
.
batchByIds
(
ids
);
return
ApiResult
.
ok
(
ApiResult
.
SUCCESS
,
"生成移交单附件成功"
);
}
}
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/ExtTransferDocumentService.java
View file @
8fce2047
...
...
@@ -37,4 +37,6 @@ public interface ExtTransferDocumentService<V extends ExtTransferDocumentVO> ext
void
saveFilesDocLink
(
List
<
ExtFilesUpdateVO
>
extFilesUpdateVOList
);
void
returnDocumentByDocId
(
Long
docId
);
void
batchByIds
(
String
ids
);
}
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/impl/ExtTransferDocumentServiceImpl.java
View file @
8fce2047
...
...
@@ -275,6 +275,23 @@ public class ExtTransferDocumentServiceImpl<V extends ExtTransferDocumentVO> imp
this
.
updateExtFilesByBelongingCaseFile
(
Arrays
.
asList
(
target
));
}
@Override
public
void
batchByIds
(
String
ids
)
{
for
(
String
id
:
ids
.
split
(
","
))
{
SearchQueryCondition
searchQueryCondition
=
SearchUtil
.
buildQueryWithOpenAttr
(
"targetId"
,
SearchItem
.
Operator
.
EQ
,
id
,
"target"
);
List
<
ExtTransferDocLinkVO
>
extTransferDocLinkVOList
=
(
List
<
ExtTransferDocLinkVO
>)
extTransferDocLinkService
.
findRecursion
(
searchQueryCondition
).
getContent
();
String
state
=
extTransferDocLinkVOList
.
get
(
0
).
getTarget
().
getState
();
// 编制状态下删除
if
(
Constants
.
EDIT
.
equals
(
state
))
{
List
<
Long
>
transferDocLinkIds
=
extTransferDocLinkVOList
.
stream
().
map
(
ExtTransferDocLinkVO:
:
getId
).
collect
(
Collectors
.
toList
());
// 删除移交单文档关系关系
extTransferDocLinkService
.
deleteAllById
(
transferDocLinkIds
);
// 删除移交单
this
.
delete
(
Long
.
parseLong
(
id
));
}
}
}
@Override
public
DxUserInfoVO
getSignInfo
(
List
<
DxWfProcessTaskVO
>
activities
,
String
activityName
)
{
for
(
DxWfProcessTaskVO
wf
:
activities
)
{
...
...
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