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
e0ce1399
Commit
e0ce1399
authored
Nov 07, 2024
by
wangyangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设计评审项:评审意见走完流程后 若是否手填意见为否,自动填充(加已-答复) 意见答复、落实情况、验证情况
parent
8d3a17fe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
6 deletions
+42
-6
ExtReviewFeedbackServiceImpl.java
...ument/core/service/impl/ExtReviewFeedbackServiceImpl.java
+42
-6
No files found.
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/impl/ExtReviewFeedbackServiceImpl.java
View file @
e0ce1399
package
com
.
inet
.
dcs
.
document
.
core
.
service
.
impl
;
package
com
.
inet
.
dcs
.
document
.
core
.
service
.
impl
;
import
cn.hutool.core.util.BooleanUtil
;
import
cn.hutool.core.util.StrUtil
;
import
com.inet.dcs.document.common.vo.ExtDesignReviewNoticeVO
;
import
com.inet.dcs.document.common.vo.ExtDesignReviewNoticeVO
;
import
com.inet.dcs.document.core.constants.Constants
;
import
com.inet.dcs.document.core.constants.Constants
;
import
com.yonde.dex.basedata.exception.DxBusinessException
;
import
com.yonde.dex.basedata.exception.DxBusinessException
;
import
com.yonde.dex.dao.service.DxDaoPluginExpander
;
import
com.yonde.dex.wfc.feign.api.WfcProcessFeign
;
import
com.yonde.dex.wfc.feign.api.WfcProcessFeign
;
import
org.checkerframework.checker.units.qual.C
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.List
;
import
com.inet.dcs.document.common.vo.ExtReviewFeedbackVO
;
import
com.inet.dcs.document.common.vo.ExtReviewFeedbackVO
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -16,17 +23,18 @@ import org.springframework.web.bind.annotation.*;
...
@@ -16,17 +23,18 @@ import org.springframework.web.bind.annotation.*;
import
com.inet.dcs.document.core.service.ExtReviewFeedbackService
;
import
com.inet.dcs.document.core.service.ExtReviewFeedbackService
;
import
com.inet.dcs.document.core.repository.ExtReviewFeedbackRepository
;
import
com.inet.dcs.document.core.repository.ExtReviewFeedbackRepository
;
import
com.inet.dcs.document.entity.po.ExtReviewFeedback
;
import
com.inet.dcs.document.entity.po.ExtReviewFeedback
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
/**
/**
* @description: ExtReviewFeedback-ServiceImpl
* @description: ExtReviewFeedback-ServiceImpl
* @author: dexadmin
* @author: dexadmin
* @version: V
* @version: V
* @date: 2024-10-29 16:36:01
* @date: 2024-10-29 16:36:01
**/
**/
@Slf4j
@Slf4j
@Service
(
ExtReviewFeedbackServiceImpl
.
BEAN_NAME
)
@Service
(
ExtReviewFeedbackServiceImpl
.
BEAN_NAME
)
public
class
ExtReviewFeedbackServiceImpl
<
V
extends
ExtReviewFeedbackVO
>
implements
ExtReviewFeedbackService
<
V
>{
public
class
ExtReviewFeedbackServiceImpl
<
V
extends
ExtReviewFeedbackVO
>
implements
ExtReviewFeedbackService
<
V
>
,
DxDaoPluginExpander
<
V
>
{
public
static
final
String
BEAN_NAME
=
"extReviewFeedbackServiceImpl"
;
public
static
final
String
BEAN_NAME
=
"extReviewFeedbackServiceImpl"
;
...
@@ -40,9 +48,37 @@ public class ExtReviewFeedbackServiceImpl<V extends ExtReviewFeedbackVO> impleme
...
@@ -40,9 +48,37 @@ public class ExtReviewFeedbackServiceImpl<V extends ExtReviewFeedbackVO> impleme
private
static
final
String
START_PROCESS_BY_KEY
=
"ExtReviewFeedbackWF"
;
private
static
final
String
START_PROCESS_BY_KEY
=
"ExtReviewFeedbackWF"
;
/**
* 如果意见反馈状态为 已发布 若意见答复、落实情况、验证情况无值,则自动填充前面加已
*
* @param target
* @param origin
*/
@Override
public
void
postUpdate
(
Collection
<
V
>
target
,
Collection
<
V
>
origin
)
{
for
(
ExtReviewFeedbackVO
v
:
target
)
{
//已发布
if
(
Constants
.
RELEASE
.
equalsIgnoreCase
(
v
.
getState
()))
{
if
(
BooleanUtil
.
isTrue
(
v
.
getIsHandOpinion
()))
{
if
(
StrUtil
.
isEmpty
(
v
.
getOpinionReply
()))
{
v
.
setOpinionReply
(
"已答复"
);
}
if
(
StrUtil
.
isEmpty
(
v
.
getWorkable
()))
{
v
.
setWorkable
(
"已落实"
);
}
if
(
StrUtil
.
isEmpty
(
v
.
getValidating
()))
{
v
.
setValidating
(
"已验证"
);
}
}
}
}
}
/**
/**
* 沟通确认后 在待审阅 pendingReview 节点启动流程(第一个节点) 先启动,后修改状态 审阅中 Reviewing
* 沟通确认后 在待审阅 pendingReview 节点启动流程(第一个节点) 先启动,后修改状态 审阅中 Reviewing
*
* @param id
* @param id
* @return
* @return
*/
*/
...
...
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