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
d795b2df
Commit
d795b2df
authored
Nov 07, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移交单流程档案组审批节点退档-档案未接收 记录移交单number
parent
2f07340b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
13 deletions
+27
-13
ExtDxDocumentService.java
...cs/document/core/service/expand/ExtDxDocumentService.java
+10
-4
ExtTransferDocumentServiceImpl.java
...ent/core/service/impl/ExtTransferDocumentServiceImpl.java
+5
-4
ExtDxDocumentServiceImpl.java
...nt/core/service/impl/expand/ExtDxDocumentServiceImpl.java
+12
-5
No files found.
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/expand/ExtDxDocumentService.java
View file @
d795b2df
...
@@ -13,8 +13,6 @@ import java.util.Map;
...
@@ -13,8 +13,6 @@ import java.util.Map;
* @date: 2024-8-2 15:26:32
* @date: 2024-8-2 15:26:32
**/
**/
public
interface
ExtDxDocumentService
<
V
extends
DxDocumentVO
>
extends
ExtDxDocumentServiceShadow
<
V
>
{
public
interface
ExtDxDocumentService
<
V
extends
DxDocumentVO
>
extends
ExtDxDocumentServiceShadow
<
V
>
{
/**
/**
* 获取文档和文件夹
* 获取文档和文件夹
*
*
...
@@ -22,10 +20,11 @@ public interface ExtDxDocumentService<V extends DxDocumentVO> extends ExtDxDocum
...
@@ -22,10 +20,11 @@ public interface ExtDxDocumentService<V extends DxDocumentVO> extends ExtDxDocum
* @param parentId 目录夹id
* @param parentId 目录夹id
* @return
* @return
*/
*/
Map
<
String
,
DxPageImpl
>
getDocAndFolder
(
Long
dxContextId
,
Long
parentId
,
Long
dxDocumentFolderId
);
Map
<
String
,
DxPageImpl
>
getDocAndFolder
(
Long
dxContextId
,
Long
parentId
,
Long
dxDocumentFolderId
);
/**
/**
* 生成图册目录
* 生成图册目录
*
* @param docId
* @param docId
* @return
* @return
*/
*/
...
@@ -39,5 +38,12 @@ public interface ExtDxDocumentService<V extends DxDocumentVO> extends ExtDxDocum
...
@@ -39,5 +38,12 @@ public interface ExtDxDocumentService<V extends DxDocumentVO> extends ExtDxDocum
*/
*/
DxDocumentVO
startWorkflow
(
Long
id
);
DxDocumentVO
startWorkflow
(
Long
id
);
void
updateArchivingStatus
(
Long
id
,
String
archivingStatus
);
/**
* 更新归档状态
*
* @param id
* @param archivingStatus
* @param transferDocumentId 移交单编号
*/
void
updateArchivingStatus
(
Long
id
,
String
archivingStatus
,
String
transferDocumentCode
);
}
}
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/impl/ExtTransferDocumentServiceImpl.java
View file @
d795b2df
...
@@ -181,7 +181,7 @@ public class ExtTransferDocumentServiceImpl<V extends ExtTransferDocumentVO> imp
...
@@ -181,7 +181,7 @@ public class ExtTransferDocumentServiceImpl<V extends ExtTransferDocumentVO> imp
if
(
CollectionUtils
.
isNotEmpty
(
transferDocLinkVOList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
transferDocLinkVOList
))
{
for
(
ExtTransferDocLinkVO
extTransferDocLinkVO
:
transferDocLinkVOList
)
{
for
(
ExtTransferDocLinkVO
extTransferDocLinkVO
:
transferDocLinkVOList
)
{
Long
sourceId
=
extTransferDocLinkVO
.
getSourceId
();
Long
sourceId
=
extTransferDocLinkVO
.
getSourceId
();
extDxDocumentService
.
updateArchivingStatus
(
sourceId
,
ExtDxDocumentServiceImpl
.
ARCHIVED
);
extDxDocumentService
.
updateArchivingStatus
(
sourceId
,
ExtDxDocumentServiceImpl
.
ARCHIVED
,
""
);
}
}
}
}
}
}
...
@@ -189,14 +189,15 @@ public class ExtTransferDocumentServiceImpl<V extends ExtTransferDocumentVO> imp
...
@@ -189,14 +189,15 @@ public class ExtTransferDocumentServiceImpl<V extends ExtTransferDocumentVO> imp
@Override
@Override
public
void
returnDocument
(
Long
transferDocLinkId
)
{
public
void
returnDocument
(
Long
transferDocLinkId
)
{
// 1.删除移交单关系绑定关系
// 1.删除移交单关系绑定关系
SearchQueryCondition
searchProgram
=
SearchUtil
.
buildQuery
(
"id"
,
SearchItem
.
Operator
.
EQ
,
transferDocLinkId
);
SearchQueryCondition
searchProgram
=
SearchUtil
.
buildQuery
WithOpenAttr
(
"id"
,
SearchItem
.
Operator
.
EQ
,
transferDocLinkId
,
"target"
);
List
<
ExtTransferDocLinkVO
>
transferDocLinkVOList
=
extTransferDocLinkService
.
findRecursion
(
searchProgram
).
getContent
();
List
<
ExtTransferDocLinkVO
>
transferDocLinkVOList
=
extTransferDocLinkService
.
findRecursion
(
searchProgram
).
getContent
();
ExtTransferDocLinkVO
extTransferDocLinkVO
=
transferDocLinkVOList
.
get
(
0
);
ExtTransferDocLinkVO
extTransferDocLinkVO
=
transferDocLinkVOList
.
get
(
0
);
extTransferDocLinkService
.
delete
(
transferDocLinkId
);
extTransferDocLinkService
.
delete
(
transferDocLinkId
);
// 2.更新文档状态为档案未接收,退档人,退档时间
// 2.更新文档状态为档案未接收,退档人,退档时间
Long
sourceId
=
extTransferDocLinkVO
.
getSourceId
();
Long
sourceId
=
extTransferDocLinkVO
.
getSourceId
();
extDxDocumentService
.
updateArchivingStatus
(
sourceId
,
ExtDxDocumentServiceImpl
.
ARCHIVE_NOT_RECEIVED
);
String
number
=
extTransferDocLinkVO
.
getTarget
().
getNumber
();
extDxDocumentService
.
updateArchivingStatus
(
sourceId
,
ExtDxDocumentServiceImpl
.
ARCHIVE_NOT_RECEIVED
,
number
);
// 3.删除案卷文档关系
// 3.删除案卷文档关系
List
<
ExtFilesDocLinkVO
>
extFilesDocLinkVOList
=
extFilesDocLinkService
.
getFilesDocLinkBySourceId
(
sourceId
);
List
<
ExtFilesDocLinkVO
>
extFilesDocLinkVOList
=
extFilesDocLinkService
.
getFilesDocLinkBySourceId
(
sourceId
);
...
@@ -257,7 +258,7 @@ public class ExtTransferDocumentServiceImpl<V extends ExtTransferDocumentVO> imp
...
@@ -257,7 +258,7 @@ public class ExtTransferDocumentServiceImpl<V extends ExtTransferDocumentVO> imp
@Override
@Override
public
void
returnDocumentByDocId
(
Long
docId
)
{
public
void
returnDocumentByDocId
(
Long
docId
)
{
// 1.更新文档状态为归档已作废
// 1.更新文档状态为归档已作废
extDxDocumentService
.
updateArchivingStatus
(
docId
,
ExtDxDocumentServiceImpl
.
ARCHIVE_INVALIDATED
);
extDxDocumentService
.
updateArchivingStatus
(
docId
,
ExtDxDocumentServiceImpl
.
ARCHIVE_INVALIDATED
,
""
);
// 2.删除绑定关系
// 2.删除绑定关系
List
<
ExtFilesDocLinkVO
>
extFilesDocLinkVOList
=
extFilesDocLinkService
.
getFilesDocLinkBySourceId
(
docId
);
List
<
ExtFilesDocLinkVO
>
extFilesDocLinkVOList
=
extFilesDocLinkService
.
getFilesDocLinkBySourceId
(
docId
);
ExtFilesDocLinkVO
extFilesDocLinkVO
=
extFilesDocLinkVOList
.
get
(
0
);
ExtFilesDocLinkVO
extFilesDocLinkVO
=
extFilesDocLinkVOList
.
get
(
0
);
...
...
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/impl/expand/ExtDxDocumentServiceImpl.java
View file @
d795b2df
...
@@ -124,11 +124,19 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe
...
@@ -124,11 +124,19 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe
}
}
@Override
@Override
public
void
updateArchivingStatus
(
Long
id
,
String
archivingStatus
)
{
public
void
updateArchivingStatus
(
Long
id
,
String
archivingStatus
,
String
transferDocumentCode
)
{
DxDocumentVO
dxDocumentVO
=
this
.
get
(
id
);
DxDocumentVO
dxDocumentVO
=
this
.
get
(
id
);
DxUserVO
currentUser
=
userHelper
.
getCurrentUser
();
DxUserVO
currentUser
=
userHelper
.
getCurrentUser
();
Long
userId
=
currentUser
.
getUserId
();
Long
userId
=
currentUser
.
getUserId
();
DxUserInfoVO
dxUserInfoVO
=
(
DxUserInfoVO
)
userService
.
get
(
userId
);
DxUserInfoVO
dxUserInfoVO
=
(
DxUserInfoVO
)
userService
.
get
(
userId
);
// 移交单流程档案组审批节点退档-档案未接收
if
(
ARCHIVE_NOT_RECEIVED
.
equals
(
archivingStatus
))
{
dxDocumentVO
.
setTransferDocumentId
(
transferDocumentCode
);
dxDocumentVO
.
setDxRefundPersonUser
(
dxUserInfoVO
);
dxDocumentVO
.
setDxRefundPersonUserId
(
dxUserInfoVO
.
getUserId
());
dxDocumentVO
.
setDxRefundPersonUserIdType
(
"DxUser"
);
dxDocumentVO
.
setWithdrawalTime
(
LocalDateTime
.
now
());
}
// 无前置状态,直接已归档。置空退档人,和退档时间,移交单号
// 无前置状态,直接已归档。置空退档人,和退档时间,移交单号
if
(
ARCHIVED
.
equals
(
archivingStatus
))
{
if
(
ARCHIVED
.
equals
(
archivingStatus
))
{
dxDocumentVO
.
setTransferDocumentId
(
null
);
dxDocumentVO
.
setTransferDocumentId
(
null
);
...
@@ -137,10 +145,9 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe
...
@@ -137,10 +145,9 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe
dxDocumentVO
.
setDxRefundPersonUserIdType
(
null
);
dxDocumentVO
.
setDxRefundPersonUserIdType
(
null
);
dxDocumentVO
.
setWithdrawalTime
(
null
);
dxDocumentVO
.
setWithdrawalTime
(
null
);
}
}
// 列表上退档-归档已作废 // 移交单流程档案组审批节点退档-档案未接收
// 列表上退档-归档已作废
if
(
ARCHIVE_INVALIDATED
.
equals
(
archivingStatus
)
||
ARCHIVE_NOT_RECEIVED
.
equals
(
archivingStatus
))
{
if
(
ARCHIVE_INVALIDATED
.
equals
(
archivingStatus
))
{
// 修改归档已作废-是否再已归档状态下
if
(!
dxDocumentVO
.
getArchivingStatus
().
equals
(
ARCHIVED
))
{
if
(
ARCHIVE_INVALIDATED
.
equals
(
archivingStatus
)
&&
!
dxDocumentVO
.
getArchivingStatus
().
equals
(
ARCHIVED
))
{
throw
new
DxBusinessException
(
"500"
,
"不是已归档状态"
);
throw
new
DxBusinessException
(
"500"
,
"不是已归档状态"
);
}
}
dxDocumentVO
.
setDxRefundPersonUser
(
dxUserInfoVO
);
dxDocumentVO
.
setDxRefundPersonUser
(
dxUserInfoVO
);
...
...
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