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
26ea6622
Commit
26ea6622
authored
Sep 24, 2021
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:修改防火监督审核流程
parent
c25e4999
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
PlanAuditController.java
.../supervision/business/controller/PlanAuditController.java
+0
-2
PlanAuditServiceImpl.java
...pervision/business/service/impl/PlanAuditServiceImpl.java
+4
-4
PlanServiceImpl.java
...os/supervision/business/service/impl/PlanServiceImpl.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/controller/PlanAuditController.java
View file @
26ea6622
package
com
.
yeejoin
.
amos
.
supervision
.
business
.
controller
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.supervision.business.service.intfc.IPlanAuditService
;
import
com.yeejoin.amos.supervision.business.util.CommonResponse
;
import
com.yeejoin.amos.supervision.business.util.CommonResponseUtil
;
...
...
@@ -33,7 +32,6 @@ public class PlanAuditController extends AbstractBaseController {
@ApiParam
(
value
=
"工作流流水实例"
,
required
=
true
)
@RequestBody
PlanAuditLog
planAuditLog
,
@ApiParam
(
value
=
"执行控制条件"
,
required
=
true
)
@RequestParam
String
condition
)
{
try
{
AgencyUserModel
userInfo
=
getUserInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
return
CommonResponseUtil
.
success
(
planAuditService
.
auditWorkFlow
(
planAuditLog
,
condition
,
reginParams
));
}
catch
(
Exception
e
)
{
...
...
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 @
26ea6622
...
...
@@ -36,12 +36,12 @@ public class PlanAuditServiceImpl implements IPlanAuditService {
PlanAudit
planAudit
=
planAuditDao
.
findByPlanId
(
planAuditLog
.
getPlanId
());
if
(
ObjectUtils
.
isNotEmpty
(
planAudit
))
{
String
instanceId
=
planAudit
.
getProcessInstanceId
();
Map
<
String
,
Object
>
taskAuthMap
=
workflowExcuteService
.
checkTaskAuthMap
(
instanceId
);
Map
<
String
,
Object
>
taskAuthMap
=
workflowExcuteService
.
checkTaskAuthMap
(
instanceId
,
reginParams
);
if
(
taskAuthMap
!=
null
&&
!
taskAuthMap
.
isEmpty
())
{
String
taskId
=
taskAuthMap
.
get
(
"taskId"
).
toString
();
String
name
=
taskAuthMap
.
get
(
"name"
).
toString
();
String
taskId
=
taskAuthMap
.
get
(
"taskId"
)
==
null
?
null
:
taskAuthMap
.
get
(
"taskId"
)
.
toString
();
String
name
=
taskAuthMap
.
get
(
"name"
)
==
null
?
null
:
taskAuthMap
.
get
(
"name"
)
.
toString
();
String
roleName
=
reginParams
.
getRole
().
getRoleName
();
boolean
b
=
workflowExcuteService
.
CompleteTask
(
instanceId
,
condition
);
boolean
b
=
workflowExcuteService
.
CompleteTask
(
instanceId
,
condition
,
reginParams
);
if
(
b
)
{
ReginParams
.
PersonIdentity
personIdentity
=
reginParams
.
getPersonIdentity
();
workflowExcuteService
.
setTaskAssign
(
instanceId
,
personIdentity
.
getPersonSeq
());
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/impl/PlanServiceImpl.java
View file @
26ea6622
...
...
@@ -142,7 +142,7 @@ public class PlanServiceImpl implements IPlanService {
if
(
"1"
.
equals
(
checkTypeId
))
{
processInstanceId
=
workflowExcuteService
.
startAndComplete
(
processDefinitionKey
,
CheckTypeSuEnum
.
SUPERVISED
.
getCondition
());
}
else
if
(
"2"
.
equals
(
checkTypeId
))
{
processInstanceId
=
workflowExcuteService
.
startAndComplete
(
processDefinitionKey
,
CheckTypeSuEnum
.
SUPERVISED
.
getCondition
());
processInstanceId
=
workflowExcuteService
.
startAndComplete
(
processDefinitionKey
,
CheckTypeSuEnum
.
DAILY
.
getCondition
());
}
PlanAudit
audit
=
new
PlanAudit
();
audit
.
setPlanId
(
param
.
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