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
156ed72b
Commit
156ed72b
authored
Sep 18, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取当前登录人所在技能组方法
parent
33d904d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
27 deletions
+15
-27
AlertCalledServiceImpl.java
...ule/elevator/biz/service/impl/AlertCalledServiceImpl.java
+1
-12
CtiServiceImpl.java
...boot/module/elevator/biz/service/impl/CtiServiceImpl.java
+14
-15
No files found.
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/service/impl/AlertCalledServiceImpl.java
View file @
156ed72b
...
@@ -827,19 +827,8 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
...
@@ -827,19 +827,8 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
@Override
@Override
public
AlarmStatisticsDto
getAlertStatistics
(
ReginParams
reginParams
)
{
public
AlarmStatisticsDto
getAlertStatistics
(
ReginParams
reginParams
)
{
AlarmStatisticsDto
alarmStatisticsDto
=
new
AlarmStatisticsDto
();
AlarmStatisticsDto
alarmStatisticsDto
=
new
AlarmStatisticsDto
();
//获取当前登录人所在的技能组code
//获取当前登录人所在的技能组code
TzsCitInfo
tzsCitInfo
=
citInfoService
.
getOne
(
new
QueryWrapper
<
TzsCitInfo
>().
eq
(
"cti_user_id"
,
reginParams
.
getUserModel
().
getUserId
()));
String
groupCode
=
ctiService
.
getSkillGroup
(
reginParams
.
getUserModel
().
getUserId
());
String
groupCode
=
null
;
if
(!
ValidationUtil
.
isEmpty
(
tzsCitInfo
))
{
if
(
tzsCitInfo
.
getGid
().
contains
(
","
))
{
groupCode
=
tzsCitInfo
.
getGid
().
split
(
","
)[
0
];
}
else
{
groupCode
=
tzsCitInfo
.
getGid
().
split
(
","
)[
0
];
}
}
else
{
return
alarmStatisticsDto
;
}
if
(
groupCode
!=
null
)
{
if
(
groupCode
!=
null
)
{
Map
<
String
,
Long
>
myBacklogMap
=
alertCalledMapper
.
getMyBacklog
(
groupCode
);
Map
<
String
,
Long
>
myBacklogMap
=
alertCalledMapper
.
getMyBacklog
(
groupCode
);
...
...
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/service/impl/CtiServiceImpl.java
View file @
156ed72b
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.enums.DictTypeEnum
;
import
com.yeejoin.amos.boot.biz.common.enums.DictTypeEnum
;
import
com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl
;
import
com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl
;
...
@@ -264,22 +265,19 @@ public class CtiServiceImpl implements ICtiService {
...
@@ -264,22 +265,19 @@ public class CtiServiceImpl implements ICtiService {
}
}
public
LinkedHashSet
<
String
>
getSkillGroup
(
String
regionCode
)
{
public
String
getSkillGroup
(
String
userId
)
{
LinkedHashSet
<
String
>
groupCodeList
=
new
LinkedHashSet
<>();
String
groupCode
=
null
;
LambdaQueryWrapper
<
TzsCitInfo
>
wrapper
=
new
LambdaQueryWrapper
<>();
//获取当前登录人所在的技能组code
wrapper
.
in
(
TzsCitInfo:
:
getRegionCode
,
regionCode
);
TzsCitInfo
tzsCitInfo
=
ctiInfoService
.
getOne
(
new
QueryWrapper
<
TzsCitInfo
>().
eq
(
"cti_user_id"
,
userId
));
List
<
TzsCitInfo
>
ctiInfo
=
ctiInfoService
.
list
(
wrapper
);
if
(!
ValidationUtil
.
isEmpty
(
tzsCitInfo
))
{
if
(!
ValidationUtil
.
isEmpty
(
ctiInfo
))
{
if
(
tzsCitInfo
.
getGid
().
contains
(
","
))
{
for
(
TzsCitInfo
tzsCitInfo
:
ctiInfo
)
{
groupCode
=
tzsCitInfo
.
getGid
().
split
(
","
)[
0
];
String
groupCode
=
null
;
}
else
{
if
(
tzsCitInfo
.
getGid
().
contains
(
","
))
{
groupCode
=
tzsCitInfo
.
getGid
().
split
(
","
)[
0
];
groupCode
=
tzsCitInfo
.
getGid
().
split
(
","
)[
0
];
}
else
{
groupCode
=
tzsCitInfo
.
getGid
().
split
(
","
)[
0
];
}
groupCodeList
.
add
(
groupCode
);
}
}
}
else
{
return
groupCode
;
}
}
return
groupCode
List
;
return
groupCode
;
}
}
}
}
\ No newline at end of file
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