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
06613fbd
Commit
06613fbd
authored
Mar 20, 2023
by
zhangyingbin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://39.98.45.134:8090/moa/amos-boot-biz
into developer
parents
61e7abe8
12c6aa56
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
4 deletions
+23
-4
OverProjectFlowEnum.java
...in/amos/boot/module/ugp/api/Enum/OverProjectFlowEnum.java
+2
-2
ProjectInitiationServiceImpl.java
...le/ugp/biz/service/impl/ProjectInitiationServiceImpl.java
+21
-2
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/Enum/OverProjectFlowEnum.java
View file @
06613fbd
...
@@ -11,8 +11,8 @@ import java.util.Map;
...
@@ -11,8 +11,8 @@ import java.util.Map;
public
enum
OverProjectFlowEnum
{
public
enum
OverProjectFlowEnum
{
竣工资料上传确认
(
"1"
,
"竣工资料上传确认"
,
"ZLSCQR"
,
"竣工资料上传待确认"
,
"审核确认"
,
"待确认"
),
竣工资料上传确认
(
"1"
,
"竣工资料上传确认"
,
"ZLSCQR"
,
"竣工资料上传待确认"
,
"审核确认"
,
"待确认"
),
上传竣工资料
(
"2"
,
"上传竣工资料"
,
"SCJGZL"
,
"竣工资料待上传"
,
"竣工资料上传"
,
"待上传"
),
上传竣工资料
(
"2"
,
"上传竣工资料"
,
"SCJGZL"
,
"竣工资料待上传"
,
"竣工资料上传"
,
"待上传"
),
竣工资料审核并填写审核意见
(
"3"
,
"竣工资料审核并填写审核意见"
,
"JGZLSH"
,
"竣工资料待审核"
,
"竣工资料审核"
,
"待审核"
)
;
竣工资料审核并填写审核意见
(
"3"
,
"竣工资料审核并填写审核意见"
,
"JGZLSH"
,
"竣工资料待审核"
,
"竣工资料审核"
,
"待审核"
)
,
竣工流程结束
(
"4"
,
"竣工流程结束!"
,
"JGLCJS"
,
"项目已竣工"
,
""
,
""
);
private
final
String
status
;
private
final
String
status
;
private
final
String
name
;
private
final
String
name
;
private
final
String
code
;
private
final
String
code
;
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProjectInitiationServiceImpl.java
View file @
06613fbd
...
@@ -556,7 +556,7 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
...
@@ -556,7 +556,7 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
//修改project表的流程状态
//修改project表的流程状态
Project
project
=
projectService
.
getById
(
overProjectDto
.
getProjectId
());
Project
project
=
projectService
.
getById
(
overProjectDto
.
getProjectId
());
project
.
setInstanceId
(
instanceId
);
project
.
setInstanceId
(
instanceId
);
project
.
setStatus
(
getFlowTaskName
(
instanceId
));
project
.
setStatus
(
get
OverProject
FlowTaskName
(
instanceId
));
projectService
.
updateById
(
project
);
projectService
.
updateById
(
project
);
processRelationService
.
savePR
(
instanceId
,
project
.
getSequenceNbr
(),
ProcessTypeEnum
.
项目结项
.
getName
());
processRelationService
.
savePR
(
instanceId
,
project
.
getSequenceNbr
(),
ProcessTypeEnum
.
项目结项
.
getName
());
ProjectInitiation
projectInitiation
=
new
ProjectInitiation
();
ProjectInitiation
projectInitiation
=
new
ProjectInitiation
();
...
@@ -644,9 +644,28 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
...
@@ -644,9 +644,28 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
LambdaQueryWrapper
<
Project
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
Project
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
Project:
:
getInstanceId
,
instanceId
);
wrapper
.
eq
(
Project:
:
getInstanceId
,
instanceId
);
Project
project
=
projectService
.
getOne
(
wrapper
);
Project
project
=
projectService
.
getOne
(
wrapper
);
project
.
setStatus
(
getFlowTaskName
(
instanceId
));
project
.
setStatus
(
get
OverProject
FlowTaskName
(
instanceId
));
projectService
.
updateById
(
project
);
projectService
.
updateById
(
project
);
return
project
;
return
project
;
}
}
/**
* 获取竣工流程当前任务名称
* @param instanceId
* @return
*/
public
String
getOverProjectFlowTaskName
(
String
instanceId
){
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
getTask
(
instanceId
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResult
.
get
(
"data"
)));
String
taskName
=
"竣工流程结束!"
;
try
{
taskName
=
jsonObject
.
getString
(
"name"
);
}
catch
(
Exception
e
)
{
log
.
error
(
"当前流程名称为空"
);
}
return
taskName
;
}
}
}
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