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
320f43c6
Commit
320f43c6
authored
Nov 12, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
借阅模型
parent
abffb637
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
42 deletions
+44
-42
ExtBorrowingDocLinkVO.java
...om/inet/dcs/document/common/vo/ExtBorrowingDocLinkVO.java
+20
-42
WorkFlowUtil.java
...in/java/com/inet/dcs/document/core/util/WorkFlowUtil.java
+24
-0
No files found.
inet-doc-expand-common/src/main/java/com/inet/dcs/document/common/vo/ExtBorrowingDocLinkVO.java
View file @
320f43c6
package
com
.
inet
.
dcs
.
document
.
common
.
vo
;
package
com
.
inet
.
dcs
.
document
.
common
.
vo
;
import
javax.validation.constraints.NotBlank
;
import
java.util.Date
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
cn.hutool.core.convert.Convert
;
import
com.yonde.dex.basedata.entity.annotation.XmlElementProperty
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.annotation.JsonUnwrapped
;
import
lombok.ToString
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter
;
import
java.math.BigInteger
;
import
org.springframework.data.annotation.Transient
;
import
lombok.experimental.Delegate
;
import
javax.xml.bind.annotation.*
;
import
javax.xml.bind.annotation.XmlAttribute
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.EqualsAndHashCode
;
import
javax.validation.constraints.NotNull
;
import
java.util.List
;
import
com.fasterxml.jackson.annotation.JsonTypeInfo
;
import
com.fasterxml.jackson.annotation.JsonTypeInfo
;
import
com.yonde.dex.basedata.entity.xmladapters.LocalDateTimeXmlAdapter
;
import
com.yonde.dcs.document.common.entity.vo.DxDocumentVO
;
import
lombok.Data
;
import
com.yonde.dex.basedata.entity.annotation.DexEmbedded
;
import
com.yonde.dex.basedata.entity.annotation.*
;
import
com.yonde.dex.basedata.entity.annotation.DexTypeVersionProp
;
import
lombok.AllArgsConstructor
;
import
com.yonde.dex.basedata.entity.annotation.VersionProperty
;
import
lombok.NoArgsConstructor
;
import
com.yonde.dex.basedata.entity.vo.IdOnlyVO
;
import
cn.hutool.core.convert.Convert
;
import
cn.hutool.core.lang.TypeReference
;
import
com.yonde.dex.basedata.entity.data.VersionRelationType
;
import
com.yonde.dex.basedata.entity.data.VersionRelationType
;
import
com.yonde.dex.basedata.entity.vo.DxIdVOEmbeddable
;
import
com.yonde.dex.basedata.entity.vo.DxIdVOEmbeddable
;
import
com.yonde.dex.basedata.entity.vo.IdOnlyVO
;
import
com.yonde.dex.basedata.entity.vo.IdVO
;
import
com.yonde.dex.basedata.entity.vo.IdVO
;
import
com.yonde.dex.linkdata.plugin.common.DxLinkDataVOHolder
;
import
com.yonde.dex.linkdata.plugin.common.DxLinkDataVOEmbeddable
;
import
com.yonde.dex.linkdata.plugin.common.DxLinkDataVOEmbeddable
;
import
com.yonde.dcs.document.common.entity.vo.DxDocumentVO
;
import
com.yonde.dex.linkdata.plugin.common.DxLinkDataVOHolder
;
import
com.inet.dcs.document.common.vo.ExtBorrowingFormVO
;
import
lombok.Data
;
import
com.yonde.dex.basedata.entity.users.DxUserVO
;
import
lombok.EqualsAndHashCode
;
import
lombok.ToString
;
/**
/**
* @description: ExtBorrowingDocLink-VO
* @description: ExtBorrowingDocLink-VO
* @author: dexadmin
* @author: dexadmin
* @version: V
* @version: V
* @date: 2024-10-29 15:52:00
* @date: 2024-10-29 15:52:00
**/
**/
@JsonTypeInfo
(
use
=
JsonTypeInfo
.
Id
.
CLASS
,
property
=
"dxClassname"
,
visible
=
true
,
defaultImpl
=
ExtBorrowingDocLinkVO
.
class
)
@JsonTypeInfo
(
use
=
JsonTypeInfo
.
Id
.
CLASS
,
property
=
"dxClassname"
,
visible
=
true
,
defaultImpl
=
ExtBorrowingDocLinkVO
.
class
)
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Data
@Data
@ToString
(
callSuper
=
true
)
@ToString
(
callSuper
=
true
)
@DexTypeVersionProp
(
propName
=
"target"
,
join
=
@VersionProperty
(
curVersion
=
VersionRelationType
.
NONE
,
refVersion
=
VersionRelationType
.
ITERATION
))
@DexTypeVersionProp
(
propName
=
"target"
,
join
=
@VersionProperty
(
curVersion
=
VersionRelationType
.
NONE
,
refVersion
=
VersionRelationType
.
ITERATION
))
@DexTypeVersionProp
(
propName
=
"source"
,
join
=
@VersionProperty
(
curVersion
=
VersionRelationType
.
NONE
,
refVersion
=
VersionRelationType
.
ITERATION
))
@DexTypeVersionProp
(
propName
=
"source"
,
join
=
@VersionProperty
(
curVersion
=
VersionRelationType
.
NONE
,
refVersion
=
VersionRelationType
.
ITERATION
))
public
class
ExtBorrowingDocLinkVO
extends
IdOnlyVO
implements
DxLinkDataVOHolder
<
DxDocumentVO
,
ExtBorrowingFormVO
>
,
IdVO
{
public
class
ExtBorrowingDocLinkVO
extends
IdOnlyVO
implements
DxLinkDataVOHolder
<
DxDocumentVO
,
ExtBorrowingFormVO
>
,
IdVO
{
public
static
final
String
DX_ID_EMBEDDABLE_PROP_NAME
=
"dxIdEmbeddable"
;
public
static
final
String
DX_ID_EMBEDDABLE_PROP_NAME
=
"dxIdEmbeddable"
;
public
static
final
String
DX_LINK_DATA_EMBEDDABLE_PROP_NAME
=
"dxLinkDataEmbeddable"
;
public
static
final
String
DX_LINK_DATA_EMBEDDABLE_PROP_NAME
=
"dxLinkDataEmbeddable"
;
...
...
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/util/WorkFlowUtil.java
View file @
320f43c6
package
com
.
inet
.
dcs
.
document
.
core
.
util
;
package
com
.
inet
.
dcs
.
document
.
core
.
util
;
import
com.inet.dcs.document.common.vo.ExtBorrowingFormVO
;
import
com.inet.dcs.document.core.constants.SignConstants
;
import
com.inet.dcs.document.core.constants.SignConstants
;
import
com.yonde.dcs.document.common.entity.vo.DxDocumentVO
;
import
com.yonde.dcs.document.common.entity.vo.DxDocumentVO
;
import
com.yonde.dex.user.common.vo.DxUserInfoVO
;
import
com.yonde.dex.user.common.vo.DxUserInfoVO
;
...
@@ -85,6 +86,29 @@ public class WorkFlowUtil {
...
@@ -85,6 +86,29 @@ public class WorkFlowUtil {
return
null
;
return
null
;
}
}
/**
* 获取流程实例
*
* @param extBorrowingFormVO
* @return
*/
// TODO: xpc WfProcessInstVO不存在改为DxWfProcessVO
public
DxWfProcessVO
getWfProcessInst
(
ExtBorrowingFormVO
extBorrowingFormVO
)
{
// TODO: getProcessInstList方法不存在改为getProcessList
// WfProcessInstSearchVO wfProcessInstSearchVO = new WfProcessInstSearchVO();
// wfProcessInstSearchVO.setPboClass(DxDocumentVO.class.getName());
// wfProcessInstSearchVO.setPboId(doc.getVersionId());
// Page<WfProcessInstVO> wfProcessInstVOPage = this.instanceService.getProcessInstList(wfProcessInstSearchVO, 1, 10);
DxWfProcessSearchVO
dxWfProcessSearchVO
=
new
DxWfProcessSearchVO
();
dxWfProcessSearchVO
.
setPboClass
(
ExtBorrowingFormVO
.
class
.
getName
());
dxWfProcessSearchVO
.
setPboId
(
extBorrowingFormVO
.
getId
());
Page
<
DxWfProcessVO
>
processList
=
wfcProcessFeign
.
getProcessList
(
dxWfProcessSearchVO
,
1
,
10
);
if
(!
CollectionUtils
.
isEmpty
(
processList
.
getContent
()))
{
return
processList
.
getContent
().
get
(
0
);
}
return
null
;
}
/**
/**
* 通过pbo获取流程实例签审详情信息
* 通过pbo获取流程实例签审详情信息
*
*
...
...
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