Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dcs-plan
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-plan
Commits
9a6cb81f
Commit
9a6cb81f
authored
Nov 07, 2024
by
wangqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
记录行动项实际完成时间,任务启动时间、任务启动人
parent
cae43939
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
3 deletions
+35
-3
Constants.java
...n/java/com/yonde/dcs/plan/common/constants/Constants.java
+5
-1
ExtActionItemServiceImpl.java
.../dcs/plan/core/service/impl/ExtActionItemServiceImpl.java
+22
-2
ExtQuarterlyReportServiceImpl.java
...plan/core/service/impl/ExtQuarterlyReportServiceImpl.java
+8
-0
No files found.
dcs-plan-common/src/main/java/com/yonde/dcs/plan/common/constants/Constants.java
View file @
9a6cb81f
...
...
@@ -179,7 +179,7 @@ public class Constants {
*/
public
static
final
String
COMPLETED
=
"completed"
;
/**
* 已完成
* 已完成
--4.0
*/
public
static
final
String
COMPLETE
=
"Complete"
;
...
...
@@ -402,6 +402,10 @@ public class Constants {
* 已答复
*/
public
static
final
String
ANSWERED
=
"answered"
;
/**
* 进行中
*/
public
static
final
String
INPROGRESS
=
"InProgress"
;
/**
* 状态:信息收集中
...
...
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtActionItemServiceImpl.java
View file @
9a6cb81f
...
...
@@ -15,6 +15,8 @@ import com.yonde.dex.basedata.entity.api.ApiResult;
import
com.yonde.dex.basedata.entity.data.DxPageImpl
;
import
com.yonde.dex.basedata.entity.vo.IdVO
;
import
com.yonde.dex.basedata.exception.DxBusinessException
;
import
com.yonde.dex.dao.events.DaoBasePluginEvent
;
import
com.yonde.dex.dao.service.DxDaoPluginExpander
;
import
io.swagger.annotations.Api
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -22,6 +24,9 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.ObjectUtils
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.util.Collection
;
import
java.util.List
;
/**
...
...
@@ -32,7 +37,7 @@ import java.util.List;
**/
@Slf4j
@Service
(
ExtActionItemServiceImpl
.
BEAN_NAME
)
public
class
ExtActionItemServiceImpl
<
V
extends
ExtActionItemVO
>
implements
ExtActionItemService
<
V
>
{
public
class
ExtActionItemServiceImpl
<
V
extends
ExtActionItemVO
>
implements
ExtActionItemService
<
V
>
,
DxDaoPluginExpander
<
V
>
{
public
static
final
String
BEAN_NAME
=
"extActionItemServiceImpl"
;
...
...
@@ -46,9 +51,9 @@ public class ExtActionItemServiceImpl<V extends ExtActionItemVO> implements ExtA
@Override
public
String
changeQRStateWhenAllActionItemIsDone
(
ExtActionItemVO
extActionItemVO
)
{
//行动项所有是否已完成标识符
Boolean
allActionItemIsCompleteFlag
=
false
;
//根据行动项id查询季报
SearchQueryCondition
query
=
SearchQueryCondition
.
builder
()
.
openProp
(
SearchQueryCondition
.
builder
().
name
(
"extQuarterlyReport"
)
...
...
@@ -69,6 +74,21 @@ public class ExtActionItemServiceImpl<V extends ExtActionItemVO> implements ExtA
return
ApiResult
.
SUCCESS
;
}
/**
* 在状态已完成时,设置一下实际完成时间
* @param target
* @param origin
*/
@Override
public
void
beforeUpdate
(
Collection
<
V
>
target
,
Collection
<
V
>
origin
)
{
//在状态已完成时,设置一下实际完成时间
for
(
V
v
:
target
)
{
if
(
Constants
.
COMPLETE
.
equals
(
v
.
getState
()))
{
// 设置已完成时间
v
.
setRealCompleteTime
(
LocalDateTime
.
now
());
}
}
}
}
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtQuarterlyReportServiceImpl.java
View file @
9a6cb81f
...
...
@@ -9,6 +9,7 @@ import com.yonde.dcs.plan.common.utils.SearchUtil;
import
com.yonde.dcs.plan.common.vo.ExtActionItemVO
;
import
com.yonde.dcs.plan.common.vo.ExtQuarterlyReportVO
;
import
com.yonde.dcs.plan.core.repository.ExtQuarterlyReportRepository
;
import
com.yonde.dcs.plan.core.service.ExtActionItemService
;
import
com.yonde.dcs.plan.core.service.ExtQuarterlyReportService
;
import
com.yonde.dcs.plan.entity.po.ExtQuarterlyReport
;
import
com.yonde.dex.basedata.data.search.SearchItem
;
...
...
@@ -53,6 +54,8 @@ public class ExtQuarterlyReportServiceImpl<V extends ExtQuarterlyReportVO> imple
@Autowired
ExtQuarterlyReportRepository
<
ExtQuarterlyReport
>
extQuarterlyReportRepository
;
@Autowired
private
ExtActionItemService
extActionItemService
;
@Autowired
private
FileManagerFeignService
fileManagerService
;
...
...
@@ -122,10 +125,15 @@ public class ExtQuarterlyReportServiceImpl<V extends ExtQuarterlyReportVO> imple
}
//批量启动行动项工作流
for
(
ExtActionItemVO
extActionItemVO
:
extQuarterlyReportVO
.
getExtActionItems
())
{
//更新行动项状态(进行中) --未发送--进行中--审核中---已完成
//任务启动时间
extActionItemVO
.
setTaskReleaseDate
(
LocalDateTime
.
now
());
//任务发布人
extActionItemVO
.
setTaskReleasePersonId
(
userHelper
.
getCurrentUser
().
getUserId
());
//设置状态未“进行中”
extActionItemVO
.
setState
(
Constants
.
INPROGRESS
);
extActionItemService
.
update
(
extActionItemVO
);
//启动行动项工作流
wfcProcessFeign
.
startProcessByKey
(
"ExtActionItemWF"
,
extActionItemVO
);
}
//修改季报的状态未信息收集中
...
...
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