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
a2116f1a
Commit
a2116f1a
authored
Mar 20, 2023
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目立项流程修改
parent
1f010e61
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
7 deletions
+34
-7
ProjectMapper.java
...eejoin/amos/boot/module/ugp/api/mapper/ProjectMapper.java
+2
-0
ProjectMapper.xml
...odule-ugp-api/src/main/resources/mapper/ProjectMapper.xml
+4
-0
InstallNoticeServiceImpl.java
...module/ugp/biz/service/impl/InstallNoticeServiceImpl.java
+3
-1
ProjectInitiationServiceImpl.java
...le/ugp/biz/service/impl/ProjectInitiationServiceImpl.java
+17
-4
ProjectServiceImpl.java
.../boot/module/ugp/biz/service/impl/ProjectServiceImpl.java
+8
-2
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/mapper/ProjectMapper.java
View file @
a2116f1a
...
...
@@ -57,4 +57,6 @@ public interface ProjectMapper extends BaseMapper<Project> {
List
<
Map
<
String
,
String
>>
getProjectComplete
(
@Param
(
"projectIds"
)
Set
<
Long
>
projectIds
);
ProjectProcessDto
getProjectProcessDto
(
Long
sequenceNbr
);
String
getContext
(
String
instanceId
,
String
taskName
);
}
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/resources/mapper/ProjectMapper.xml
View file @
a2116f1a
...
...
@@ -284,4 +284,8 @@
where up.sequence_nbr=#{sequenceNbr}
</select>
<select
id=
"getContext"
resultType=
"java.lang.String"
>
SELECT log.context FROM tz_ugp_initiation_log log WHERE log.instance_id = #{instanceId} AND log.task_name = #{taskName} ORDER BY log.rec_date DESC LIMIT 1
</select>
</mapper>
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/InstallNoticeServiceImpl.java
View file @
a2116f1a
...
...
@@ -264,7 +264,8 @@ public class InstallNoticeServiceImpl extends BaseService<InstallNoticeDto,Insta
LambdaQueryWrapper
<
ProcessRelation
>
relationsWrapper
=
new
LambdaQueryWrapper
<>();
relationsWrapper
.
eq
(
ProcessRelation:
:
getSourceId
,
projectDto
.
getSequenceNbr
())
.
eq
(
ProcessRelation:
:
getDefCode
,
ProcessTypeEnum
.
项目立项
.
getType
());
installNoticeDto
.
setInstanceId
(
processRelationService
.
getOne
(
relationsWrapper
).
getInstanceId
());
ProcessRelation
processRelation
=
processRelationService
.
getOne
(
relationsWrapper
);
installNoticeDto
.
setInstanceId
(
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
processRelation
)
?
null
:
processRelation
.
getInstanceId
());
return
installNoticeDto
;
}
}
\ No newline at end of file
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 @
a2116f1a
...
...
@@ -226,15 +226,21 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
logger
.
error
(
"当前用户存在多个任务"
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
Workflow
.
taskClient
.
getTaskList
(
instanceId
)));
JSONArray
jsonArray
=
jsonObject
.
getJSONArray
(
"data"
);
boolean
isEnd
=
false
;
for
(
Object
o:
jsonArray
){
String
name
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
o
)).
getString
(
"name"
);
if
(
ProjectInitiationEnum
.
安装开工资料修改
.
getName
().
equals
(
name
)){
if
(
ProjectInitiationEnum
.
安装开工资料修改
.
getName
().
equals
(
name
)
||
ProjectInitiationEnum
.
设计开工资料修改
.
getName
().
equals
(
name
)
){
dataObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
o
));
isEnd
=
false
;
break
;
}
if
(
ProjectInitiationEnum
.
设计开工资料修改
.
getName
().
equals
(
name
)){
dataObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
o
))
;
if
(
ProjectInitiationEnum
.
监检员审核
.
getName
().
equals
(
name
)){
isEnd
=
true
;
}
}
if
(
isEnd
){
dataObject
=
jsonArray
.
getJSONObject
(
0
);
}
}
taskName
=
dataObject
.
getString
(
"name"
);
...
...
@@ -465,6 +471,7 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
*/
public
String
getFlowTaskName
(
String
instanceId
){
JSONObject
dataObject
=
new
JSONObject
();
boolean
isEnd
=
false
;
try
{
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
getTask
(
instanceId
);
dataObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResult
.
get
(
"data"
)));
...
...
@@ -482,9 +489,12 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
return
ProjectInitiationEnum
.
提交资料
.
getName
();
}
if
(
ProjectInitiationEnum
.
监检员审核
.
getName
().
equals
(
name
)){
return
ProjectInitiationEnum
.
监检员审核
.
getName
()
;
isEnd
=
true
;
}
}
if
(
isEnd
){
return
ProjectInitiationEnum
.
监检员审核
.
getName
();
}
}
String
taskName
=
"流程结束!"
;
try
{
...
...
@@ -523,6 +533,9 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
taskName
=
ProjectInitiationEnum
.
设计开工资料修改
.
getTaskName
();
}
}
if
(
ProjectInitiationEnum
.
监检员审核
.
getName
().
equals
(
project
.
getStatus
())&&
ProjectInitiationEnum
.
监检员审核
.
getName
().
equals
(
taskName
)){
taskName
=
"流程结束!"
;
}
project
.
setStatus
(
taskName
);
projectService
.
updateById
(
project
);
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProjectServiceImpl.java
View file @
a2116f1a
...
...
@@ -202,7 +202,8 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
LambdaQueryWrapper
<
ProcessRelation
>
relationsWrapper
=
new
LambdaQueryWrapper
<>();
relationsWrapper
.
eq
(
ProcessRelation:
:
getSourceId
,
projectDto
.
getSequenceNbr
())
.
eq
(
ProcessRelation:
:
getDefCode
,
ProcessTypeEnum
.
项目立项
.
getType
());
projectDto
.
setInstanceId
(
processRelationService
.
getOne
(
relationsWrapper
).
getInstanceId
());
ProcessRelation
one
=
processRelationService
.
getOne
(
relationsWrapper
);
projectDto
.
setInstanceId
(
ObjectUtils
.
isEmpty
(
one
)
?
null
:
one
.
getInstanceId
());
return
projectDto
;
}
...
...
@@ -521,6 +522,8 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
return
page
;
}
public
List
<
ProjectDto
>
getPage
(
List
<
ProjectDto
>
projects
){
ArrayList
<
ProjectDto
>
list
=
Lists
.
newArrayList
();
for
(
ProjectDto
projectDto:
projects
){
...
...
@@ -544,6 +547,8 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
}
list
.
add
(
projectDto
);
}
else
if
(!
ValidationUtil
.
isEmpty
(
projectDto
.
getContext
())
&&
ProjectInitiationEnum
.
监检员审核
.
getName
().
equals
(
projectDto
.
getStatus
()))
{
String
context
=
this
.
projectMapper
.
getContext
(
projectDto
.
getInstanceId
(),
ProjectInitiationEnum
.
监检员分配
.
getName
());
projectDto
.
setContext
(
context
);
if
(
JSONObject
.
parseObject
(
projectDto
.
getContext
()).
containsKey
(
"insPerson"
))
{
String
insPerson
=
JSONObject
.
parseObject
(
projectDto
.
getContext
()).
getString
(
"insPerson"
);
if
(!
ValidationUtil
.
isEmpty
(
insPerson
))
{
...
...
@@ -730,7 +735,8 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
LambdaQueryWrapper
<
ProcessRelation
>
relationsWrapper
=
new
LambdaQueryWrapper
<>();
relationsWrapper
.
eq
(
ProcessRelation:
:
getSourceId
,
sequenceNbr
)
.
eq
(
ProcessRelation:
:
getDefCode
,
ProcessTypeEnum
.
项目立项
.
getType
());
fileDto
.
setInstanceId
(
processRelationService
.
getOne
(
relationsWrapper
).
getInstanceId
());
ProcessRelation
one
=
processRelationService
.
getOne
(
relationsWrapper
);
fileDto
.
setInstanceId
(
ObjectUtils
.
isEmpty
(
one
)
?
null
:
one
.
getInstanceId
());
return
fileDto
;
}
...
...
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