Commit 495b6eeb authored by 张森's avatar 张森

人员bug修改

parent ae75eee4
......@@ -2,53 +2,193 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yeejoin.amos.boot.module.common.api.mapper.FirefightersPostMapper">
<!-- <select id="getFirePersonJobInfo" resultType="Map">-->
<!-- SELECT * FROM (-->
<!-- (SELECT-->
<!-- COUNT(1) AS xfNum-->
<!-- 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-->
<!-- WHERE-->
<!-- c.sequence_nbr IS NOT NULL AND cfp.firefighters_id IS NOT NULL AND concat(cfp.post_qualification_code, ',') regexp concat(replace('1421,1422,1423,1424,1425',',',',|'),',') > 0-->
<!-- <if test='bizOrgCode!=null and bizOrgCode!=""'>and cf.biz_org_code like concat (#{bizOrgCode},'%')</if>) AS xfNum,-->
<!-- (SELECT-->
<!-- COUNT(1) AS ssczyNum-->
<!-- 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-->
<!-- WHERE-->
<!-- c.sequence_nbr IS NOT NULL AND cfp.firefighters_id IS NOT NULL AND concat(cfp.post_qualification_code, ',') regexp concat(replace('1427,1428,1429,1430,1431',',',',|'),',') > 0-->
<!-- <if test='bizOrgCode!=null and bizOrgCode!=""'>and cf.biz_org_code like concat (#{bizOrgCode},'%')</if>) AS ssczyNum,-->
<!-- (SELECT-->
<!-- COUNT(1) AS yjjyNum-->
<!-- 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-->
<!-- 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-->
<!-- <if test='bizOrgCode!=null and bizOrgCode!=""'>and cf.biz_org_code like concat (#{bizOrgCode},'%')</if>) AS yjjyNum,-->
<!-- (SELECT-->
<!-- COUNT(1) AS total-->
<!-- 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-->
<!-- WHERE-->
<!-- c.sequence_nbr IS NOT NULL AND cfp.firefighters_id IS NOT NULL-->
<!-- <if test='bizOrgCode!=null and bizOrgCode!=""'>and cf.biz_org_code like concat (#{bizOrgCode},'%')</if>) AS total,-->
<!-- (SELECT-->
<!-- COUNT(1) AS firePersonHasCard-->
<!-- 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-->
<!-- WHERE-->
<!-- c.sequence_nbr IS NOT NULL AND cfp.firefighters_id IS NOT NULL AND concat(cfp.post_qualification_code, ',') regexp concat(replace('1421,1422,1423,1424,1425,1823,1824,1825,1826,1827',',',',|'),',') > 0-->
<!-- <if test='bizOrgCode!=null and bizOrgCode!=""'>and cf.biz_org_code like concat (#{bizOrgCode},'%')</if>) AS firePersonHasCard-->
<!-- )-->
<!-- </select>-->
<select id="getFirePersonJobInfo" resultType="Map">
SELECT * FROM (
select
*
from
(
(SELECT
COUNT(1) AS xfNum
count( 1 ) as firePersonHasCard
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_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('1421,1422,1423,1424,1425',',',',|'),',') > 0
<if test='bizOrgCode!=null and bizOrgCode!=""'>and cf.biz_org_code like concat (#{bizOrgCode},'%')</if>) AS xfNum,
(SELECT
COUNT(1) AS ssczyNum
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 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>
GROUP BY
c.sequence_nbr
) a
WHERE
a.peopleType = '1601') as firePersonHasCard,
(
SELECT
count( 1 ) AS yjjyNum
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_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('1427,1428,1429,1430,1431',',',',|'),',') > 0
<if test='bizOrgCode!=null and bizOrgCode!=""'>and cf.biz_org_code like concat (#{bizOrgCode},'%')</if>) AS ssczyNum,
(SELECT
COUNT(1) AS yjjyNum
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 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>
GROUP BY
c.sequence_nbr
) a
WHERE
a.peopleType = '1601' ) as yjjyNum,
(
SELECT
count( 1 ) as total
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_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('1823,1824,1825,1826,1827',',',',|'),',') > 0
<if test='bizOrgCode!=null and bizOrgCode!=""'>and cf.biz_org_code like concat (#{bizOrgCode},'%')</if>) AS yjjyNum,
(SELECT
COUNT(1) AS total
c.sequence_nbr IS NOT NULL
AND cfp.firefighters_id IS NOT NULL
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>
group by c.sequence_nbr
) a
WHERE
a.peopleType = '1601' ) as total,
(
SELECT
COUNT( 1 ) AS qtNum
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_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
<if test='bizOrgCode!=null and bizOrgCode!=""'>and cf.biz_org_code like concat (#{bizOrgCode},'%')</if>) AS total,
(SELECT
COUNT(1) AS firePersonHasCard
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 cfp.post_qualification_code IS NOT NULL
AND cfp.post_qualification_code != ''
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>
GROUP BY
c.sequence_nbr
) a
WHERE
a.peopleType = '1601'
) as qtNum,
(
SELECT
COUNT( 1 ) AS xfNum
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_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('1421,1422,1423,1424,1425,1823,1824,1825,1826,1827',',',',|'),',') > 0
<if test='bizOrgCode!=null and bizOrgCode!=""'>and cf.biz_org_code like concat (#{bizOrgCode},'%')</if>) AS firePersonHasCard
c.sequence_nbr IS NOT NULL
AND cfp.firefighters_id IS NOT NULL
AND concat( cfp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1421,1422,1423,1424,1425', ',', ',|' ), ',' ) > 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 xfNum
)
</select>
......@@ -89,6 +229,7 @@
a.biz_org_name IS NOT NULL
AND a.is_delete = 0
AND a.biz_org_type = 'PERSON'
AND fp.is_delete = 0
<if test='bizOrgCode!=null and bizOrgCode!=""'>and LEFT(a.biz_org_code,18) like concat (#{bizOrgCode},'%')</if>
) AS total,
(
......@@ -123,6 +264,7 @@
a.biz_org_name IS NOT NULL
AND a.is_delete = 0
AND a.biz_org_type = 'PERSON'
AND fp.is_delete = 0
AND concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1427', ',', ',|' ), ',' ) > 0
<if test='bizOrgCode!=null and bizOrgCode!=""'>and LEFT(a.biz_org_code,18) like concat (#{bizOrgCode},'%')</if>
) AS cjssczyNum,
......@@ -158,6 +300,7 @@
a.biz_org_name IS NOT NULL
AND a.is_delete = 0
AND a.biz_org_type = 'PERSON'
AND fp.is_delete = 0
AND concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1428', ',', ',|' ), ',' ) > 0
<if test='bizOrgCode!=null and bizOrgCode!=""'>and LEFT(a.biz_org_code,18) like concat (#{bizOrgCode},'%')</if>
) AS zjssczyNum,
......@@ -193,6 +336,7 @@
a.biz_org_name IS NOT NULL
AND a.is_delete = 0
AND a.biz_org_type = 'PERSON'
AND fp.is_delete = 0
AND concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1429', ',', ',|' ), ',' ) > 0
<if test='bizOrgCode!=null and bizOrgCode!=""'>and LEFT(a.biz_org_code,18) like concat (#{bizOrgCode},'%')</if>
) AS gjssczyNum,
......@@ -228,6 +372,7 @@
a.biz_org_name IS NOT NULL
AND a.is_delete = 0
AND a.biz_org_type = 'PERSON'
AND fp.is_delete = 0
AND concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1430', ',', ',|' ), ',' ) > 0
<if test='bizOrgCode!=null and bizOrgCode!=""'>and LEFT(a.biz_org_code,18) like concat (#{bizOrgCode},'%')</if>
) AS yjjzjgxfjsNum,
......@@ -263,6 +408,7 @@
a.biz_org_name IS NOT NULL
AND a.is_delete = 0
AND a.biz_org_type = 'PERSON'
AND fp.is_delete = 0
AND concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1431', ',', ',|' ), ',' ) > 0
<if test='bizOrgCode!=null and bizOrgCode!=""'>and LEFT(a.biz_org_code,18) like concat (#{bizOrgCode},'%')</if>
) AS ejjzjgxfjsNum
......@@ -273,18 +419,20 @@
SELECT
d.zzTotal,
d.zzHasCard,
ABS(d.zzTotal - d.zzHasCard) AS hasNoCard,
ABS( d.zzTotal - d.zzHasCard ) AS hasNoCard,
ROUND( d.zzHasCard / d.zzTotal * 100, 2 ) AS percentageHas,
ROUND( ABS(d.zzTotal - d.zzHasCard) / d.zzTotal * 100, 2 ) AS percentageNo
ROUND( ABS( d.zzTotal - d.zzHasCard ) / d.zzTotal * 100, 2 ) AS percentageNo
FROM
(
SELECT
count( 1 ) AS zzTotal,
SUM(
IF
((
SELECT
concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1421,1422,1423,1424,1425,1823,1824,1825,1826,1827', ',', ',|' ), ',' )) > 0,
(
(
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
)) AS zzHasCard
......@@ -304,8 +452,13 @@
FROM
cb_org_usr ou
LEFT JOIN cb_dynamic_form_instance cfi ON ou.sequence_nbr = cfi.instance_id
LEFT JOIN cb_firefighters cf ON CONCAT( ou.sequence_nbr, '' ) = cf.org_usr_id
AND cf.is_delete = 0
LEFT JOIN cb_firefighters_post cfp ON cfp.org_usr_id = ou.sequence_nbr
AND cfp.is_delete = 0
WHERE
ou.is_delete = '0'
AND cfp.firefighters_id IS NOT NULL
GROUP BY
ou.sequence_nbr
) c
......@@ -368,6 +521,7 @@
a.biz_org_name IS NOT NULL
AND a.is_delete = 0
AND a.biz_org_type = 'PERSON'
AND fp.is_delete = 0
<if test='bizOrgCode!=null and bizOrgCode!=""'>and LEFT(a.biz_org_code,18) like concat (#{bizOrgCode},'%')</if>
) d
</select>
......
......@@ -1727,9 +1727,10 @@
a.biz_org_code AS bizOrgCode,
(
CASE
WHEN LENGTH( a.biz_org_code ) > 18 THEN
( SELECT cou.biz_org_name FROM cb_org_usr cou WHERE cou.biz_org_code = LEFT ( a.biz_org_code, 18 ) AND cou.biz_org_type = 'COMPANY' ) ELSE ( SELECT cou.biz_org_name FROM cb_org_usr cou WHERE cou.biz_org_code = LEFT ( a.biz_org_code, 6 ) AND cou.biz_org_type = 'COMPANY' )
( SELECT cou.biz_org_name FROM cb_org_usr cou WHERE cou.biz_org_code = LEFT ( a.biz_org_code, 18 ) AND
cou.biz_org_type = 'COMPANY' ) ELSE ( SELECT cou.biz_org_name FROM cb_org_usr cou WHERE cou.biz_org_code = LEFT
( a.biz_org_code, 6 ) AND cou.biz_org_type = 'COMPANY' )
END
) AS bizOrgName,
SUM(
......@@ -1741,42 +1742,49 @@
ibsi.station_type AS stationType,
SUM(
IF
((
(
a.peopleType = '1601'
AND (
SELECT
concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1421,1422,1423,1424,1425,1823,1824,1825,1826,1827', ',', ',|' ), ',' )) > 0
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
)) AS fireIsOk,
(
SUM(
IF
((
( a.peopleType = '1601', 1, 0 )) - SUM(
IF
(
a.peopleType = '1601'
AND (
SELECT
concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1421,1422,1423,1424,1425,1823,1824,1825,1826,1827', ',', ',|' ), ',' )) = 0
OR (
SELECT
concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1421,1422,1423,1424,1425,1823,1824,1825,1826,1827', ',', ',|' ), ',' ) IS NULL
AND a.peopleType = '1601'
)),
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
)) AS fireNoCard,
))
) AS fireNoCard,
SUM(
IF
((
a.peopleType = '1602'
AND (
SELECT
concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1427,1428,1429,1430,1431', ',', ',|' ), ',' )) = 0
concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1427,1428,1429,1430,1431', ',', ',|' ), ','
)) = 0
OR (
SELECT
concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1427,1428,1429,1430,1431', ',', ',|' ), ',' ) IS NULL
concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1427,1428,1429,1430,1431', ',', ',|' ), ','
) IS NULL
AND a.peopleType = '1602'
)),
)
),
1,
0
)) AS ywNotOk,
......@@ -1784,9 +1792,7 @@
IF
((
a.peopleType = '1602'
AND (
SELECT
concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1427', ',', ',|' ), ',' )) = 0
AND concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1427', ',', ',|' ), ',' ) > 0
),
1,
0
......@@ -1797,7 +1803,7 @@
a.peopleType = '1602'
AND (
SELECT
concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1428', ',', ',|' ), ',' )) = 0
concat( fp.post_qualification_code, ',' ) REGEXP concat( REPLACE ( '1428', ',', ',|' ), ',' )) > 0
),
1,
0
......@@ -1832,9 +1838,17 @@
a.biz_org_name IS NOT NULL
AND a.is_delete = 0
AND a.biz_org_type = 'PERSON'
<if test='bizOrgCode!=null and bizOrgCode!=""'>and LEFT(a.biz_org_code,18) like concat (#{bizOrgCode},'%')</if>
<if test='stationType != null and stationType != ""'>and ibsi.station_type like concat ('%', #{stationType},'%')</if>
AND fp.is_delete = 0
AND LEFT ( a.biz_org_code, 18 ) LIKE concat ( 'LSHLZ1wYXL3mJmHZyG', '%' )
<if test='bizOrgCode!=null and bizOrgCode!=""'>
and LEFT(a.biz_org_code,18) like concat (#{bizOrgCode},'%')
</if>
<if test='stationType != null and stationType != ""'>
and ibsi.station_type like concat ('%', #{stationType},'%')
</if>
GROUP BY
LEFT(a.biz_org_code,18)
LEFT (
a.biz_org_code,
18)
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment