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
0ceac638
Commit
0ceac638
authored
Dec 26, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改ugp任务接口逻辑
parent
ec909c7e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
17 deletions
+10
-17
ProblemInitiationServiceImpl.java
...le/ugp/biz/service/impl/ProblemInitiationServiceImpl.java
+4
-8
ProjectInitiationServiceImpl.java
...le/ugp/biz/service/impl/ProjectInitiationServiceImpl.java
+6
-9
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProblemInitiationServiceImpl.java
View file @
0ceac638
...
...
@@ -147,10 +147,8 @@ public class ProblemInitiationServiceImpl {
System
.
out
.
println
(
"任务完成失败:"
+
e
.
getMessage
());
}
finally
{
//更新任务表的状态 已办
if
(!
ValidationUtil
.
isEmpty
(
unitIds
))
{
taskType
=
getUnitId
(
unitIds
,
objectd
);
taskService
.
saveOrUpdateTask
(
objectd
.
getStatus
(),
true
,
taskType
,
new
Date
(),
object
.
getLong
(
"sequenceNbr"
),
TaskTypeEnum
.
质量问题
.
getKey
(),
unitIds
);
}
taskType
=
getUnitId
(
unitIds
,
objectd
);
taskService
.
saveOrUpdateTask
(
objectd
.
getStatus
(),
true
,
taskType
,
new
Date
(),
object
.
getLong
(
"sequenceNbr"
),
TaskTypeEnum
.
质量问题
.
getKey
(),
unitIds
);
//更新problem中的status字段,表示当前流程下一个执行的任务
qualityProblemService
.
updateById
(
objectd
);
...
...
@@ -158,10 +156,8 @@ public class ProblemInitiationServiceImpl {
QualityProblem
quality
=
qualityProblemService
.
getById
(
objectd
.
getSequenceNbr
());
objectd
.
setStatus
(
quality
.
getStatus
());
if
(!
ValidationUtil
.
isEmpty
(
unitIds
))
{
taskType
=
getUnitId
(
unitIds
,
objectd
);
taskService
.
saveOrUpdateTask
(
objectd
.
getStatus
(),
false
,
taskType
,
new
Date
(),
object
.
getLong
(
"sequenceNbr"
),
TaskTypeEnum
.
质量问题
.
getKey
(),
unitIds
);
}
taskType
=
getUnitId
(
unitIds
,
objectd
);
taskService
.
saveOrUpdateTask
(
objectd
.
getStatus
(),
false
,
taskType
,
new
Date
(),
object
.
getLong
(
"sequenceNbr"
),
TaskTypeEnum
.
质量问题
.
getKey
(),
unitIds
);
}
}
...
...
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 @
0ceac638
...
...
@@ -170,20 +170,17 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
System
.
out
.
println
(
"任务完成失败:"
+
e
.
getMessage
());
}
finally
{
//更新任务表的状态 已办
if
(!
ValidationUtil
.
isEmpty
(
unitIds
))
{
taskType
=
getUnitId
(
unitIds
,
project
,
superviseRule
);
taskService
.
saveOrUpdateTask
(
project
.
getStatus
(),
true
,
taskType
,
new
Date
(),
object
.
getLong
(
"sequenceNbr"
),
TaskTypeEnum
.
项目立项
.
getKey
(),
unitIds
);
}
taskType
=
getUnitId
(
unitIds
,
project
,
superviseRule
);
taskService
.
saveOrUpdateTask
(
project
.
getStatus
(),
true
,
taskType
,
new
Date
(),
object
.
getLong
(
"sequenceNbr"
),
TaskTypeEnum
.
项目立项
.
getKey
(),
unitIds
);
//更新project种的status字段,表示当前流程下一个执行的任务
updateProjectFlowStatus
(
instanceId
);
//新增任务表的状态 待办
if
(!
ValidationUtil
.
isEmpty
(
unitIds
))
{
project
=
projectService
.
getById
(
object
.
getLong
(
"sequenceNbr"
));
taskType
=
getUnitId
(
unitIds
,
project
,
superviseRule
);
taskService
.
saveOrUpdateTask
(
project
.
getStatus
(),
false
,
taskType
,
new
Date
(),
object
.
getLong
(
"sequenceNbr"
),
TaskTypeEnum
.
项目立项
.
getKey
(),
unitIds
);
}
project
=
projectService
.
getById
(
object
.
getLong
(
"sequenceNbr"
));
taskType
=
getUnitId
(
unitIds
,
project
,
superviseRule
);
taskService
.
saveOrUpdateTask
(
project
.
getStatus
(),
false
,
taskType
,
new
Date
(),
object
.
getLong
(
"sequenceNbr"
),
TaskTypeEnum
.
项目立项
.
getKey
(),
unitIds
);
}
}
...
...
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