Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
7ad38c99
提交
7ad38c99
authored
11月 17, 2021
作者:
zjm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(任务模块): 修改了查询任务根据展示id的查询
修改了查询任务根据展示id的查询
上级
caf0c38c
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
4 行增加
和
5 行删除
+4
-5
TaskServiceImpl.java
...om/tykj/dev/device/task/service/impl/TaskServiceImpl.java
+3
-3
UserPublicServiceImpl.java
...vice/user/subject/service/impl/UserPublicServiceImpl.java
+1
-2
没有找到文件。
dev-task/src/main/java/com/tykj/dev/device/task/service/impl/TaskServiceImpl.java
浏览文件 @
7ad38c99
...
@@ -83,6 +83,7 @@ public class TaskServiceImpl implements TaskService {
...
@@ -83,6 +83,7 @@ public class TaskServiceImpl implements TaskService {
@Autowired
@Autowired
private
MessageService
messageService
;
private
MessageService
messageService
;
@Autowired
@Autowired
AreaService
areaService
;
AreaService
areaService
;
...
@@ -645,10 +646,9 @@ public class TaskServiceImpl implements TaskService {
...
@@ -645,10 +646,9 @@ public class TaskServiceImpl implements TaskService {
.
filter
(
taskUserVo
->
!
Collections
.
disjoint
(
idLists
,
taskUserVo
.
getInvolveUserIdList
())||(
taskUserVo
.
getCreateUserId
()!=
null
&&
idLists
.
contains
(
taskUserVo
.
getCreateUserId
())))
.
filter
(
taskUserVo
->
!
Collections
.
disjoint
(
idLists
,
taskUserVo
.
getInvolveUserIdList
())||(
taskUserVo
.
getCreateUserId
()!=
null
&&
idLists
.
contains
(
taskUserVo
.
getCreateUserId
())))
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
}
}
if
(
taskSelectVo
.
getAreaId
()!=
null
){
if
(
taskSelectVo
.
getAreaId
()!=
null
){
List
<
Integer
>
ids
=
areaService
.
findIdQuerySubordinateIds
(
taskSelectVo
.
getAreaId
());
List
<
Integer
>
userIDs
=
userPublicService
.
findByAreaExhibitionIdSubordinateAll
(
taskSelectVo
.
getAreaId
()).
stream
().
map
(
Units:
:
getUnitId
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
unitIds
=
unitsDao
.
findAllByAreaIdIn
(
ids
).
stream
().
map
(
Units:
:
getUnitId
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
userIDs
=
userService
.
findUnitsIdInUsers2
(
unitIds
).
stream
().
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
());
taskUserVos
=
taskUserVos
.
stream
().
filter
(
taskUserVo
->
userIDs
.
contains
(
taskUserVo
.
getCreateUserId
())).
collect
(
Collectors
.
toList
());
taskUserVos
=
taskUserVos
.
stream
().
filter
(
taskUserVo
->
userIDs
.
contains
(
taskUserVo
.
getCreateUserId
())).
collect
(
Collectors
.
toList
());
}
}
if
(
taskSelectVo
.
getUnitId
()!=
null
){
if
(
taskSelectVo
.
getUnitId
()!=
null
){
...
...
dev-user/src/main/java/com/tykj/dev/device/user/subject/service/impl/UserPublicServiceImpl.java
浏览文件 @
7ad38c99
...
@@ -157,8 +157,7 @@ public class UserPublicServiceImpl implements UserPublicService {
...
@@ -157,8 +157,7 @@ public class UserPublicServiceImpl implements UserPublicService {
public
List
<
Units
>
findByAreaExhibitionIdSubordinateAll
(
Integer
areaExhibitionId
)
{
public
List
<
Units
>
findByAreaExhibitionIdSubordinateAll
(
Integer
areaExhibitionId
)
{
List
<
Integer
>
areaExhibitionIds
=
areaExhibitionCache
.
findByFatherId
(
areaExhibitionId
).
stream
().
map
(
AreaExhibition:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
areaExhibitionIds
=
areaExhibitionCache
.
findByFatherId
(
areaExhibitionId
).
stream
().
map
(
AreaExhibition:
:
getId
).
collect
(
Collectors
.
toList
());
areaExhibitionIds
.
add
(
areaExhibitionId
);
areaExhibitionIds
.
add
(
areaExhibitionId
);
List
<
Units
>
unitsList
=
unitsCache
.
findAllByAreaExhibitionIdList
(
areaExhibitionIds
);
return
unitsCache
.
findAllByAreaExhibitionIdList
(
areaExhibitionIds
);
return
unitsList
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论