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
3f79db0f
Commit
3f79db0f
authored
Nov 17, 2024
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消防人员持证统计规则修改
parent
c8839608
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
6 deletions
+35
-6
FirefightersPostMapper.xml
...-api/src/main/resources/mapper/FirefightersPostMapper.xml
+35
-6
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/FirefightersPostMapper.xml
View file @
3f79db0f
...
...
@@ -73,8 +73,11 @@
WHERE
c.sequence_nbr IS NOT NULL
AND cfp.firefighters_id IS NOT NULL
AND concat( cfp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1823,1824,1825,1826,1827', ',', ',|' ), ',' ) > 0
AND concat( cfp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1421,1422,1423,1424,1425', ',', ',|' ), ',' ) > 0
AND (
concat( cfp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1823,1824,1825,1826,1827', ',', ',|' ), ',' ) > 0
OR concat( cfp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1421,1422,1423,1424,1425', ',', ',|' ), ',' ) > 0
OR concat( cfp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1426,1427,1428,1429,1430,1431', ',', ',|' ), ',' ) > 0
)
AND c.is_delete = 0
AND c.biz_org_type = 'person'
<if
test=
'bizOrgCode!=null and bizOrgCode!=""'
>
and cf.biz_org_code like concat (#{bizOrgCode},'%')
</if>
...
...
@@ -151,8 +154,8 @@
WHERE
c.sequence_nbr IS NOT NULL
AND cfp.firefighters_id IS NOT NULL
AND REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(
cfp.post_qualification_code,',',''), '1421', ''),'1422', ''),'1423', ''),'1424', ''),'1425', ''),'1823', ''),'1824', ''),'1825', ''),'1826', ''),'1827
', '') IS NOT NULL
AND REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(
cfp.post_qualification_code,',',''), '1421', ''),'1422', ''),'1423', ''),'1424', ''),'1425', ''),'1823', ''),'1824', ''),'1825', ''),'1826', ''),'1827
', '') != ''
AND REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(
REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(cfp.post_qualification_code,',',''), '1421', ''),'1422', ''),'1423', ''),'1424', ''),'1425', ''),'1823', ''),'1824', ''),'1825', ''),'1826', ''),'1827', ''),'1426', ''),'1427', ''),'1428', ''),'1429', ''),'1430', ''),'1431
', '') IS NOT NULL
AND REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(
REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(cfp.post_qualification_code,',',''), '1421', ''),'1422', ''),'1423', ''),'1424', ''),'1425', ''),'1823', ''),'1824', ''),'1825', ''),'1826', ''),'1827', ''),'1426', ''),'1427', ''),'1428', ''),'1429', ''),'1430', ''),'1431
', '') != ''
AND cfp.post_qualification_code IS NOT NULL
AND cfp.post_qualification_code != ''
AND c.is_delete = 0
...
...
@@ -188,7 +191,32 @@
) a
WHERE
a.peopleType = '1601'
) as xfNum
) as xfNum,
(
SELECT
COUNT( 1 ) AS xfssczyNum
FROM
(
SELECT
IFNULL( MAX( CASE WHEN cfi.field_code = 'peopleType' THEN field_value END ), '' ) AS peopleType
FROM
cb_org_usr c
LEFT JOIN cb_firefighters cf ON CONCAT( c.sequence_nbr, '' ) = cf.org_usr_id AND cf.is_delete = 0
LEFT JOIN cb_firefighters_post cfp ON cfp.org_usr_id = c.sequence_nbr AND cfp.is_delete = 0
LEFT JOIN cb_dynamic_form_instance cfi ON c.sequence_nbr = cfi.instance_id
WHERE
c.sequence_nbr IS NOT NULL
AND cfp.firefighters_id IS NOT NULL
AND concat( cfp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1426,1427,1428,1429,1430,1431', ',', ',|' ), ',' ) > 0
AND c.is_delete = 0
<if
test=
'bizOrgCode!=null and bizOrgCode!=""'
>
AND cf.biz_org_code like concat (#{bizOrgCode},'%')
</if>
group by c.sequence_nbr
) a
WHERE
a.peopleType = '1601'
) AS xfssczyNum
)
</select>
...
...
@@ -484,7 +512,8 @@
(
(
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
OR concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1421,1422,1423,1424,1425', ',', ',|' ), ',' ) > 0
OR concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1426,1427,1428,1429,1430,1431', ',', ',|' ), ',' ) > 0
),
1,
0
...
...
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