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
59c2174b
Commit
59c2174b
authored
Oct 22, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会议纪要,外部收文
parent
66253206
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
13 deletions
+61
-13
Constants.java
.../java/com/inet/dcs/document/core/constants/Constants.java
+14
-0
ExtDxDocumentServiceImpl.java
...nt/core/service/impl/expand/ExtDxDocumentServiceImpl.java
+47
-13
No files found.
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/constants/Constants.java
View file @
59c2174b
...
@@ -516,4 +516,18 @@ public class Constants {
...
@@ -516,4 +516,18 @@ public class Constants {
put
(
"DesignReview"
,
"设计评审和确认"
);
put
(
"DesignReview"
,
"设计评审和确认"
);
put
(
"DesignInterface"
,
"设计接口"
);
put
(
"DesignInterface"
,
"设计接口"
);
}};
}};
/**
* 会议纪要流程模板
*/
public
static
final
Map
<
String
,
String
>
MINUTES_MEETING_MAP
=
new
HashMap
<
String
,
String
>()
{{
put
(
"MinutesMeeting"
,
"会议纪要"
);
}};
/**
* 外部收文流程模板
*/
public
static
final
Map
<
String
,
String
>
INCOMING_DISPATCHES_MAP
=
new
HashMap
<
String
,
String
>()
{{
put
(
"IncomingDispatches"
,
"外部收文"
);
}};
}
}
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/impl/expand/ExtDxDocumentServiceImpl.java
View file @
59c2174b
...
@@ -11,7 +11,10 @@ import com.inet.dcs.document.core.excel.ExtCatalogExcelVO;
...
@@ -11,7 +11,10 @@ import com.inet.dcs.document.core.excel.ExtCatalogExcelVO;
import
com.inet.dcs.document.core.service.ExtDxDocumentFolderService
;
import
com.inet.dcs.document.core.service.ExtDxDocumentFolderService
;
import
com.inet.dcs.document.core.service.expand.ExtDxDocumentService
;
import
com.inet.dcs.document.core.service.expand.ExtDxDocumentService
;
import
com.inet.dcs.document.core.util.*
;
import
com.inet.dcs.document.core.util.*
;
import
com.yonde.dcs.plan.common.vo.ExtSupplierManageVO
;
import
com.yonde.dcs.document.common.entity.vo.DxDocumentVO
;
import
com.yonde.dcs.document.core.repository.DocumentRepository
;
import
com.yonde.dcs.document.core.service.impl.DocumentServiceImpl
;
import
com.yonde.dcs.document.entity.po.DxDocument
;
import
com.yonde.dex.basedata.data.search.SearchItem
;
import
com.yonde.dex.basedata.data.search.SearchItem
;
import
com.yonde.dex.basedata.data.search.SearchItems
;
import
com.yonde.dex.basedata.data.search.SearchItems
;
import
com.yonde.dex.basedata.data.search.SearchQueryBuilder
;
import
com.yonde.dex.basedata.data.search.SearchQueryBuilder
;
...
@@ -23,21 +26,17 @@ import com.yonde.dex.dfs.feign.FileManagerFeignService;
...
@@ -23,21 +26,17 @@ import com.yonde.dex.dfs.feign.FileManagerFeignService;
import
com.yonde.dex.dfs.vo.RepoFileVO
;
import
com.yonde.dex.dfs.vo.RepoFileVO
;
import
com.yonde.dex.wfc.feign.api.WfcProcessFeign
;
import
com.yonde.dex.wfc.feign.api.WfcProcessFeign
;
import
lombok.SneakyThrows
;
import
lombok.SneakyThrows
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.mock.web.MockMultipartFile
;
import
org.springframework.mock.web.MockMultipartFile
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.web.multipart.MultipartFile
;
import
java.io.File
;
import
java.io.File
;
import
java.io.FileInputStream
;
import
java.io.FileInputStream
;
import
java.util.*
;
import
java.util.*
;
import
com.yonde.dcs.document.common.entity.vo.DxDocumentVO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
lombok.extern.slf4j.Slf4j
;
import
com.yonde.dcs.document.core.repository.DocumentRepository
;
import
com.yonde.dcs.document.entity.po.DxDocument
;
import
com.yonde.dcs.document.core.service.impl.DocumentServiceImpl
;
import
org.springframework.web.multipart.MultipartFile
;
/**
/**
* @description: DxDocument-ServiceImpl
* @description: DxDocument-ServiceImpl
* @author: dexadmin
* @author: dexadmin
...
@@ -50,7 +49,6 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe
...
@@ -50,7 +49,6 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe
public
static
final
String
BEAN_NAME
=
"documentServiceImpl"
;
public
static
final
String
BEAN_NAME
=
"documentServiceImpl"
;
public
static
final
String
EXT_DOC_WF
=
"ExtDocWF"
;
@Autowired
@Autowired
private
ExtDxDocumentFolderService
dxDocumentFolderService
;
private
ExtDxDocumentFolderService
dxDocumentFolderService
;
...
@@ -98,14 +96,50 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe
...
@@ -98,14 +96,50 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe
throw
new
DxBusinessException
(
"500"
,
"该对象不是编制状态"
);
throw
new
DxBusinessException
(
"500"
,
"该对象不是编制状态"
);
}
}
String
subTypeName
=
dxDocumentVO
.
getSubTypeName
();
String
subTypeName
=
dxDocumentVO
.
getSubTypeName
();
String
processDefKey
=
""
;
String
processDefKey
=
this
.
getProcessDefKey
(
subTypeName
);
if
(
Constants
.
EXT_DOC_WF_MAP
.
containsKey
(
subTypeName
))
{
log
.
info
(
"startWorkflow.processDefKey:{}"
,
processDefKey
);
processDefKey
=
EXT_DOC_WF
;
if
(
StringUtils
.
isBlank
(
processDefKey
))
{
throw
new
DxBusinessException
(
"500"
,
"该对象没有配置流程模板"
);
}
}
wfcProcessFeign
.
startProcessByKey
(
processDefKey
,
dxDocumentVO
);
wfcProcessFeign
.
startProcessByKey
(
processDefKey
,
dxDocumentVO
);
return
this
.
changeStatus
(
dxDocumentVO
.
getId
(),
Constants
.
SUBMIT_REVIEWING
,
true
);
return
this
.
changeStatus
(
dxDocumentVO
.
getId
(),
Constants
.
SUBMIT_REVIEWING
,
true
);
}
}
private
String
getProcessDefKey
(
String
subTypeName
)
{
log
.
info
(
"getProcessDefKey.subTypeName:{}"
,
subTypeName
);
if
(
Constants
.
EXT_DOC_WF_MAP
.
containsKey
(
subTypeName
))
{
return
"ExtDocWF"
;
}
if
(
Constants
.
MINUTES_MEETING_MAP
.
containsKey
(
subTypeName
))
{
return
"meetingWF"
;
}
if
(
Constants
.
INCOMING_DISPATCHES_MAP
.
containsKey
(
subTypeName
))
{
return
"IncomingDispatchesWF"
;
}
if
(
Constants
.
EXT_DOC_WF_MAP
.
containsKey
(
subTypeName
))
{
return
"ExtDocWF"
;
}
if
(
Constants
.
EXT_DOC_WF_MAP
.
containsKey
(
subTypeName
))
{
return
"ExtDocWF"
;
}
if
(
Constants
.
EXT_DOC_WF_MAP
.
containsKey
(
subTypeName
))
{
return
"ExtDocWF"
;
}
if
(
Constants
.
EXT_DOC_WF_MAP
.
containsKey
(
subTypeName
))
{
return
"ExtDocWF"
;
}
if
(
Constants
.
EXT_DOC_WF_MAP
.
containsKey
(
subTypeName
))
{
return
"ExtDocWF"
;
}
if
(
Constants
.
EXT_DOC_WF_MAP
.
containsKey
(
subTypeName
))
{
return
"ExtDocWF"
;
}
if
(
Constants
.
EXT_DOC_WF_MAP
.
containsKey
(
subTypeName
))
{
return
"ExtDocWF"
;
}
return
null
;
}
@Override
@Override
public
Map
<
String
,
DxPageImpl
>
getDocAndFolder
(
Long
dxContextId
,
Long
parentId
,
Long
dxDocumentFolderId
)
{
public
Map
<
String
,
DxPageImpl
>
getDocAndFolder
(
Long
dxContextId
,
Long
parentId
,
Long
dxDocumentFolderId
)
{
Map
<
String
,
DxPageImpl
>
result
=
new
HashMap
<>();
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