Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
2285b449
提交
2285b449
authored
11月 23, 2021
作者:
zjm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(培训模块,单位侧边栏): 市 和区县查询的数据有问题,以及重新报名提示被其他人操作啦
市 和区县查询的数据有问题,以及重新报名提示被其他人操作啦
上级
598d7b72
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
15 行增加
和
5 行删除
+15
-5
TrainJobController.java
.../tykj/dev/device/train/controller/TrainJobController.java
+6
-2
AreaServiceImpl.java
...dev/device/user/subject/service/impl/AreaServiceImpl.java
+1
-1
UnitsServiceImpl.java
...ev/device/user/subject/service/impl/UnitsServiceImpl.java
+8
-2
没有找到文件。
dev-train/src/main/java/com/tykj/dev/device/train/controller/TrainJobController.java
浏览文件 @
2285b449
...
...
@@ -262,11 +262,15 @@ public class TrainJobController {
TaskBto
taskBto
=
taskService
.
get
(
taskId
);
Units
units
=
unitsService
.
findById
(
taskBto
.
getOwnUnit
());
TrainTheme
trainTheme
=
trainThemeService
.
findById
(
taskBto
.
getBillId
());
TaskDisposeUtil
.
isNotSubmit
(
taskBto
.
getBillStatus
(),
StatusEnum
.
TRAIN1016
);
List
<
StatusEnum
>
statusEnums
=
new
ArrayList
<>();
statusEnums
.
add
(
StatusEnum
.
TRAIN1017
);
statusEnums
.
add
(
StatusEnum
.
TRAIN1016
);
TaskDisposeUtil
.
isNotSubmit
(
taskBto
.
getBillStatus
(),
statusEnums
);
taskBto
=
taskService
.
moveToSpecial
(
taskBto
,
StatusEnum
.
TRAIN1017
,
0
);
List
<
Integer
>
userIds
=
userService
.
findAllByUnite
(
securityUser
.
getCurrentUserInfo
().
getUnitsId
()).
stream
().
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
());
userIds
.
addAll
(
userService
.
findAllByUnite
(
trainTheme
.
getUnitsId
()).
stream
().
filter
(
user
->
!
user
.
getUserId
().
equals
(
securityUser
.
getCurrentUserInfo
().
getUserId
())).
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
()));
messageService
.
add
(
new
MessageBto
(
0
,
BusinessEnum
.
TRAIN
.
id
,
"
让 重新
培训报名:【"
+
units
.
getName
()+
"】"
,
userIds
,
trainTheme
.
getTrainId
().
toString
()));
messageService
.
add
(
new
MessageBto
(
0
,
BusinessEnum
.
TRAIN
.
id
,
"
重新
培训报名:【"
+
units
.
getName
()+
"】"
,
userIds
,
trainTheme
.
getTrainId
().
toString
()));
return
ResponseEntity
.
ok
(
taskBto
);
}
...
...
dev-user/src/main/java/com/tykj/dev/device/user/subject/service/impl/AreaServiceImpl.java
浏览文件 @
2285b449
...
...
@@ -156,7 +156,7 @@ public class AreaServiceImpl implements AreaService {
private
List
<
Integer
>
areaId
(
List
<
Integer
>
ids
,
Integer
areaId
){
List
<
Area
>
areas
=
areaCache
.
findAllByFatherId
(
areaId
);
ids
.
add
(
areaId
);
if
(
areas
!=
null
&&
areas
.
size
()!=
0
){
if
(
areas
!=
null
&&
areas
.
size
()!=
0
){
areas
.
forEach
(
area
->
{
areaId
(
ids
,
area
.
getId
());
...
...
dev-user/src/main/java/com/tykj/dev/device/user/subject/service/impl/UnitsServiceImpl.java
浏览文件 @
2285b449
...
...
@@ -298,7 +298,7 @@ public class UnitsServiceImpl implements UnitsService {
LeftNavigation
leftNavigation
=
new
LeftNavigation
();
List
<
LeftNavigation
>
leftNavigationList
=
new
ArrayList
<>();
Units
units
=
securityUser
.
getCurrentUserInfo
().
getUnits
();
if
(
units
.
getLevel
()==
1
&&
units
.
getType
()==
1
||
units
.
getLevel
()==
2
){
if
(
units
.
getLevel
()==
1
&&
units
.
getType
()==
1
){
AreaExhibition
areaExhibition
=
areaExhibitionCache
.
findById
(
units
.
getExhibitionId
());
AreaExhibition
areaExhibitionParent
=
areaExhibitionCache
.
findById
(
areaExhibition
.
getFatherId
());
leftNavigation
=
areaExhibitionParent
.
toLeftNavigation
();
...
...
@@ -314,7 +314,13 @@ public class UnitsServiceImpl implements UnitsService {
leftNavigationList
.
add
(
leftNavigation1
);
leftNavigation
.
setLeftNavigations
(
leftNavigationList
);
}
}
else
{
}
else
if
(
units
.
getLevel
()==
2
){
AreaExhibition
areaExhibition
=
areaExhibitionCache
.
findById
(
units
.
getExhibitionId
());
leftNavigation
=
areaExhibition
.
toLeftNavigation
();
List
<
LeftNavigation
>
leftNavigationList1
=
unitsCache
.
findAllByAreaExhibitionId
(
areaExhibition
.
getId
()).
stream
().
map
(
Units:
:
toLeftNavigation
).
collect
(
Collectors
.
toList
());
leftNavigation
.
setLeftNavigations
(
leftNavigationList1
);
}
else
{
leftNavigation
=
units
.
toLeftNavigation
();
leftNavigation
.
setLeftNavigations
(
leftNavigationList
);
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论