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
f37a11b3
Commit
f37a11b3
authored
Oct 21, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文档提交审阅启动流程
parent
3f96fec0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
0 deletions
+39
-0
Constants.java
.../java/com/inet/dcs/document/core/constants/Constants.java
+6
-0
ExtDxDocumentController.java
...ument/core/controller/expand/ExtDxDocumentController.java
+6
-0
ExtDxDocumentService.java
...cs/document/core/service/expand/ExtDxDocumentService.java
+8
-0
ExtDxDocumentServiceImpl.java
...nt/core/service/impl/expand/ExtDxDocumentServiceImpl.java
+19
-0
No files found.
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/constants/Constants.java
View file @
f37a11b3
...
...
@@ -130,6 +130,12 @@ public class Constants {
* 编制
*/
public
static
final
String
EDIT
=
"edit"
;
/**
* 待审阅
*/
public
static
final
String
SUBMIT_REVIEWING
=
"submitReviewing"
;
/**
* 修改中
*/
...
...
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/controller/expand/ExtDxDocumentController.java
View file @
f37a11b3
...
...
@@ -34,6 +34,12 @@ public class ExtDxDocumentController<V extends DxDocumentVO, S extends ExtDxDocu
return
ApiResult
.
ok
(
service
.
getDocAndFolder
(
dxContextId
,
parentId
,
dxDocumentFolderId
),
"查询成功"
);
}
@ApiOperation
(
"发起审批流程"
)
@PostMapping
({
"startWorkflow"
})
public
ApiResult
startWorkflow
(
@RequestParam
(
"id"
)
Long
id
)
{
return
ApiResult
.
ok
(
service
.
startWorkflow
(
id
),
"操作完成"
);
}
//
// /**
// * 自动任务 这块弃用
...
...
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/expand/ExtDxDocumentService.java
View file @
f37a11b3
...
...
@@ -30,4 +30,12 @@ public interface ExtDxDocumentService<V extends DxDocumentVO> extends ExtDxDocum
* @return
*/
DxDocumentVO
generateCatalog
(
Long
docId
);
/**
* 流程启动
*
* @param id
* @return
*/
DxDocumentVO
startWorkflow
(
Long
id
);
}
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/impl/expand/ExtDxDocumentServiceImpl.java
View file @
f37a11b3
...
...
@@ -11,14 +11,17 @@ import com.inet.dcs.document.core.excel.ExtCatalogExcelVO;
import
com.inet.dcs.document.core.service.ExtDxDocumentFolderService
;
import
com.inet.dcs.document.core.service.expand.ExtDxDocumentService
;
import
com.inet.dcs.document.core.util.*
;
import
com.yonde.dcs.plan.common.vo.ExtSupplierManageVO
;
import
com.yonde.dex.basedata.data.search.SearchItem
;
import
com.yonde.dex.basedata.data.search.SearchItems
;
import
com.yonde.dex.basedata.data.search.SearchQueryBuilder
;
import
com.yonde.dex.basedata.data.search.SearchQueryCondition
;
import
com.yonde.dex.basedata.entity.data.DxPageImpl
;
import
com.yonde.dex.basedata.entity.data.OperatorType
;
import
com.yonde.dex.basedata.exception.DxBusinessException
;
import
com.yonde.dex.dfs.feign.FileManagerFeignService
;
import
com.yonde.dex.dfs.vo.RepoFileVO
;
import
com.yonde.dex.wfc.feign.api.WfcProcessFeign
;
import
lombok.SneakyThrows
;
import
org.springframework.mock.web.MockMultipartFile
;
import
org.springframework.stereotype.Service
;
...
...
@@ -59,6 +62,9 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe
@Autowired
private
FileManagerFeignService
fileManagerFeignService
;
@Autowired
private
WfcProcessFeign
wfcProcessFeign
;
@Override
public
void
beforeSave
(
Collection
<
V
>
target
)
{
for
(
V
v
:
target
)
{
...
...
@@ -81,6 +87,19 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe
}
}
@Override
public
DxDocumentVO
startWorkflow
(
Long
id
)
{
DxDocumentVO
dxDocumentVO
=
this
.
get
(
id
);
if
(
dxDocumentVO
==
null
)
{
throw
new
DxBusinessException
(
"500"
,
"获取不到对象"
);
}
if
(!
dxDocumentVO
.
getState
().
equals
(
"edit"
))
{
throw
new
DxBusinessException
(
"500"
,
"该对象不是编制状态"
);
}
wfcProcessFeign
.
startProcessByKey
(
"ExtDocWF"
,
dxDocumentVO
);
return
this
.
changeStatus
(
dxDocumentVO
.
getId
(),
Constants
.
SUBMIT_REVIEWING
,
true
);
}
@Override
public
Map
<
String
,
DxPageImpl
>
getDocAndFolder
(
Long
dxContextId
,
Long
parentId
,
Long
dxDocumentFolderId
)
{
Map
<
String
,
DxPageImpl
>
result
=
new
HashMap
<>();
...
...
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