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
394aaeb0
Commit
394aaeb0
authored
Aug 20, 2024
by
wangqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug:创建文档时重新又启一新流程
parent
de24f3cd
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
6 deletions
+11
-6
DocumentEvent.java
...src/main/java/com/yonde/dcs/core/event/DocumentEvent.java
+6
-2
WorkContactListUtils.java
...java/com/yonde/dcs/core/factory/WorkContactListUtils.java
+1
-0
ExtAutoTaskServiceImpl.java
...m/yonde/dcs/core/service/impl/ExtAutoTaskServiceImpl.java
+1
-1
ExtDocServiceImpl.java
...va/com/yonde/dcs/core/service/impl/ExtDocServiceImpl.java
+2
-2
ProcessDataUtils.java
...c/main/java/com/yonde/dcs/core/util/ProcessDataUtils.java
+1
-1
No files found.
dcs-doc-expand-core/src/main/java/com/yonde/dcs/core/event/DocumentEvent.java
View file @
394aaeb0
...
...
@@ -118,13 +118,17 @@ public class DocumentEvent {
*/
public
void
updateDocListener
(
DxDocumentVO
documentVO
)
{
DxDocumentVO
docObjFileLinks
=
extDocUtil
.
findDocObjFileLinks
(
documentVO
.
getId
());
//20240820 将documentVO的状态重新赋值给docObjFileLinks,因为docObjFileLinks是从数据库中查询出的状态是待审阅,而documentVO的状态是审阅中,processUpdateData方法需要是审阅中才能执行。
docObjFileLinks
.
setState
(
documentVO
.
getState
());
processUpdateData
(
docObjFileLinks
);
String
subTypeName
=
documentVO
.
getSubTypeName
();
//处理过时文件通知单
if
(
Constants
.
OUTDATED_NOTIFY
.
equals
(
subTypeName
))
{
processDataUtils
.
processOutdatedDocNotify
(
docObjFileLinks
);
}
BeanUtils
.
copyProperties
(
docObjFileLinks
,
documentVO
);
// 修改bug,原BeanUtils.copyProperties(docObjFileLinks, documentVO)方法会将数据库中的状态覆盖了documentVO的状态,导致又启了一个新流程。
documentVO
.
setObjFileLinks
(
docObjFileLinks
.
getObjFileLinks
());
//BeanUtils.copyProperties(docObjFileLinks, documentVO);
}
/**
...
...
@@ -174,7 +178,7 @@ public class DocumentEvent {
String
outWordFilePath
=
Constants
.
MERGER_FILE_ABSOLUTE_PATH
+
documentVo
.
getSubTypeName
()
+
"\\"
+
documentVo
.
getNumber
()
+
"\\"
+
Constants
.
MERGER_SOURCE
+
"\\"
;
//生成特定的文档目录,保存生成的word文件
FileUtil
.
mkdir
(
outWordFilePath
);
Class
<?>
clazz
=
Class
.
forName
(
"com.
inet.pdm
.factory.InternalInterfaceUtils"
);
Class
<?>
clazz
=
Class
.
forName
(
"com.
yonde.dcs.core
.factory.InternalInterfaceUtils"
);
Method
settingDataMethod
=
clazz
.
getMethod
(
"settingData"
,
DxDocumentVO
.
class
,
ExtInterfaceInfoLinkVO
.
class
,
DxWfProcessInfoVO
.
class
);
JSONObject
jsonObject
=
(
JSONObject
)
settingDataMethod
.
invoke
(
SpringUtil
.
getBean
(
InternalInterfaceUtils
.
class
),
documentVo
,
infoLinkVO
,
wfProcessInfoVO
);
String
generateWordFilePath
=
FileUtils
.
generateWordFile
(
outWordFilePath
);
...
...
dcs-doc-expand-core/src/main/java/com/yonde/dcs/core/factory/WorkContactListUtils.java
View file @
394aaeb0
...
...
@@ -111,6 +111,7 @@ public class WorkContactListUtils {
//获取参与者
List
<
DxWfActivityVO
>
activities
=
wfProcessInfoVO
.
getActivityInfo
();
if
(!
CollectionUtils
.
isEmpty
(
activities
))
{
//todo wq 断点这里报空指针
//写入签名数据
jsonObject
.
put
(
"bz_photo"
,
extDocService
.
getSignImage
(
activities
,
SignConstants
.
SIGN_KEY_PREPARED
));
jsonObject
.
put
(
"bz_date"
,
extDocService
.
getEndDate
(
activities
,
SignConstants
.
SIGN_KEY_PREPARED
));
...
...
dcs-doc-expand-core/src/main/java/com/yonde/dcs/core/service/impl/ExtAutoTaskServiceImpl.java
View file @
394aaeb0
...
...
@@ -770,7 +770,7 @@ public class ExtAutoTaskServiceImpl implements ExtAutoTaskService {
if
(!
CollectionUtils
.
isEmpty
(
taskList
))
{
JSONObject
jsonObject
=
new
JSONObject
();
for
(
DxWfProcessTaskVO
wf
:
taskList
)
{
Class
<?>
clazz
=
Class
.
forName
(
"com.
inet.pdm
.factory.NCRSCUtils"
);
Class
<?>
clazz
=
Class
.
forName
(
"com.
yonde.dcs.core
.factory.NCRSCUtils"
);
Method
settingDataMethod
=
clazz
.
getMethod
(
"settingData"
,
DxDocumentVO
.
class
,
DxWfProcessTaskVO
.
class
,
JSONObject
.
class
);
jsonObject
=
(
JSONObject
)
settingDataMethod
.
invoke
(
SpringUtil
.
getBean
(
NCRSCUtils
.
class
),
documentVO
,
wf
,
jsonObject
);
}
...
...
dcs-doc-expand-core/src/main/java/com/yonde/dcs/core/service/impl/ExtDocServiceImpl.java
View file @
394aaeb0
...
...
@@ -729,7 +729,7 @@ public class ExtDocServiceImpl implements ExtDocService {
@Override
public
void
getDocWord
(
DxDocumentVO
documentVo
,
Class
classType
,
DxWfProcessInfoVO
wfProcessInfoVO
,
String
fileName
)
{
try
{
Class
<?>
clazz
=
Class
.
forName
(
"com.
inet.pdm
.factory."
+
documentVo
.
getSubTypeName
()
+
"Utils"
);
Class
<?>
clazz
=
Class
.
forName
(
"com.
yonde.dcs.core
.factory."
+
documentVo
.
getSubTypeName
()
+
"Utils"
);
Method
settingDataMethod
=
clazz
.
getMethod
(
"settingData"
,
DxDocumentVO
.
class
,
DxWfProcessInfoVO
.
class
);
settingDataMethod
.
invoke
(
SpringUtil
.
getBean
(
classType
),
documentVo
,
wfProcessInfoVO
);
log
.
info
(
"生成word文件内容结束===="
);
...
...
@@ -771,7 +771,7 @@ public class ExtDocServiceImpl implements ExtDocService {
@Override
public
void
generateDocWordSign
(
DxDocumentVO
documentVo
,
Class
classType
,
DxWfProcessInfoVO
wfProcessInfoVO
,
String
fileName
)
{
try
{
Class
<?>
clazz
=
Class
.
forName
(
"com.
inet.pdm
.factory."
+
documentVo
.
getSubTypeName
()
+
"Utils"
);
Class
<?>
clazz
=
Class
.
forName
(
"com.
yonde.dcs.core
.factory."
+
documentVo
.
getSubTypeName
()
+
"Utils"
);
Method
settingDataMethod
=
clazz
.
getMethod
(
"settingData"
,
DxDocumentVO
.
class
,
DxWfProcessInfoVO
.
class
);
settingDataMethod
.
invoke
(
SpringUtil
.
getBean
(
classType
),
documentVo
,
wfProcessInfoVO
);
log
.
info
(
"签名----生成word文件内容结束===="
);
...
...
dcs-doc-expand-core/src/main/java/com/yonde/dcs/core/util/ProcessDataUtils.java
View file @
394aaeb0
...
...
@@ -107,7 +107,7 @@ public class ProcessDataUtils {
String
outWordFilePath
=
Constants
.
MERGER_FILE_ABSOLUTE_PATH
+
documentVo
.
getSubTypeName
()
+
"\\"
+
documentVo
.
getNumber
()
+
"\\"
;
//生成特定的文档目录,保存生成的word文件
FileUtil
.
mkdir
(
outWordFilePath
);
Class
<?>
clazz
=
Class
.
forName
(
"com.
inet.pdm
.factory.InternalInterfaceUtils"
);
Class
<?>
clazz
=
Class
.
forName
(
"com.
yonde.dcs.core
.factory.InternalInterfaceUtils"
);
Method
settingDataMethod
=
clazz
.
getMethod
(
"settingData"
,
DxDocumentVO
.
class
,
ExtInterfaceInfoLinkVO
.
class
,
DxWfProcessInfoVO
.
class
);
JSONObject
jsonObject
=
(
JSONObject
)
settingDataMethod
.
invoke
(
SpringUtil
.
getBean
(
InternalInterfaceUtils
.
class
),
documentVo
,
infoLinkVO
,
wfProcessInfoVO
);
//生成word文件方法
...
...
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