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
f64b3821
Commit
f64b3821
authored
Aug 02, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
7929fe50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
ProjectInitiationServiceImpl.java
...le/ugp/biz/service/impl/ProjectInitiationServiceImpl.java
+21
-7
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 @
f64b3821
...
@@ -307,10 +307,8 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
...
@@ -307,10 +307,8 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
//更新任务表的状态 已办
//更新任务表的状态 已办
taskType
=
getUnitId
(
unitIds
,
project
,
superviseRule
);
taskType
=
getUnitId
(
unitIds
,
project
,
superviseRule
);
// if(ProjectInitiationEnum.设计开工资料提交.getName().equals(project.getStatus()) || ProjectInitiationEnum.安装开工资料提交.getName().equals(project.getStatus())){
// project.setStatus(ProjectInitiationEnum.提交资料.getName());
taskService
.
saveOrUpdateTask
(
taskName
,
true
,
taskType
,
new
Date
(),
project
.
getSequenceNbr
(),
TaskTypeEnum
.
项目立项
.
getKey
(),
unitIds
,
extendId
,
instanceId
);
// }
taskService
.
saveOrUpdateTask
(
project
.
getStatus
(),
true
,
taskType
,
new
Date
(),
project
.
getSequenceNbr
(),
TaskTypeEnum
.
项目立项
.
getKey
(),
unitIds
,
extendId
,
instanceId
);
//更新project种的status字段,更新关系表中的state字段,表示当前流程下一个执行的任务
//更新project种的status字段,更新关系表中的state字段,表示当前流程下一个执行的任务
boolean
bool
=
updateFlowStatus
(
project
.
getStatus
(),
true
,
taskType
,
new
Date
(),
project
.
getSequenceNbr
(),
TaskTypeEnum
.
项目立项
.
getKey
(),
unitIds
,
extendId
,
instanceId
);
boolean
bool
=
updateFlowStatus
(
project
.
getStatus
(),
true
,
taskType
,
new
Date
(),
project
.
getSequenceNbr
(),
TaskTypeEnum
.
项目立项
.
getKey
(),
unitIds
,
extendId
,
instanceId
);
...
@@ -323,7 +321,23 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
...
@@ -323,7 +321,23 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
}
}
unitIds
=
new
ArrayList
<>();
unitIds
=
new
ArrayList
<>();
taskType
=
getUnitId
(
unitIds
,
project
,
superviseRule
);
taskType
=
getUnitId
(
unitIds
,
project
,
superviseRule
);
taskService
.
saveOrUpdateTask
(
project
.
getStatus
(),
false
,
taskType
,
new
Date
(),
project
.
getSequenceNbr
(),
TaskTypeEnum
.
项目立项
.
getKey
(),
unitIds
,
extendId
,
instanceId
);
if
(
project
.
getStatus
().
contains
(
ProjectInitiationEnum
.
设计负责人指定项目负责人
.
getName
())
||
project
.
getStatus
().
contains
(
ProjectInitiationEnum
.
设计负责人指定项目资料员
.
getName
())
||
project
.
getStatus
().
contains
(
ProjectInitiationEnum
.
安装负责人指定项目负责人
.
getName
())
||
project
.
getStatus
().
contains
(
ProjectInitiationEnum
.
安装负责人指定项目资料员
.
getName
())
)
{
AjaxResult
ajaxResultR
=
Workflow
.
taskClient
.
getTask
(
instanceId
);
dataObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResultR
.
get
(
"data"
)));
try
{
taskName
=
dataObject
.
getString
(
"name"
);
}
catch
(
Exception
e
)
{
log
.
error
(
"当前流程名称为空"
);
}
taskService
.
saveOrUpdateTask
(
taskName
,
false
,
taskType
,
new
Date
(),
project
.
getSequenceNbr
(),
TaskTypeEnum
.
项目立项
.
getKey
(),
unitIds
,
extendId
,
instanceId
);
}
else
{
taskService
.
saveOrUpdateTask
(
project
.
getStatus
(),
false
,
taskType
,
new
Date
(),
project
.
getSequenceNbr
(),
TaskTypeEnum
.
项目立项
.
getKey
(),
unitIds
,
extendId
,
instanceId
);
}
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
@@ -350,8 +364,8 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
...
@@ -350,8 +364,8 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
unitIds
.
add
(
project
.
getConstructionUnitId
());
unitIds
.
add
(
project
.
getConstructionUnitId
());
taskType
=
TaskTypeEnum
.
流程
.
getKey
();
taskType
=
TaskTypeEnum
.
流程
.
getKey
();
}
}
if
(
ProjectInitiationEnum
.
设计负责人指定项目负责人
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
设计负责人指定项目资料员
.
getName
().
equals
(
project
.
getStatus
())
||
if
(
project
.
getStatus
().
contains
(
ProjectInitiationEnum
.
设计负责人指定项目负责人
.
getName
())
||
project
.
getStatus
().
contains
(
ProjectInitiationEnum
.
设计负责人指定项目资料员
.
getName
())
||
ProjectInitiationEnum
.
安装负责人指定项目负责人
.
getName
().
equals
(
project
.
getStatus
())
||
ProjectInitiationEnum
.
安装负责人指定项目资料员
.
getName
().
equals
(
project
.
getStatus
()))
{
project
.
getStatus
().
contains
(
ProjectInitiationEnum
.
安装负责人指定项目资料员
.
getName
())
||
project
.
getStatus
().
contains
(
ProjectInitiationEnum
.
安装负责人指定项目负责人
.
getName
()))
{
if
(
OrgEnum
.
安装单位
.
getKey
().
equals
(
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanyType
())){
if
(
OrgEnum
.
安装单位
.
getKey
().
equals
(
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanyType
())){
unitIds
.
add
(
project
.
getInstallationUnitId
());
unitIds
.
add
(
project
.
getInstallationUnitId
());
}
else
if
(
OrgEnum
.
设计单位
.
getKey
().
equals
(
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanyType
())){
}
else
if
(
OrgEnum
.
设计单位
.
getKey
().
equals
(
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanyType
())){
...
...
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