Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
f10e4809
提交
f10e4809
authored
12月 03, 2021
作者:
ljj234
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 修正核查终止任务时,返回未检查单位名称错误问题
上级
c9fe4a85
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
6 行增加
和
13 行删除
+6
-13
DeviceCheckController.java
...device/confirmcheck/controller/DeviceCheckController.java
+6
-13
没有找到文件。
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/controller/DeviceCheckController.java
浏览文件 @
f10e4809
...
@@ -1094,26 +1094,19 @@ public class DeviceCheckController {
...
@@ -1094,26 +1094,19 @@ public class DeviceCheckController {
for
(
Task
c1
:
l1Childs
)
{
for
(
Task
c1
:
l1Childs
)
{
if
(
predNodeType
(
c1
).
equals
(
CcNodeType
.
EXAM
)
||
predNodeType
(
c1
).
equals
(
CcNodeType
.
CHECK
))
{
if
(
predNodeType
(
c1
).
equals
(
CcNodeType
.
EXAM
)
||
predNodeType
(
c1
).
equals
(
CcNodeType
.
CHECK
))
{
List
<
Task
>
detailTaskList
=
taskRepo
.
findAllByParentTaskId
(
c1
.
getId
());
List
<
Task
>
detailTaskList
=
taskRepo
.
findAllByParentTaskId
(
c1
.
getId
());
if
(
detailTaskList
.
isEmpty
())
{
if
(!
detailTaskList
.
isEmpty
())
{
// unitNames.add(unitsRepo.findById(c1.getOwnUnit()).get().getName());
List
<
String
>
notEndUnitNames
=
detailTaskList
unitNames
.
add
(
detailRepo
.
findById
(
c1
.
getBillId
()).
get
().
getCheckUnit
());
.
stream
().
filter
(
task
->
!
task
.
getBillStatus
().
equals
(
END
.
id
)
&&
!
task
.
getBillStatus
().
equals
(
CHECK_SHUT_DOWN
.
id
))
}
else
{
.
map
(
task
->
unitsRepo
.
findById
(
task
.
getOwnUnit
()).
get
().
getName
())
// List<String> notEndUnitNames = detailTaskList
.
collect
(
toList
());
// .stream().filter(task -> !task.getBillStatus().equals(END.id))
// .map(task -> unitsRepo.findById(task.getOwnUnit()).get().getName())
// .collect(toList());
List
<
String
>
notEndUnitNames
=
detailRepo
.
findAllById
(
detailTaskList
.
stream
().
map
(
Task:
:
getBillId
).
collect
(
toList
()))
.
stream
().
map
(
DeviceCheckDetail:
:
getCheckUnit
).
collect
(
toList
());
unitNames
.
addAll
(
notEndUnitNames
);
unitNames
.
addAll
(
notEndUnitNames
);
}
}
}
else
if
(
predNodeType
(
c1
).
equals
(
CcNodeType
.
MANUAL
)
&&
!
c1
.
getBillStatus
().
equals
(
END
.
id
))
{
}
else
if
(
predNodeType
(
c1
).
equals
(
CcNodeType
.
MANUAL
)
&&
!
c1
.
getBillStatus
().
equals
(
END
.
id
)
&&
!
c1
.
getBillStatus
().
equals
(
CHECK_SHUT_DOWN
.
id
)
)
{
String
checkUnit
=
detailRepo
.
findById
(
c1
.
getBillId
()).
get
().
getCheckUnit
();
String
checkUnit
=
detailRepo
.
findById
(
c1
.
getBillId
()).
get
().
getCheckUnit
();
// String unitName = unitsRepo.findById(c1.getOwnUnit()).get().getName();
// String unitName = unitsRepo.findById(c1.getOwnUnit()).get().getName();
unitNames
.
add
(
checkUnit
);
unitNames
.
add
(
checkUnit
);
}
}
}
}
return
ResponseEntity
.
ok
(
unitNames
);
return
ResponseEntity
.
ok
(
unitNames
);
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论