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
8eaf373c
Commit
8eaf373c
authored
Aug 30, 2024
by
张森
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
29832 【中心级】一张图全景监控>人员管理>人员配置>二级页面,在站端视角下,驻站消防员/运维人员已取证人数与列表的已取证人数不一致
parent
e88f6ae6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
28 deletions
+23
-28
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+23
-6
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+0
-22
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
8eaf373c
...
@@ -1695,14 +1695,31 @@
...
@@ -1695,14 +1695,31 @@
( CASE a.peopleType WHEN '1601' THEN '驻站消防员' WHEN '1602' THEN '运维人员' END ) AS peopleType,
( CASE a.peopleType WHEN '1601' THEN '驻站消防员' WHEN '1602' THEN '运维人员' END ) AS peopleType,
(
(
CASE
CASE
WHEN a.peopleType = '1601' THEN
IFNULL((
SELECT
concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1421,1422,1423,1424,1425,1823,1824,1825,1826,1827', ',', ',|' ), ',' )), 0)
WHEN a.peopleType = '1602' THEN
WHEN a.peopleType = '1602' THEN
IFNULL((SELECT concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1427,1428,1429,1430,1431', ',', ',|' ), ',' )), 0) END
(
IF
((
SELECT
concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1427,1428,1429,1430,1431', ',', ',|' ), ',' )) > 0,
1,
0
)
)
WHEN a.peopleType = '1601' THEN
(
IF
(
(
concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1823,1824,1825,1826,1827', ',', ',|' ), ',' ) > 0
AND concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1421,1422,1423,1424,1425', ',', ',|' ), ',' ) > 0
),
1,
0
)) ELSE 0
END
) AS isOk,
) AS isOk,
fp.post_qualification_code AS qualificationCode
fp.post_qualification_code AS qualificationCode,
fp.post_qualification as qualificationName
FROM
FROM
(
(
SELECT
SELECT
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
8eaf373c
...
@@ -3921,28 +3921,6 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -3921,28 +3921,6 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
peopleTypeCode
=
"ZZXFY"
.
equalsIgnoreCase
(
peopleTypeCode
)
?
"1601"
:
"YWRY"
.
equalsIgnoreCase
(
peopleTypeCode
)
?
"1602"
:
""
;
peopleTypeCode
=
"ZZXFY"
.
equalsIgnoreCase
(
peopleTypeCode
)
?
"1601"
:
"YWRY"
.
equalsIgnoreCase
(
peopleTypeCode
)
?
"1602"
:
""
;
}
}
IPage
<
Map
<
String
,
Object
>>
iPage
=
this
.
baseMapper
.
getPage
(
page
,
bizOrgCode
,
peopleTypeCode
);
IPage
<
Map
<
String
,
Object
>>
iPage
=
this
.
baseMapper
.
getPage
(
page
,
bizOrgCode
,
peopleTypeCode
);
iPage
.
getRecords
().
stream
().
forEach
(
e
->{
StringBuilder
cardNames
=
new
StringBuilder
(
""
);
List
<
String
>
codes
=
Arrays
.
asList
(
String
.
valueOf
(
e
.
get
(
"qualificationCode"
)).
split
(
","
));
if
(
CollectionUtils
.
isNotEmpty
(
codes
))
{
for
(
String
code
:
codes
)
{
if
(
YJJYY
.
contains
(
code
))
{
cardNames
.
append
(
"应急救援员证"
);
cardNames
.
append
(
","
);
}
else
if
(
ZCXFGCS
.
contains
(
code
))
{
cardNames
.
append
(
"注册消防工程师证"
);
cardNames
.
append
(
","
);
}
else
if
(
XFY
.
contains
(
code
))
{
cardNames
.
append
(
"消防员证"
);
cardNames
.
append
(
","
);
}
else
if
(
XFSSCZY
.
contains
(
code
))
{
cardNames
.
append
(
"消防设施操作员证"
);
cardNames
.
append
(
","
);
}
}
}
e
.
put
(
"qualificationName"
,
cardNames
.
length
()
>
0
?
cardNames
.
substring
(
0
,
cardNames
.
length
()
-
1
)
:
""
);
});
return
iPage
;
return
iPage
;
}
}
...
...
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