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
814ad149
Commit
814ad149
authored
Aug 12, 2023
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
立项修改
parent
9fa30e6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
7 deletions
+44
-7
ProjectInitiationServiceImpl.java
...le/ugp/biz/service/impl/ProjectInitiationServiceImpl.java
+42
-6
ProjectServiceImpl.java
.../boot/module/ugp/biz/service/impl/ProjectServiceImpl.java
+2
-1
No files found.
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 @
814ad149
...
...
@@ -691,7 +691,7 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
public
String
getFlowTaskName
(
String
firstName
,
Project
project
,
boolean
status
,
String
taskType
,
Date
sendTime
,
Long
sourceId
,
String
type
,
List
<
Long
>
unitIds
,
Long
extendId
,
String
instanceId
){
JSONObject
dataObject
=
new
JSONObject
();
boolean
isEnd
=
false
;
if
(
!
ValidationUtil
.
isEmpty
(
firstName
)
&&
ProjectInitiationEnum
.
安装资料审批
.
equals
(
firstName
)
||
ProjectInitiationEnum
.
设计资料审批
.
equals
(
firstName
))
{
if
(
ProjectInitiationEnum
.
安装资料审批
.
getName
().
equals
(
firstName
)
||
ProjectInitiationEnum
.
设计资料审批
.
getName
()
.
equals
(
firstName
))
{
return
"流程结束!"
;
}
else
{
try
{
...
...
@@ -758,9 +758,12 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
if
(
ProjectInitiationEnum
.
设计资料审核
.
getName
().
equals
(
firstName
)){
return
ProjectInitiationEnum
.
设计资料审批
.
getName
();
}
if
(
ProjectInitiationEnum
.
监检员审核
.
getName
().
equals
(
firstName
)){
return
ProjectInitiationEnum
.
流程结束
.
getName
();
}
}
String
taskName
=
"流程结束!"
;
String
taskName
=
ProjectInitiationEnum
.
流程结束
.
getName
()
;
try
{
taskName
=
dataObject
.
getString
(
"name"
);
}
catch
(
Exception
e
)
{
...
...
@@ -817,22 +820,55 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
if
(!
"流程结束!"
.
equals
(
taskName
)
&&
!
ObjectUtils
.
isEmpty
(
project
.
getStatus
())
&&
project
.
getStatus
().
contains
(
"/"
))
{
String
azStatus
=
StringUtils
.
substring
Before
(
project
.
getStatus
(),
"/"
);
String
sjStatus
=
StringUtils
.
substring
After
(
project
.
getStatus
(),
"/"
);
String
azStatus
=
StringUtils
.
substring
After
(
project
.
getStatus
(),
"/"
);
String
sjStatus
=
StringUtils
.
substring
Before
(
project
.
getStatus
(),
"/"
);
if
(
taskName
.
contains
(
"安装"
))
{
taskName
=
az
Status
+
"/"
+
taskName
;
taskName
=
sj
Status
+
"/"
+
taskName
;
}
else
{
taskName
=
taskName
+
"/"
+
sj
Status
;
taskName
=
taskName
+
"/"
+
az
Status
;
}
}
if
(
"流程结束!"
.
equals
(
taskName
)
&&
!
ObjectUtils
.
isEmpty
(
project
.
getStatus
()))
{
if
(
project
.
getStatus
().
contains
(
ProjectInitiationEnum
.
设计资料审批
.
getName
()))
{
//taskName = StringUtils.substringBefore(project.getStatus(), "/");
taskName
=
StringUtils
.
substringAfter
(
project
.
getStatus
(),
"/"
);
}
else
if
(
project
.
getStatus
().
contains
(
ProjectInitiationEnum
.
安装资料审批
.
getName
()))
{
taskName
=
StringUtils
.
substringBefore
(
project
.
getStatus
(),
"/"
);
//taskName = StringUtils.substringAfter(project.getStatus(), "/");
}
}
AjaxResult
ajaxResult
=
new
AjaxResult
();
JSONObject
dataObject
=
new
JSONObject
();
try
{
ajaxResult
=
Workflow
.
taskClient
.
getTaskNoAuth
(
instanceId
);
dataObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResult
.
get
(
"data"
)));
taskName
=
dataObject
.
getString
(
"name"
);
}
catch
(
Exception
e
)
{
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
Workflow
.
taskClient
.
getTasksForDisposal
(
instanceId
)));
JSONArray
jsonArray
=
jsonObject
.
getJSONArray
(
"data"
);
taskName
=
""
;
if
(
jsonArray
!=
null
&&
jsonArray
.
size
()==
2
)
{
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++)
{
if
(
i
==
0
){
taskName
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
jsonArray
.
get
(
0
))).
getString
(
"name"
);
}
else
{
taskName
+=
"/"
+
JSON
.
parseObject
(
JSON
.
toJSONString
(
jsonArray
.
get
(
1
))).
getString
(
"name"
);
}
}
// for (Object o : jsonArray) {
// taskName +=JSON.parseObject(JSON.toJSONString(o)).getString("name");
// }
}
else
{
taskName
=
"流程结束!"
;
}
}
project
.
setStatus
(
taskName
);
projectService
.
updateById
(
project
);
processRelationService
.
updateState
(
instanceId
,
taskName
);
...
...
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 @
814ad149
...
...
@@ -530,7 +530,7 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
codes
.
add
(
String
.
valueOf
(
superviseRule
.
getAdminRegionCode
()));
}
}
else
{
page
=
projectMapper
.
queryProjectPage
(
page
,
project
,
roleName
,
companyId
,
codes
);
page
=
projectMapper
.
queryProjectPage
(
page
,
project
,
roleName
,
companyId
,
codes
);
}
if
(!
ValidationUtil
.
isEmpty
(
codes
)){
page
=
projectMapper
.
queryProjectPage
(
page
,
project
,
roleName
,
companyId
,
codes
);
...
...
@@ -562,6 +562,7 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
ArrayList
<
ProjectDto
>
list
=
Lists
.
newArrayList
();
for
(
ProjectDto
projectDto:
projects
){
if
(
OrgEnum
.
安装单位
.
getKey
().
equals
(
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanyType
())){
if
(
projectDto
.
getExamineProjectState
().
contains
(
"/"
))
{
projectDto
.
setExamineProjectState
(
StringUtils
.
substringAfter
(
projectDto
.
getExamineProjectState
(),
"/"
));
}
...
...
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