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
3c6d0655
Commit
3c6d0655
authored
Aug 22, 2024
by
wangqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交测试代码(添加附件)
parent
2df238f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
ExtDxDocumentServiceImpl.java
...cs/core/service/impl/expand/ExtDxDocumentServiceImpl.java
+10
-2
No files found.
dcs-doc-expand-core/src/main/java/com/yonde/dcs/core/service/impl/expand/ExtDxDocumentServiceImpl.java
View file @
3c6d0655
...
@@ -4,12 +4,16 @@ import com.yonde.dcs.core.constants.Constants;
...
@@ -4,12 +4,16 @@ import com.yonde.dcs.core.constants.Constants;
import
com.yonde.dcs.core.event.DocumentEvent
;
import
com.yonde.dcs.core.event.DocumentEvent
;
import
com.yonde.dcs.core.util.ProcessDataUtils
;
import
com.yonde.dcs.core.util.ProcessDataUtils
;
import
com.yonde.dcs.core.util.ExtDocUtil
;
import
com.yonde.dcs.core.util.ExtDocUtil
;
import
com.yonde.dex.basedata.entity.data.OperatorType
;
import
com.yonde.dex.basedata.exception.DxBusinessException
;
import
com.yonde.dex.basedata.exception.DxBusinessException
;
import
com.yonde.dex.dfs.vo.ObjFileLinkVO
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.logging.log4j.spi.CopyOnWrite
;
import
org.apache.logging.log4j.spi.CopyOnWrite
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.lang.reflect.Array
;
import
java.util.Arrays
;
import
java.util.Collection
;
import
java.util.Collection
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -46,15 +50,19 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe
...
@@ -46,15 +50,19 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe
public
void
beforeSave
(
Collection
<
V
>
target
)
{
public
void
beforeSave
(
Collection
<
V
>
target
)
{
for
(
V
v
:
target
)
{
for
(
V
v
:
target
)
{
documentEvent
.
createDocListener
(
v
);
documentEvent
.
createDocListener
(
v
);
ObjFileLinkVO
linkVO
=
new
ObjFileLinkVO
();
linkVO
.
setTargetId
(
2L
);
linkVO
.
setOperator
(
OperatorType
.
ADD
);
v
.
setObjFileLinks
(
Arrays
.
asList
(
linkVO
));
}
}
super
.
beforeSave
(
target
);
//
super.beforeSave(target);
}
}
@Override
@Override
public
void
beforeUpdate
(
Collection
<
V
>
target
,
Collection
<
V
>
origin
)
{
public
void
beforeUpdate
(
Collection
<
V
>
target
,
Collection
<
V
>
origin
)
{
for
(
V
v
:
target
)
{
for
(
V
v
:
target
)
{
documentEvent
.
updateDocListener
(
v
);
documentEvent
.
updateDocListener
(
v
);
}
}
super
.
beforeUpdate
(
target
,
origin
);
//
super.beforeUpdate(target,origin);
}
}
}
}
...
...
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