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
826e4d18
Commit
826e4d18
authored
Nov 05, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
从文档里面排除,移交单下的文件
parent
a89283a0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
1 deletion
+52
-1
Constants.java
.../java/com/inet/dcs/document/core/constants/Constants.java
+5
-0
ExtTransferDocumentController.java
...cument/core/controller/ExtTransferDocumentController.java
+7
-0
ExtTransferDocumentService.java
...dcs/document/core/service/ExtTransferDocumentService.java
+5
-0
ExtTransferDocumentServiceImpl.java
...ent/core/service/impl/ExtTransferDocumentServiceImpl.java
+35
-1
No files found.
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/constants/Constants.java
View file @
826e4d18
...
...
@@ -197,6 +197,11 @@ public class Constants {
*/
public
static
final
String
COMPLETED
=
"completed"
;
/**
* 移交单已完成
*/
public
static
final
String
COMPLETE
=
"Complete"
;
/**
* IED计划已完成
*/
...
...
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/controller/ExtTransferDocumentController.java
View file @
826e4d18
...
...
@@ -3,6 +3,7 @@ package com.inet.dcs.document.core.controller;
import
com.inet.dcs.document.common.vo.ExtTransferDocumentVO
;
import
com.inet.dcs.document.core.controller.shadow.ExtTransferDocumentControllerShadow
;
import
com.inet.dcs.document.core.service.ExtTransferDocumentService
;
import
com.yonde.dex.basedata.data.search.SearchQueryCondition
;
import
com.yonde.dex.basedata.entity.api.ApiResult
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -44,6 +45,12 @@ public class ExtTransferDocumentController<V extends ExtTransferDocumentVO, S ex
public
ApiResult
getTransferDocProjectById
(
@RequestParam
(
"id"
)
Long
id
)
{
return
ApiResult
.
ok
(
extTransferDocumentService
.
getTransferDocProjectById
(
id
));
}
@ApiOperation
(
value
=
"获取文档列表"
,
notes
=
"获取文档列表"
,
httpMethod
=
"POST"
)
@GetMapping
(
value
=
"/getDxDocumentList"
)
public
ApiResult
getDxDocumentList
(
@RequestBody
SearchQueryCondition
searchQueryCondition
)
{
return
ApiResult
.
ok
(
extTransferDocumentService
.
getDxDocumentList
(
searchQueryCondition
));
}
}
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/ExtTransferDocumentService.java
View file @
826e4d18
...
...
@@ -3,6 +3,9 @@ package com.inet.dcs.document.core.service;
import
com.inet.dcs.document.common.vo.ExtTransferDocumentVO
;
import
com.inet.dcs.document.common.vo.archivesOtherVO.ExtTransferDocProjectVO
;
import
com.inet.dcs.document.core.service.shadow.ExtTransferDocumentServiceShadow
;
import
com.yonde.dex.basedata.data.search.SearchQueryCondition
;
import
com.yonde.dex.basedata.entity.data.DxPageImpl
;
/**
* @description: ExtTransferDocument-service
* @author: dexadmin
...
...
@@ -16,4 +19,6 @@ public interface ExtTransferDocumentService<V extends ExtTransferDocumentVO> ext
void
updateExtFiles
(
ExtTransferDocumentVO
extTransferDocumentVO
);
ExtTransferDocProjectVO
getTransferDocProjectById
(
Long
id
);
DxPageImpl
getDxDocumentList
(
SearchQueryCondition
searchQueryCondition
);
}
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/impl/ExtTransferDocumentServiceImpl.java
View file @
826e4d18
...
...
@@ -10,6 +10,7 @@ import com.inet.dcs.document.core.service.ExtFilesDocLinkService;
import
com.inet.dcs.document.core.service.ExtFilesService
;
import
com.inet.dcs.document.core.service.ExtTransferDocLinkService
;
import
com.inet.dcs.document.core.service.ExtTransferDocumentService
;
import
com.inet.dcs.document.core.service.expand.ExtDxDocumentService
;
import
com.inet.dcs.document.core.util.SearchUtil
;
import
com.inet.dcs.document.entity.po.ExtTransferDocument
;
import
com.yonde.dex.basedata.data.search.SearchItem
;
...
...
@@ -19,6 +20,7 @@ import com.yonde.dex.basedata.entity.data.DxPageImpl;
import
com.yonde.dex.basedata.exception.DxBusinessException
;
import
com.yonde.dex.basic.feign.expand.ExtDxContextProjectServiceFeign
;
import
com.yonde.dex.context.common.vo.DxContextProjectVO
;
import
com.yonde.dex.dao.service.DxDaoPluginExpander
;
import
com.yonde.dex.wfc.feign.api.WfcProcessFeign
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections4.CollectionUtils
;
...
...
@@ -38,7 +40,7 @@ import java.util.stream.Collectors;
**/
@Slf4j
@Service
(
ExtTransferDocumentServiceImpl
.
BEAN_NAME
)
public
class
ExtTransferDocumentServiceImpl
<
V
extends
ExtTransferDocumentVO
>
implements
ExtTransferDocumentService
<
V
>
{
public
class
ExtTransferDocumentServiceImpl
<
V
extends
ExtTransferDocumentVO
>
implements
ExtTransferDocumentService
<
V
>
,
DxDaoPluginExpander
<
V
>
{
public
static
final
String
BEAN_NAME
=
"extTransferDocumentServiceImpl"
;
...
...
@@ -63,6 +65,17 @@ public class ExtTransferDocumentServiceImpl<V extends ExtTransferDocumentVO> imp
@Autowired
private
ExtDxContextProjectServiceFeign
extDxContextProjectServiceFeign
;
@Autowired
private
ExtDxDocumentService
extDxDocumentService
;
/* @Override
public void beforeSave(Collection<V> target) {
// 校验是否存在归档中文件
for (V v : target) {
target
}
}*/
@Override
public
ExtTransferDocumentVO
startWorkflow
(
Long
id
)
{
ExtTransferDocumentVO
extTransferDocumentVO
=
this
.
get
(
id
);
...
...
@@ -130,6 +143,27 @@ public class ExtTransferDocumentServiceImpl<V extends ExtTransferDocumentVO> imp
}
}
@Override
public
DxPageImpl
getDxDocumentList
(
SearchQueryCondition
searchQueryCondition
)
{
// 查询不是已完成状态的移交单文档
SearchQueryCondition
queryDoc
=
SearchQueryCondition
.
builder
()
.
openProp
(
SearchQueryCondition
.
builder
().
name
(
"source"
).
build
())
.
searchItems
(
SearchItems
.
builder
()
.
item
(
new
SearchItem
(
"target.state"
,
SearchItem
.
Operator
.
NEQ
,
Constants
.
COMPLETE
,
null
))
.
operator
(
SearchItems
.
BooleanOperator
.
AND
).
build
()).
build
();
List
<
ExtTransferDocLinkVO
>
transferDocLinkVOList
=
extTransferDocLinkService
.
findRecursion
(
queryDoc
).
getContent
();
// 从文档里面排除
if
(
CollectionUtils
.
isNotEmpty
(
transferDocLinkVOList
))
{
log
.
info
(
"transferDocLinkVOList.size={}"
,
transferDocLinkVOList
.
size
());
List
<
Long
>
sourceIds
=
transferDocLinkVOList
.
stream
().
map
(
ExtTransferDocLinkVO:
:
getSourceId
).
collect
(
Collectors
.
toList
());
SearchItem
searchItem
=
new
SearchItem
(
"id"
,
SearchItem
.
Operator
.
NOTIN
,
sourceIds
,
null
);
searchQueryCondition
.
getSearchItems
().
addItem
(
searchItem
);
}
return
extDxDocumentService
.
findRecursion
(
searchQueryCondition
);
}
private
void
saveFilesDocLink
(
List
<
ExtTransferDocLinkVO
>
transferDocLinkVOList
)
{
List
<
ExtFilesUpdateVO
>
extFilesUpdateVOList
=
Lists
.
newArrayList
();
for
(
ExtTransferDocLinkVO
extTransferDocLinkVO
:
transferDocLinkVOList
)
{
...
...
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