(select count(*) zycs from TB_RY_RYCJ where (SCBZ='0' or SCBZ is null) and (ifhb is null or ifhb<![CDATA[<>]]>'1')
<iftest="lrdwdm != null and lrdwdm != ''"> and lrdwdm like #{lrdwdm , jdbcType=VARCHAR }||'%'</if>
...
...
@@ -206,25 +206,12 @@
END) else 17 end))
from dual) >= 16
AND rybh not in ( SELECT rybh ryxxwfcjbh FROM TB_XW_YTHCJ_RYXXWCJSM WHERE INSTR( WCJX, '04' ) > 0)
)t43,
<!-- (select count(*) swxzcjs from TB_RY_RYCJ p,(select rybh swrybh from tb_xw_ythcj_sw group by rybh) s where p.rybh=s.swrybh(+) and (SCBZ='0' or SCBZ is null) and (ifhb is null or ifhb<![CDATA[<>]]>'1') and tbbz = '0' and s.swrybh is not null
<if test="lrdwdm != null and lrdwdm != ''"> and lrdwdm like #{lrdwdm , jdbcType=VARCHAR }||'%'</if>
<if test="maxccsj != null and maxccsj != ''"> and lrsj <![CDATA[<]]> to_date(#{maxccsj , jdbcType=VARCHAR },'YYYY-MM-DD')+1</if>
<if test="minccsj != null and minccsj != ''"> and lrsj <![CDATA[>=]]> to_date(#{minccsj , jdbcType=VARCHAR },'YYYY-MM-DD')</if>
<if test="sqlwhere != null and sqlwhere != ''"> and ${sqlwhere}</if>
AND (select ((case
when p.GMSFHM is not null then
(case
when LENGTH(p.GMSFHM) <![CDATA[<]]>18 then
17
when SUBSTR(p.GMSFHM, 7, 4)>1900 and SUBSTR(p.GMSFHM, 7, 4)<![CDATA[<]]>2100 and SUBSTR(p.GMSFHM, 11, 2)>0 and SUBSTR(p.GMSFHM, 11, 2) <![CDATA[<]]> 13 and SUBSTR(p.GMSFHM, 13, 2)<![CDATA[<]]>32 and SUBSTR(GMSFHM, 13, 2)>0 then
(select count(*) swwcjs from TB_RY_RYCJ p,(select rybh swrybh from tb_xw_ythcj_sw group by rybh) s where p.rybh=s.swrybh(+) and (SCBZ='0' or SCBZ is null) and (ifhb is null or ifhb<![CDATA[<>]]>'1') and s.swrybh is null
<iftest="lrdwdm != null and lrdwdm != ''"> and lrdwdm like #{lrdwdm , jdbcType=VARCHAR }||'%'</if>
<iftest="maxccsj != null and maxccsj != ''"> and lrsj <![CDATA[<]]> to_date(#{maxccsj , jdbcType=VARCHAR },'YYYY-MM-DD')+1</if>
...
...
@@ -268,13 +255,6 @@
AND rybh not in ( SELECT rybh ryxxwfcjbh FROM TB_XW_YTHCJ_RYXXWCJSM WHERE INSTR( WCJX, '05' ) > 0)
)t53,
<!--(select count(*) zjxzcjs from TB_RY_RYCJ p,(select rybh swrybh from tb_xw_ythcj_zj group by rybh) s where p.rybh=s.swrybh(+) and (SCBZ='0' or SCBZ is null) and (ifhb is null or ifhb<![CDATA[<>]]>'1') and tbbz = '0' and s.swrybh is not null
<if test="lrdwdm != null and lrdwdm != ''"> and lrdwdm like #{lrdwdm , jdbcType=VARCHAR }||'%'</if>
<if test="maxccsj != null and maxccsj != ''"> and lrsj <![CDATA[<]]> to_date(#{maxccsj , jdbcType=VARCHAR },'YYYY-MM-DD')+1</if>
<if test="minccsj != null and minccsj != ''"> and lrsj <![CDATA[>=]]> to_date(#{minccsj , jdbcType=VARCHAR },'YYYY-MM-DD')</if>
<if test="sqlwhere != null and sqlwhere != ''"> and ${sqlwhere}</if>
AND p.rybh not in ( SELECT rybh ryxxwfcjbh FROM TB_XW_YTHCJ_RYXXWCJSM WHERE INSTR( WCJX, '05' ) > 0)
)t51,-->
(
select count(*) as zjwcjs from (SELECT (select count(1) from tb_xw_ythcj_zj s where s.rybh = TB_RY_RYCJ.rybh and sfts = '1' and (s.xzsl ='1' or s.xzsl is null)) as zj
from TB_RY_RYCJ where (SCBZ = '0' or SCBZ is null) AND (IFHB <![CDATA[<>]]> '1' OR IFHB IS NULL)
...
...
@@ -350,13 +330,6 @@
<iftest="sqlwhere != null and sqlwhere != ''"> and ${sqlwhere}</if>
AND rybh not in ( SELECT rybh ryxxwfcjbh FROM TB_XW_YTHCJ_RYXXWCJSM WHERE INSTR( WCJX, '06' ) > 0)
)t63,
<!-- (select count(*) hmxzcjs from TB_RY_RYCJ p,(select rybh swrybh from tb_xw_ythcj_hm group by rybh) s where p.rybh=s.swrybh(+) and (SCBZ='0' or SCBZ is null) and (ifhb is null or ifhb<![CDATA[<>]]>'1') and tbbz = '0' and s.swrybh is not null
<if test="lrdwdm != null and lrdwdm != ''"> and lrdwdm like #{lrdwdm , jdbcType=VARCHAR }||'%'</if>
<if test="maxccsj != null and maxccsj != ''"> and lrsj <![CDATA[<]]> to_date(#{maxccsj , jdbcType=VARCHAR },'YYYY-MM-DD')+1</if>
<if test="minccsj != null and minccsj != ''"> and lrsj <![CDATA[>=]]> to_date(#{minccsj , jdbcType=VARCHAR },'YYYY-MM-DD')</if>
<if test="sqlwhere != null and sqlwhere != ''"> and ${sqlwhere}</if>
AND p.rybh not in ( SELECT rybh ryxxwfcjbh FROM TB_XW_YTHCJ_RYXXWCJSM WHERE INSTR( WCJX, '06' ) > 0)
)t61,-->
(
select count(*) as hmwcjs from (SELECT (select count(1) from tb_xw_ythcj_hm s where s.rybh = TB_RY_RYCJ.rybh and (sfts = '1' or sbcsdm like '%536U')) as hm
from TB_RY_RYCJ where (TB_RY_RYCJ.SCBZ = '0' or TB_RY_RYCJ.SCBZ is null) AND (IFHB <![CDATA[<>]]> '1' OR IFHB IS NULL)
...
...
@@ -367,26 +340,7 @@
AND rybh not in (SELECT rybh ryxxwfcjbh FROM TB_XW_YTHCJ_RYXXWCJSM WHERE INSTR(WCJX, '06') > 0)
)
where HM = 0
)t62,
(select count(*) dnacjs from TB_RY_RYCJ where (SCBZ='0' or SCBZ is null) and (ifhb is null or ifhb<![CDATA[<>]]>'1') and (tbbz = '1' or tbbz = '2') and dnabh is not null
<iftest="lrdwdm != null and lrdwdm != ''"> and lrdwdm like #{lrdwdm , jdbcType=VARCHAR }||'%'</if>
<iftest="maxccsj != null and maxccsj != ''"> and lrsj <![CDATA[<]]> to_date(#{maxccsj , jdbcType=VARCHAR },'YYYY-MM-DD')+1</if>
<iftest="minccsj != null and minccsj != ''"> and lrsj <![CDATA[>=]]> to_date(#{minccsj , jdbcType=VARCHAR },'YYYY-MM-DD')</if>
<iftest="sqlwhere != null and sqlwhere != ''"> and ${sqlwhere}</if>
)t7,
(select count(*) dnaxzcjs from TB_RY_RYCJ where (SCBZ='0' or SCBZ is null) and tbbz = '0' and (ifhb is null or ifhb<![CDATA[<>]]>'1') and dnabh is not null
<iftest="lrdwdm != null and lrdwdm != ''"> and lrdwdm like #{lrdwdm , jdbcType=VARCHAR }||'%'</if>
<iftest="maxccsj != null and maxccsj != ''"> and lrsj <![CDATA[<]]> to_date(#{maxccsj , jdbcType=VARCHAR },'YYYY-MM-DD')+1</if>
<iftest="minccsj != null and minccsj != ''"> and lrsj <![CDATA[>=]]> to_date(#{minccsj , jdbcType=VARCHAR },'YYYY-MM-DD')</if>
<iftest="sqlwhere != null and sqlwhere != ''"> and ${sqlwhere}</if>
)t71,
(select count(*) dnawcjs from TB_RY_RYCJ where (SCBZ='0' or SCBZ is null) and (ifhb is null or ifhb<![CDATA[<>]]>'1') and dnabh is null
<iftest="lrdwdm != null and lrdwdm != ''"> and lrdwdm like #{lrdwdm , jdbcType=VARCHAR }||'%'</if>
<iftest="maxccsj != null and maxccsj != ''"> and lrsj <![CDATA[<]]> to_date(#{maxccsj , jdbcType=VARCHAR },'YYYY-MM-DD')+1</if>
<iftest="minccsj != null and minccsj != ''"> and lrsj <![CDATA[>=]]> to_date(#{minccsj , jdbcType=VARCHAR },'YYYY-MM-DD')</if>
<iftest="sqlwhere != null and sqlwhere != ''"> and ${sqlwhere}</if>