Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
ca08556b
Commit
ca08556b
authored
Mar 21, 2022
by
chenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug : 5139
parent
8a5d7637
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
PlanAuditServiceImpl.java
...pervision/business/service/impl/PlanAuditServiceImpl.java
+4
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/impl/PlanAuditServiceImpl.java
View file @
ca08556b
...
@@ -27,6 +27,7 @@ import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
...
@@ -27,6 +27,7 @@ import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Optional
;
@Service
(
"planAuditService"
)
@Service
(
"planAuditService"
)
public
class
PlanAuditServiceImpl
implements
IPlanAuditService
{
public
class
PlanAuditServiceImpl
implements
IPlanAuditService
{
...
@@ -61,7 +62,8 @@ public class PlanAuditServiceImpl implements IPlanAuditService {
...
@@ -61,7 +62,8 @@ public class PlanAuditServiceImpl implements IPlanAuditService {
Map
<
String
,
Object
>
taskAuthMap
=
workflowExcuteService
.
checkTaskAuthMap
(
instanceId
,
reginParams
);
Map
<
String
,
Object
>
taskAuthMap
=
workflowExcuteService
.
checkTaskAuthMap
(
instanceId
,
reginParams
);
if
(
taskAuthMap
!=
null
&&
!
taskAuthMap
.
isEmpty
())
{
if
(
taskAuthMap
!=
null
&&
!
taskAuthMap
.
isEmpty
())
{
// 获取当前计划
// 获取当前计划
Plan
plan
=
planDao
.
getOne
(
planAuditLog
.
getPlanId
());
Optional
<
Plan
>
planEntity
=
planDao
.
findById
(
planAuditLog
.
getPlanId
());
Plan
plan
=
planEntity
.
get
();
String
taskId
=
taskAuthMap
.
get
(
"taskId"
)
==
null
?
null
:
taskAuthMap
.
get
(
"taskId"
).
toString
();
String
taskId
=
taskAuthMap
.
get
(
"taskId"
)
==
null
?
null
:
taskAuthMap
.
get
(
"taskId"
).
toString
();
String
name
=
taskAuthMap
.
get
(
"name"
)
==
null
?
null
:
taskAuthMap
.
get
(
"name"
).
toString
();
String
name
=
taskAuthMap
.
get
(
"name"
)
==
null
?
null
:
taskAuthMap
.
get
(
"name"
).
toString
();
String
roleName
=
reginParams
.
getRole
().
getRoleName
();
String
roleName
=
reginParams
.
getRole
().
getRoleName
();
...
@@ -139,7 +141,7 @@ public class PlanAuditServiceImpl implements IPlanAuditService {
...
@@ -139,7 +141,7 @@ public class PlanAuditServiceImpl implements IPlanAuditService {
workflowExcuteService
.
setTaskAssign
(
instanceId
,
checkLeaderId
);
workflowExcuteService
.
setTaskAssign
(
instanceId
,
checkLeaderId
);
}
}
int
status
=
statusEnum
!=
null
?
statusEnum
.
getNextStatus
()
:
PlanStatusEnum
.
DRAFT
.
getValue
();
int
status
=
statusEnum
!=
null
?
statusEnum
.
getNextStatus
()
:
PlanStatusEnum
.
DRAFT
.
getValue
();
if
(
nextCondition
.
equals
(
conditionValue
)
&&
PlanStatusEnum
.
EXAMINE_THREE
.
get
Value
()
==
status
)
{
if
(
nextCondition
.
equals
(
conditionValue
)
&&
PlanStatusEnum
.
EXAMINE_THREE
.
get
NextStatus
()
==
status
)
{
status
=
PlanStatusEnum
.
IN_EXECUTION
.
getValue
();
status
=
PlanStatusEnum
.
IN_EXECUTION
.
getValue
();
}
}
planDao
.
updatePlanStatus
(
status
,
plan
.
getId
());
planDao
.
updatePlanStatus
(
status
,
plan
.
getId
());
...
...
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